Fake SSN & CPF Generator for Test Data, with Validator

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

Generator

SSN

--

Validator

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

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

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.

References

Related Tools