Free online tool to validate Swedish Personnummer and Samordningsnummer. Supports format validation, Luhn algorithm, gender detection, age calculation, and number parsing.
The Swedish personal identity number (Swedish: Personnummer) is a unique identifier issued by the Swedish Tax Agency (Skatteverket) to individuals registered in the Swedish population register. It is an essential identity token in Swedish society, used for interactions with public authorities, healthcare, schools, banks, and many other services.
A Swedish Personnummer typically consists of 10 or 12 digits in the format YYYYMMDD-XXXX or YYMMDD-XXXX. Each part carries specific information:
Format YYMMDD or YYYYMMDD. When a person turns 100, the delimiter changes from hyphen (-) to plus (+), e.g., 900101+1234.
A three-digit number that distinguishes individuals born on the same day. Odd numbers are assigned to males, even numbers to females.
Calculated from the previous 9 or 11 digits using the Luhn algorithm (mod 10) to verify the number's authenticity.
The Swedish ID number system includes two main types: Personnummer and Samordningsnummer (coordination number). They apply to different groups.
For persons planning to live in Sweden for at least one year or those with a residence permit for long-term stay. This is the primary official identity number, lifelong once assigned.
For persons staying in Sweden temporarily (less than one year) or those who cannot obtain a Personnummer but have a connection to Sweden (e.g., owning a vacation home). Its structure is similar to Personnummer, but the day part of the birth date is increased by 60.
This validator supports both Personnummer and Samordningsnummer, automatically detecting the number type.
The checksum of a Swedish Personnummer is computed using the Luhn algorithm (also known as the "mod 10" algorithm). This algorithm is widely used for credit card numbers, IMEI numbers, and other identification codes to prevent input errors.
Take the Personnummer 310317-099x as an example (x is the checksum to compute):
3 1 0 3 1 7 0 9 92,1,2,1,2,1,2,1,2 from left to right:3×2=6,1×1=1,0×2=0,3×1=3,1×2=2,7×1=7,0×2=0,9×1=9,9×2=18
6+1+0+3+2+7+0+9+9=37(10 - (sum mod 10)) mod 10 = (10 - 7) mod 10 = 3Therefore the complete Personnummer should be 310317-0993. This tool automatically performs Luhn validation to ensure number validity.
The following persons can obtain a Swedish Personnummer:
If you stay in Sweden for less than one year but still need an official identification number, you can apply for a Samordningsnummer (coordination number) as a temporary substitute.
If you meet the criteria, you need to submit an application to the Swedish Tax Agency (Skatteverket):