Generate a test Sweden Personnummer
A Swedish personnummer is ten digits — date of birth (YYMMDD), a three-digit serial, and a Luhn check digit — formatted YYMMDD-NNNC. These test values are synthetic but Luhn-valid.
Synthetic · not collision-guaranteed Validate a number →
620115-9818
Synthetic personnummer (Luhn-valid). Not a real issued number.
Format specification
| Identifier | Personnummer |
|---|---|
| Country | 🇸🇪 Sweden |
| Format | 000000-0000 |
| Length | 10 characters |
| Checksum | Luhn |
| Example | 710427-1023 |
| Safe strategy | Synthetic |
| Data quality | Verified against sources |
Validation regex
Matches the canonical value — strip separators and uppercase first: value.replace(/[^A-Za-z0-9]/g, '').toUpperCase()
^\d{10}$ References
Common questions
Will these pass my validation?
Yes — they are well-formed Personnummer values (000000-0000) and pass standard format checks, including the Luhn checksum.
Could one belong to a real person?
These are synthetic values. They are format-valid but not drawn from a guaranteed reserved range, so use them only for testing.
Can I generate many at once?
Increase the count, or use the free API and CSV/JSON export for large datasets.
For software testing only. These numbers are synthetic and must never be used
for real-world identification, applications, or to impersonate anyone.