SSN Generator & Validator
Generate and validate SSN (USA), CPF (Brazil), NIF (Portugal), DNI (Spain), Codice Fiscale (Italy), Steuer-IdNr (Germany) and NIR (France) for dev testing.
Updated May 2026
SSN
--
Validation Report
Waiting for input…
How to Use the SSN Generator
A valid Social Security Number in three seconds — or seven other national ID formats
1. Pick a country
SSN (United States) is selected by default — or switch to CPF, NIF, DNI, Codice Fiscale, Steuer-IdNr, or NIR.
2. Set the options
Toggle punctuation on or off, choose a batch size (1–100), and filter by region where the format supports it.
3. Generate and copy
Click the copy icon or press Shift+Enter. Batches export straight to CSV or JSON.
What This SSN Generator Does
Valid by SSA structure rules, with a built-in validator
Real-time validator
Paste an existing SSN and see instantly whether it's valid, with the exact rule it breaks if it isn't.
Area, group and serial breakdown
Every generated SSN decodes into its three parts — a detail most generators never show you.
Bulk generation
1 to 100 numbers at once, exportable straight to CSV or JSON for test fixtures.
Full synthetic identity
Name, address, phone, email, and SSN — all consistent, ready to seed a test database.
Six more national ID formats
CPF (Brazil), NIF (Portugal), DNI (Spain), Codice Fiscale (Italy), Steuer-IdNr (Germany), NIR (France).
100% in your browser
No number is ever sent to a server — it keeps working offline once the page has loaded.
Examples by Country
When You'll Reach for This Tool
The scenarios that come up most often
Testing sign-up and KYC forms
Many identity-verification flows reject submissions without a correctly formatted SSN — generate one that passes format checks without touching a real person's number.
Payment and verification API integration
Gateways and background-check APIs validate the SSN on the request — test the full flow end to end with synthetic data.
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
Use "Full Identity" for a coherent fictional profile — name, address, phone, and SSN — ready to insert.
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 real person's SSN
Even one that looks properly formatted, a real SSN belongs to an actual person — putting it in test data, demo accounts, or shared spreadsheets can expose you to real privacy and fraud risk.
Confusing "valid format" with "real, issued number"
A generated SSN passes every structural rule the SSA publishes, but it was never issued to anyone — it won't match any government, payroll, or credit-bureau record.
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 is what sets this generator apart: paste any existing SSN and instantly see whether it's valid, broken down into area, group, and serial number — a level of detail most generators skip entirely.
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 multiple countries without switching tools.
Frequently Asked Questions
No. The generator creates numbers that follow the SSA's official structure — area, group, and serial number — and pass every format check, but none of them are assigned to a real person in the Social Security Administration's records.
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
- EIN Generator & Validator — CNPJ, CIF, Partita IVA, SIREN Developer Generate and validate EIN (USA), CNPJ (Brazil), CIF (Spain), Partita IVA (Italy) and SIREN/SIRET (France) for dev testing. Free, browser-only, no signup.
- 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 Developer Free online JSON formatter & validator — format, validate, minify, and export JSON to CSV. Tree view, graph view, and syntax highlighting. No install needed.
- JSON Schema Validator Developer Free online JSON Schema Validator — validate JSON data against any schema (Draft-07, 2019-09, 2020-12) instantly in your browser. No install, no sign-up.
- XML Formatter & Beautifier Developer Free XML formatter, validator, and beautifier online — format, minify, tree view, XPath query, XML diff, and convert to JSON/CSV. 100% client-side, no signup.