SSN Generator & Validator

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

Generator

SSN

--

Validator

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

Country — document
Format
🇺🇸 United States — SSN
123-45-6789
🇧🇷 Brazil — CPF
123.456.789-09
🇪🇸 Spain — DNI
12345678-Z
🇮🇹 Italy — Codice Fiscale
RSSMRA80A01H501U
Invalid — reserved area number
666-45-6789

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

Related Tools