US Social Security Number Format Explained (Safe for Testing)

Learn the US SSN format (Area-Group-Serial), the 2011 SSA randomization change, and which never-issued ranges make safe placeholders for testing and QA.

By FakeName Editorial TeamPublished June 25, 2026Last updated June 25, 20269 min read

A US Social Security Number is a nine-digit identifier written as AAA-GG-SSSS: a 3-digit Area number, a 2-digit Group number, and a 4-digit Serial number. Since the Social Security Administration switched to random assignment on June 25, 2011, those digits carry no geographic meaning. That single fact breaks a lot of validation code written before then, and it's why this guide covers the structure, the ranges the SSA has guaranteed it will never assign, and how to pick numbers that are safe to drop into a test fixture.

What are the three parts of an SSN?

An SSN has exactly three parts: the Area number (first 3 digits), the Group number (middle 2 digits), and the Serial number (last 4 digits), written together as AAA-GG-SSSS. The two hyphens are display formatting only; the stored value is nine digits. The full address space is 10^9, one billion combinations, before forbidden ranges remove a slice.

What does the Area number (first 3 digits) mean?

The Area number is the first three digits, and before 2011 it identified the state or region where the application was filed. Numbers were handed out in geographic blocks, lowest in the Northeast (001-003 covered New Hampshire) and rising west toward the territories. After June 25, 2011, that geographic link disappeared for every newly assigned number [ssa-randomization].

What does the Group number (middle 2 digits) mean?

The Group number is the middle two digits, and it ran from 01 to 99 — the value 00 was never used. It was never a demographic field. The SSA used it purely as an administrative device to split each Area into smaller blocks and to control the order in which numbers were issued within that Area.

What does the Serial number (last 4 digits) mean?

The Serial number is the last four digits, issued sequentially from 0001 to 9999 within each Group. The all-zero serial 0000 was never assigned to anyone. That guarantee is one of the facts that makes a whole class of SSN-shaped values permanently safe to use as test placeholders.

PartPositionDigitsValid rangeNotes
Area1st3001–899 (excluding 666)Pre-2011 indicated state/region; now randomized
Group2nd (middle)201–9900 never used; not a demographic field
Serial3rd (last)40001–9999Sequential within a group; 0000 never used
The three parts of a US SSN and their valid ranges (AAA-GG-SSSS).

What changed with the 2011 SSN randomization?

On June 25, 2011, the SSA began assigning SSNs at random rather than by geography. Before that date the Area number encoded the filing state and Groups were issued in a predictable order. The SSA made the change to extend the longevity of the nine-digit pool, even out assignment across states, and cut the predictability that helped identity thieves guess numbers [ssa-randomization].

Three consequences hit anyone writing validation logic. The Area number no longer maps to a state, so any table that infers a birth or residence state from an SSN is obsolete. Group numbers are no longer issued in high-group order, which kills the old 'High Group List' validity trick. And randomization opened previously unused Area numbers in the 700s and 800s, so hardcoded exclusion lists that block all 7xx and 8xx Areas now reject legitimate numbers [ssa-randomization].

SSN propertyBefore randomizationAfter randomization (current)Action for your code
Area number meaningEncoded state/region of applicationNo geographic meaningDelete state-from-SSN lookups
Group issuance orderPredictable high-group sequenceAssigned randomly within AreaDrop High Group List checks
700–899 Area numbersMostly unassigned/reservedNow being issuedRemove blanket 7xx/8xx exclusions
Number guessabilityBirth date + state narrowed itSharply reducedDo not infer identity from digits
What changed at June 25, 2011 — retire any logic in the right column.

Which SSN ranges were never issued and are safe for testing?

The SSA has never issued numbers with an Area of 000, 666, or 900-999, nor any number with a Group of 00 or a Serial of 0000. These pass a naive nine-digit format check yet can never collide with a living person's number, which makes them the safest placeholders for fixtures and seed data. The IRS treats several of these as invalid on tax forms too [ssa-employer].

  • Area 000 — never assigned. Any SSN beginning 000 is guaranteed fake.
  • Area 666 — deliberately skipped and never used as an Area number.
  • Area 900–999 — never valid SSN Areas. (Note: 900-series nine-digit numbers are used for ITINs, individual taxpayer IDs, which are a different identifier, not SSNs [irs-itin].)
  • Group 00 — the middle two digits are never 00 in a real SSN.
  • Serial 0000 — the last four digits are never 0000 in a real SSN.

Each rule independently guarantees non-issuance, so a number that trips any one of them is safe. A value like 000-12-3456 or 123-45-0000 will never belong to a real person. That's the principle our generator uses for placeholder SSNs, and what our SSN validator flags — it confirms a value is structurally valid yet non-assignable before you drop it into a fixture.

RulePatternExampleWhy it's safe
Area 000000-GG-SSSS000-44-7821Area 000 has never been issued
Area 666666-GG-SSSS666-10-2233666 was deliberately skipped
Area 900–9999NN-GG-SSSS900-55-1234Not a valid SSN area (overlaps ITIN range)
Group 00AAA-00-SSSS123-00-4567Group 00 was never assigned
Serial 0000AAA-GG-0000123-45-0000Serial 0000 was never assigned
Never-issued SSN ranges — format-valid but guaranteed non-assignable, safe for testing.

One more category is worth memorizing: numbers the SSA issued and then publicly voided, now safe as fixed placeholders. The famous one is 078-05-1120, printed on sample cards in a 1938 Woolworth wallet promotion and used by more than 40,000 people before the SSA invalidated it. The agency keeps a short list of these 'advertising' numbers that should never validate as a real identity [ssa-bad-numbers].

