Skip to content
faker.tools
All 79

Plate I · User & Personal Identity Generators

SSN & National ID Generator

US SSNs from the never-issued 9xx area, plus UK, Canadian, Brazilian and French ID numbers with valid check digits.

#IdentifierSchemeNote
1968-36-9245us_ssnArea 9xx is never issued
2972-24-7340us_ssnArea 9xx is never issued
3926-05-2192us_ssnArea 9xx is never issued
4990-17-7964us_ssnArea 9xx is never issued
5972-41-8004us_ssnArea 9xx is never issued
6943-17-9969us_ssnArea 9xx is never issued
7902-21-8651us_ssnArea 9xx is never issued
8954-29-1458us_ssnArea 9xx is never issued
9903-02-2505us_ssnArea 9xx is never issued
10994-07-9090us_ssnArea 9xx is never issued
10 rows · 633 BGenerated in your browser · SSN & National ID Generator

A fake SSN for testing is a number shaped like a US Social Security Number — XXX-XX-XXXX — taken from a range that is never issued, so it can appear in fixtures, screenshots and demos without identifying anyone. This generator uses area numbers 900–999, which the Social Security Administration has never assigned, and keeps the group number at 01–49 so the result is not a real Individual Taxpayer Identification Number either.

It also generates five other national identifiers: US ITINs, UK National Insurance numbers, Canadian Social Insurance Numbers, Brazilian CPFs and French INSEE numbers, each with the check digits its scheme defines.

How to use it

  1. Pick a scheme.
  2. Toggle separators to test both the printed form (956-34-7382, 2 66 09 83 626 295 35) and the compact form you store.
  3. Generate as many rows as your fixture needs, and export them as JSON, CSV or SQL.
  4. For full user records, pair this with the name generator and date of birth generator using the same seed.

What you can control

  • US SSN: area 900–999, group 01–49, serial 0001–9999 — never valid as an SSN or an ITIN.
  • US ITIN: starts with 9, with a middle group from the IRS's ITIN ranges.
  • UK National Insurance number: two prefix letters from the permitted set, six digits and a suffix A–D.
  • Canada SIN: nine digits with a Luhn check digit, in the 9xx range used for temporary residents.
  • Brazil CPF: nine digits plus two mod-11 check digits.
  • France INSEE (NIR): sex, birth year and month, département, commune and order number, then the two-digit control key.
  • With or without separators.

Which numbers are never issued

The SSA has committed never to issue:

  • area 000, 666, or 900–999
  • group 00
  • serial 0000

Since randomised assignment began in June 2011, area numbers no longer encode the state where the number was issued, so geography-based checks are obsolete. Checks against the rules above still hold.

The 9xx block is shared with ITINs, which are real numbers issued to real taxpayers. ITIN groups are 50–65, 70–88, 90–92 and 94–99, so an "SSN" like 912-78-1234 might be someone's ITIN. That is why the SSN mode here never goes above group 49.

How the CPF check digits work

Take the base 111.444.777. Multiply the nine digits by 10, 9, 8 … 2 and add them: 162. Then 162 × 10 mod 11 = 3, the first check digit (a result of 10 becomes 0). Append it, multiply the ten digits by 11, 10 … 2: 204. Then 204 × 10 mod 11 = 5. The full CPF is 111.444.777-35.

The French INSEE key is simpler: 97 minus the first thirteen digits mod 97.

Testing ideas

  • Area validation. Feed a 9xx SSN to your validator. If it is accepted, your validation is format-only — decide whether that is what you want.
  • Masking. Confirm only the last four digits appear in the UI, exports, emails and logs.
  • Leading zeros. Real SSNs can start with 0. Store one as a number and it becomes eight digits. Test with a handcrafted 001-01-0001-style value alongside the generated ones.
  • International forms. A form that only accepts \d{3}-\d{2}-\d{4} will reject every NINO and CPF. Generate one of each if you serve those countries.

What this is not

These numbers are for software testing. They will not pass an SSA or IRS verification and must never be offered as a real identifier. For the full list of reserved ranges across phones, IPs, domains and IDs, read Reserved ranges for test data.

Questions

Can a generated SSN belong to a real person?

No. US SSNs here use area numbers 900–999, which the Social Security Administration has never assigned and will not assign. The group number is kept between 01 and 49, which also keeps them out of the ranges the IRS uses for real ITINs.

Will an SSN validator accept these?

A format-only check (three digits, two digits, four digits) will. A validator that knows the SSA rules will reject them because of the 9xx area — which is the right behaviour. If your validator accepts them, it is not checking the area, and that is worth knowing.

Is it legal to use a fake SSN?

Using one in test data for your own software is fine. Giving a made-up SSN to an employer, lender, landlord or government agency is a federal crime in the US. These numbers are for testing only.

Are the ITINs, SINs and CPFs also safe?

They are checksum- and format-valid but, unlike the SSNs, those schemes have no permanently unassigned range, so a generated value can coincide with a real person's number. Keep them inside test environments and never display them as real.

What do SSA's advertising numbers look like?

The SSA set aside 987-65-4320 through 987-65-4329 for use in advertisements. They fall inside the 9xx area, so they are safe for screenshots and documentation too.

Next in Identity

All 12 →