Home🇸🇪 SwedenPersonnummer

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

IdentifierPersonnummer
Country🇸🇪 Sweden
Format000000-0000
Length10 characters
ChecksumLuhn
Example710427-1023
Safe strategy Synthetic
Data qualityVerified against sources

Validation regex

Matches the canonical value — strip separators and uppercase first: value.replace(/[^A-Za-z0-9]/g, '').toUpperCase()

^\d{10}$

References

  1. en.wikipedia.org/wiki/Personal_identity_number_(Sweden)

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.

Validate an existing number →

For software testing only. These numbers are synthetic and must never be used for real-world identification, applications, or to impersonate anyone.