Fake SSN & CPF Generator for Test Data, with Validator
Generate test SSNs and Brazilian CPFs, plus NIF, DNI, Codice Fiscale, Steuer-IdNr and NIR. Bulk CSV/JSON export, fake identity and a live validator.
Updated November 2026
Reviewed by Rafael Duarte
SSN
--
Validation Report
Waiting for input…
How to Use the SSN Generator
Test SSNs in the right format, plus six other national ID formats
1. Pick a country
SSN (United States) is selected by default. Switch tabs for CPF, NIF, DNI, Codice Fiscale, Steuer-IdNr or NIR.
2. Set the options
Turn Formatted on or off, pick a quantity (1, 5, 10, 50 or 100) and, for CPF, choose a fiscal region.
3. Generate and copy
Click Generate New, then the copy icon. Shift+Enter copies the first number when the cursor isn't in a text field. Batches of 5 or more add Copy All, CSV and JSON.
What This SSN Generator Does
Test numbers that follow the SSN structure, with a built-in validator
Real-time validator
Paste an SSN into the Validator and see right away whether its format is valid, with the exact rule it breaks if it isn't. Valid numbers are split into area, group and serial.
Random numbers in the valid range
Area 001 to 899 (never 666), group 01 to 99, serial 0001 to 9998. These pass format checks, but they're random, so one can match a number the SSA has really issued.
Bulk generation
Generate 5, 10, 50 or 100 numbers at once and export them to CSV or JSON for test fixtures.
Fictional identity card
With quantity 1, a Full Identity card adds a made-up name, date of birth, gender, address, phone and email next to the document. New Identity draws another profile.
CPF generator for Brazil
Valid CPFs with both mod 11 check digits, an optional fiscal region filter (the 9th digit) and a validator that names the region.
Six more national ID formats
CPF (Brazil), NIF (Portugal), DNI (Spain), Codice Fiscale (Italy), Steuer-IdNr (Germany) and NIR (France), each with its own generator and validator. Generation runs in your browser.
Examples by Country
When You'll Reach for This Tool
The scenarios that come up most often
Testing sign-up and KYC forms
Check that your own form accepts well-formed SSNs and rejects bad ones in a development or staging environment, without copying anyone's real number into test data.
Sandbox API integration
Exercise request formatting and error handling against a provider's sandbox or a mock server. Never send generated numbers to a live verification or credit service.
Unit tests for your own validator
Generate a batch of 50 or 100 valid SSNs to feed the validation function you're building.
Seeding a test database
Leave the quantity at 1 and the Full Identity card gives a fictional profile (name, date of birth, address, phone, email and SSN) you can copy with Copy All and insert into a local or staging database.
QA on international products
Switch the country tab to test CPF, NIF, DNI or Codice Fiscale validation without leaving the same tool.
Common Mistakes When Using Test SSNs
Using a generated SSN outside testing
These numbers are test data only. Never put one on a real form, application or account, and never use one to pass yourself off as someone else. Under US federal law (42 U.S.C. § 408(a)(7)), using a false SSN with intent to deceive is a felony.
Assuming a generated SSN belongs to nobody
The generator picks random numbers inside the range the SSA can assign and checks nothing against SSA records. Since the SSA switched to randomized assignment, almost any number in that range may have been issued, so a generated SSN can match a real person's by chance. Keep it in test environments and never store it next to real customer data.
Sending punctuation when the API expects raw digits
Check the format your endpoint expects before sending. Toggle "Formatted" off to get the raw 9-digit string instead of the dashed version.
Why Use This Tool
The built-in validator checks any SSN as you type and, when the format is valid, splits it into area, group and serial number. When it isn't, it tells you which rule failed (area 000, 666 or 900 to 999, group 00, serial 0000).
It also covers six other national ID formats in the same interface (CPF, NIF, DNI, Codice Fiscale, Steuer-IdNr and NIR), useful for teams testing products across several countries. For Brazilian company numbers, use the CNPJ generator.
It's built for test data and nothing else: the numbers only follow the format rules, so treat every one as possibly real and never use it to identify or impersonate anyone.
Frequently Asked Questions
Yes, by chance. The generator draws random numbers from the range the SSA can assign (area 001 to 899 except 666, group 01 to 99, serial 0001 to 9998) and doesn't check them against any record. Since the SSA moved to randomized assignment, most numbers in that range may have been issued. Use them only in test environments and never store them alongside real personal data.
No. Generated SSNs are for development and testing only. Never use one on a real application, loan, lease or account, or to pose as another person. Under US federal law (42 U.S.C. § 408(a)(7)), using a false SSN with intent to deceive is a felony.
An area number of 000, 666 or anything from 900 to 999; a group number of 00; or a serial number of 0000. The SSA doesn't assign these, so the validator rejects them and says which part failed.
A valid-format SSN just avoids the ranges the SSA never assigns (000, 666 and 900 to 999 for the area, 00 for the group, 0000 for the serial). A real SSN was issued by the SSA to a specific person. The validator here only checks the format: it can't tell whether a number was issued, and a generated number can coincide with a real one.
Yes. Choose 5, 10, 50 or 100 and click Generate New. The batch can be copied with Copy All or downloaded as CSV or JSON, handy for seeding fixtures or feeding a test suite.
Open the CPF tab, optionally pick a fiscal region (it sets the 9th digit) and click Generate New. Each CPF gets both check digits calculated with mod 11, so it passes standard validation. Turn Formatted off for the raw 11 digits instead of 000.000.000-00.
No. Every generator and validator (SSN, CPF, NIF, DNI, Codice Fiscale, Steuer-IdNr and NIR) runs in your browser, and no number you generate or paste is sent anywhere.
References
Official explanation of how the SSA assigns Social Security Numbers today.
Background on the structure, history, and reserved ranges of the US SSN system.
Generate valid Brazilian CNPJ numbers, including the 2026 alphanumeric format.
Related Tools
- CNPJ & EIN Generator: Alphanumeric CNPJ 2026 + Validator Developer Generate test CNPJs (numeric or the new alphanumeric format, with branches) and US EINs, plus CIF, Partita IVA and SIREN. Validator included, free.
- Email Syntax Validator Developer Validate any email address format instantly against RFC 5322 rules — local part, @ symbol, domain, and TLD. Free, browser-only, private.
- JSON Formatter & Validator: Fix Errors, Tree View Developer Format, validate and minify JSON with errors shown by line and column, one-click fixes for trailing commas and quotes, and tree or graph views.
- JSON Schema Validator Online: Draft-07, 2019-09, 2020-12 Developer Paste JSON and a schema to see every error with its exact path as you type. Supports Draft-07, 2019-09 and 2020-12 via Ajv, with no upload.
- XML Formatter & Validator: Pretty Print, Tree, XPath Developer Paste XML to pretty print or minify it, spot the line with the error, browse it as a tree, run XPath queries, diff two files or convert to JSON.