NumberOriginStatus today
078-05-11201938 Woolworth wallet sample cardVoided; treat as a fixed placeholder
219-09-99991940 SSA pamphlet facsimile cardVoided; never a valid identity
SSA-voided 'advertising' numbers — historically issued, now permanently invalid.

Is a format-valid SSN the same as an issued one?

No — format validity and issuance are completely separate. A format-valid SSN has digits inside the allowable structural ranges: a non-forbidden Area, a Group of 01–99, and a Serial of 0001–9999. An issued SSN is one the SSA actually assigned to a real person. No public API or list legitimately lets you check the second condition for an arbitrary individual, and you should not try.

A validator that claims a well-formed number is 'real' just creates liability with no upside. The only safe thing software can assert about an SSN is its shape.
FocusAlpha Engineering, internal data-handling standard

In practice, your validation layer should reject malformed input — wrong length, non-digits, forbidden ranges — but never claim a well-formed number is 'real.' For testing you want the inverse of real: numbers structurally valid enough to exercise your code paths while being provably non-assignable. The never-issued ranges deliver exactly that. Libraries like @faker-js/faker generate placeholder values on the same logic: realistic shape, zero link to a real identity [faker-docs].

Input conditionFormat checkSafe for test fixture?Recommended handling
Wrong length / non-digit charsFailNoReject with a clear field error
Area 000 / 666 / 900–999Fail (forbidden Area)YesReject in prod input; allow in seed data
Group 00 or Serial 0000Fail (forbidden block)YesUse as guaranteed placeholders
All structural rules passPassRiskyCould match a real person — do not hardcode
SSA-voided number (e.g. 078-05-1120)Pass shape, fail policyYesTreat as fixed, non-assignable placeholder
Validation decision matrix — what to accept, reject, and flag.

How do privacy laws classify the SSN in test data?

Major standards treat the SSN as high-sensitivity personal data even when synthetic, which is why mixing fake and real values is how leaks start. NIST SP 800-122 classifies the SSN as stand-alone, high-confidentiality PII and recommends minimizing its collection and storage [nist-800-122]. Under the EU GDPR, a national ID number is personal data per Article 4(1), while Recital 26 puts truly anonymous or synthetic data outside GDPR scope [gdpr-personal-data].

Standard / regulationRelevant clauseClassificationImplication for non-prod
NIST SP 800-122 (US)Section 2.1, App. DHigh-impact PII (stand-alone)Minimize, mask, or synthesize
GDPR (EU)Art. 4(1), Recital 26Personal data / national IDPrefer synthetic over real data
ICO guidance (UK)Anonymisation codeIdentifier requiring safeguardsAnonymized test data is out of scope
PCI DSS (analogous)Req. 6.3.1Sensitive data in test/devDo not use live data in testing
How major standards classify the SSN — and what each implies for test data.

Synthetic, never-issued SSNs let you build and test identity flows without touching regulated personal data. The UK ICO states plainly that genuinely anonymized data falls outside data-protection law, which is the safe harbor a never-issued SSN gives you [ico-anonymisation]. The cleanest compliance move in any non-production environment is to never load real identifiers at all.

How do I generate safe SSNs for tests?

Start at our identity generator on the home page to produce batches of placeholder identities, then run any value through the SSN validator to confirm it is well-formed and non-assignable. Hardcode test SSNs from the never-issued table above so reviewers can see at a glance the data is fake.

If you also need address, name, or document data for other locales, the per-country generators apply the same fictional-by-design principle to non-US identifiers. For demos and screenshots, the 000 and 900-series Areas read unmistakably as placeholders to anyone who knows the format — a small but useful signal that you handle identity data responsibly.

References & sources

  1. Social Security Number RandomizationU.S. Social Security Administration
  2. Employer Responsibilities and SSN VerificationU.S. Social Security Administration
  3. Social Security Numbers That Are Not Valid (advertising/voided numbers)U.S. Social Security Administration
  4. Individual Taxpayer Identification Number (ITIN)U.S. Internal Revenue Service
  5. SP 800-122: Guide to Protecting the Confidentiality of PIINIST Computer Security Resource Center
  6. GDPR Article 4 — Definitions (personal data)gdpr-info.eu
  7. Anonymisation: managing data protection risk code of practiceUK Information Commissioner's Office
  8. Faker.js Official Documentationfaker-js

Frequently asked questions

What is the format of a US Social Security Number?+

A US SSN is nine digits written as AAA-GG-SSSS: a 3-digit Area number, a 2-digit Group number, and a 4-digit Serial number. The hyphens are formatting only and are not stored as part of the number.

Which SSNs were never issued and are safe for testing?+

The SSA has never issued numbers with an Area of 000, 666, or 900-999, nor any number with a Group of 00 or a Serial of 0000. These pass format checks but can never match a real person, so they make safe placeholders for test data.

Does the SSN area number still tell you which state issued it?+

No. Before June 25, 2011, the Area number roughly corresponded to the state or region where the number was applied for. After SSA randomization, Area numbers are assigned without geographic meaning, so they no longer indicate a state.

Is a format-valid SSN the same as a real, issued SSN?+

No. Passing a format check only means the digits sit in allowable ranges. It does not mean the SSA actually issued that number to anyone. Format validity and issuance are completely separate things.

Can I use a generated SSN to look up a real person?+

No. Generated and never-issued SSNs are fictional test data. Using any SSN to identify, look up, or impersonate a real individual is unsafe and often illegal. These numbers exist only for software testing, QA, and privacy.

We use cookies for analytics and ads to keep this generator free. See our Privacy Policy.