SSN Generator
Valid Social Security Number generator for software testing and QA compliance.
About Social Security Number (SSN)
The Social Security Number (SSN) is a nine-digit number issued by the United States government to US citizens, permanent residents, and temporary working residents. Its primary purpose is to track individuals for social security and taxation purposes.
This tool generates mock SSN numbers in full compliance with the mathematical rules set by the Social Security Administration (SSA). We ensure that all generated numbers are purely theoretical and intended solely for software development testing and QA, preserving privacy.
Anatomy & Structure of SSN (9 Digits: AAA-GG-SSSS)
The US Social Security Number consists of 3 distinct hyphen-separated components:
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 to 3 | Area Number (AAA) | 3 digits | Pre-2011 indicated geographic state; randomized post-2011 (000, 666, 900-999 forbidden) | 054 |
| 4 & 5 | Group Number (GG) | 2 digits | Historically issued in staggered order from 01 to 99 (00 forbidden) | 72 |
| 6 to 9 | Serial Number (SSSS) | 4 digits | Sequential series from 0001 to 9999 (0000 forbidden) | 1234 |
SSN Validation Rules & SSA Restrictions
SSN verification checks regulatory structural limits and determines geographical or randomized status:
- 1. Confirm total length is exactly 9 digits.
- 2. Area Number: must not be 000, 666, or between 900-999 (reserved for ITINs).
- 3. Group Number: must not be 00.
- 4. Serial Number: must not be 0000.
- 5. Reject standard SSA advertising and test numbers.
- 6. For pre-June 2011 issuances, decode the geographic state and estimated age based on group sequencing.