SSN Generator - Generate Fictional US Social Security Numbers
Generate fictional US Social Security Numbers (SSN) in the correct XXX-XX-XXXX format. Ideal as test data for software development, form validation and test automation. Bulk generation with export to Excel, CSV and JSON.
Note:All generated data is entirely fictional and not suitable for use as real personal information.
What is a Social Security Number?
A Social Security Number (SSN) is a 9-digit identification number issued by the US Social Security Administration (SSA). The format is XXX-XX-XXXX, divided into three parts: the area number, group number, and serial number.
SSN Format Rules
- Area number— The first three digits range from 001 to 899, excluding 666. Numbers 900-999 are not assigned.
- Group number— The middle two digits range from 01 to 99. Since 2011 (SSN randomization) they are assigned randomly.
- Serial number— The last four digits range from 0001 to 9999.
Example SSN Numbers
Below are five fictional SSN numbers in the correct format. These follow all structural rules but are not assigned to any real person and are safe for use in test environments.
| SSN | Area | Group | Serial |
|---|---|---|---|
| 234-56-7890 | 234 | 56 | 7890 |
| 400-01-2345 | 400 | 01 | 2345 |
| 789-23-4567 | 789 | 23 | 4567 |
| 543-21-6789 | 543 | 21 | 6789 |
| 321-54-9876 | 321 | 54 | 9876 |
Use the generator above to create more fictional SSN numbers, or generate bulk datasets with SSN, name, address and email via the Dataset Generator.
Using Fake SSN Numbers in Software Development
Fictional SSN numbers are essential when building or testing any US-facing application that handles personally identifiable information (PII). Here are the most common developer use cases.
- Identity verification forms — test SSN input fields, masking (XXX-XX-XXXX), and partial display logic (last 4 digits) without exposing real data.
- Tax processing software — validate that W-2 forms, 1099s, and payroll systems correctly store and process SSN fields across different US states and entity types.
- Employment verification — test I-9 forms, background check integrations and HR systems that link SSN to employee records during onboarding flows.
- Healthcare (HIPAA-compliant testing) — test patient registration systems, EHR integrations, and insurance claim processing without using real patient SSNs — a HIPAA requirement.
- Database seeding and load testing — generate thousands of unique fictional SSNs to fill test databases and run realistic load tests on systems that index or query by SSN.
Pair SSN numbers with fictional names, addresses and email addresses for complete US test profiles.
SSN and US Privacy Law: What Developers Need to Know
SSNs are classified as sensitive PII under multiple US federal and state laws. The consequences of exposing real SSNs in test environments range from regulatory fines to identity theft liability.
Key regulations:
- HIPAA — SSN is one of the 18 protected health information (PHI) identifiers. Using real SSNs in healthcare software test environments violates HIPAA.
- CCPA (California)— SSNs are "sensitive personal information" with heightened protections. Test systems must not contain real SSNs.
- IRS Publication 4600 — requires that SSNs in tax systems be masked or tokenized in non-production environments.
Using fictional SSN numbers — like those generated by this tool — is the simplest way to build and test US-facing applications while staying compliant with all applicable privacy regulations.