Swedish Personnummer Validator and Parser
Validate a Swedish personnummer or samordningsnummer in 10 or 12 digit form. See the birth date, age and gender it holds, whether it is a coordination number, and the check digit.
Input
Output
Result
No value
Readme
What is a Swedish personnummer?
A personnummer is the Swedish personal identity number. Skatteverket, the Swedish Tax Agency, gives one to everyone who is registered in the population register, and you need it for almost everything in Sweden: health care, banking, phone contracts and work. People who are not registered can get a samordningsnummer (coordination number) instead, which looks the same.
The short form has 10 digits, YYMMDD-NNNC:
YYMMDDis the birth date. A samordningsnummer adds 60 to the day, so someone born on the 3rd has 63.NNNis the birth number. Its last digit is odd for men and even for women.Cis a check digit made with the Luhn algorithm from the nine digits before it.
The hyphen turns into a plus sign in the year the person turns 100, which is how the 10 digit form tells a 1920s birth from a 2020s one. Many systems use the 12 digit form YYYYMMDDNNNC instead, which writes out the full year.
Tool description
Type or paste a personnummer or samordningsnummer, with 10 or 12 digits and with or without the - or +. The tool checks the birth date and the check digit as you type, and tells you what is wrong when it fails.
For a valid number you get the gender, the birth date, the age today, whether it is a personnummer or a samordningsnummer, and the check digit. With 10 digits the tool reads the year as the latest one that is not after this year, or 100 years earlier when there is a plus sign. The birth date follows the date format in your regional settings, and the number never leaves your browser.
Features
- Accepts 10 and 12 digit numbers, with or without the separator
- Recognizes samordningsnummer and reads the century from the plus sign
- Validates with the stdnum library and decodes everything in your browser