SSN: what it is and how to test it
The SSN (Social Security number) is the 9-digit identifier of people in the United States, issued by the Social Security Administration. It has no check digit, so a test SSN is "valid" only by its structure, and a number that follows the rules may belong to a real person. This page is for test environments only.
For tests only. These numbers have a correct format and check digit but belong to no real person or account. Never use them to deceive, to open accounts or to bypass a check. The numbers on this page come from the same generator as the tool, with a fixed seed so that the examples do not change; the tool creates new ones at every click.
Structure of the number
9 digits as AAA-GG-SSSS: area (001 to 899, never 666), group (01 to 99) and serial (0001 to 9999). Areas 000, 666 and 900 to 999 are never issued, and since 2011 the numbers are assigned at random instead of by state.
The check digit, step by step
There is no check digit. Validation checks the 9 digits, that the area is not 000, 666 or from 900 to 999, that the group is not 00, that the serial is not 0000, and that the number is not one of the void numbers that were used in advertising (such as 078-05-1120, printed on sample cards in the 1930s).
Worked example with 871-30-1869:
| Part | Value in the example | Rule |
|---|---|---|
| Area | 871 | 001 to 899, never 666 |
| Group | 30 | 01 to 99 |
| Serial | 1869 | 0001 to 9999 |
Valid examples
Five numbers generated by the tool with a fixed seed, each one accepted by its validator:
| Example (formatted) | Without mask | Validator |
|---|---|---|
871-30-1869 | 871301869 | valid |
120-61-2316 | 120612316 | valid |
392-30-0862 | 392300862 | valid |
535-76-7283 | 535767283 | valid |
017-85-2039 | 017852039 | valid |
How the validator answers
The same first example, one with a changed ending and one truncated, checked by the validator:
| Value | Result | Reason |
|---|---|---|
871-30-1869 | valid | - |
666301869 | invalid | wrong format: the first three digits cannot be 000, 666 or 900-999 |
8713018 | invalid | needs 9 digits |
Common mistakes
- Do not use a generated SSN to fill a real form, a credit check or a tax return: the number may belong to someone. Keep it inside a test environment that never talks to a real service.
- Validators that still use the old state-by-state map of area numbers are out of date: since the 2011 randomization all areas from 001 to 899 (except 666) can be issued.
Frequently asked questions
Why can an SSN not be fully validated?
Because it has no check digit: any 9-digit number that follows the structure rules looks valid. Only the Social Security Administration can confirm that a number was issued, through its own verification service.
What is the 078-05-1120 SSN?
It was printed on sample cards inserted in wallets in 1938 and thousands of people used it as their own. It was voided by the SSA and a validator must reject it.
Can I use a SSN number generated here in a real system?
No. A number such as 871-30-1869 has a correct format and check, but nobody was issued it, and it may coincide with a real holder by chance. Use it in test environments, demos and automated tests that never leave your control.