Verify personal identifier checksums.
Initialising algorithm engine for Swedish Personal Number Validator...
How Swedish Personal Number Validator Works?
The Swedish Personal Number Validator applies Luhn to the 9 digits YYMMDDNNN. It compares that result with digit 10 of the personnummer.
- 1Convert the 12-digit form (YYYYMMDD-NNNC) to 10 digits by dropping the century.
- 2Multiply the first 9 digits by 2, 1, 2, 1, 2, 1, 2, 1, 2.
- 3Add the digits of each product.
- 4Compute (10 − (S mod 10)) mod 10.
- 5Compare the result with the last digit.
Swedish Personal Number Validator Formula
The personnummer formula is C = (10 − (Σ digitsum(dᵢ·wᵢ) mod 10)) mod 10, with wᵢ = 2, 1, 2… from the left.
S = Σ digitsum(dᵢ × wᵢ), w = 2,1,2,1,2,1,2,1,2 C = (10 − (S mod 10)) mod 10 (SWEDISH PERSONAL NUMBER VALIDATOR)
NNNis the birth number; the 3rd digit is odd for men and even for women.
Luhn sum = 44 Check = 6 Personnummer = 811218-9876
Swedish Personal Number Validator Conversion Table
The personnummer conversion table lists sample birth dates and birth numbers with their check digit.
| Date part | Birth number | Check | Personnummer | Gender |
|---|---|---|---|---|
| 811218 | 987 | 6 | 811218-9876 | Male |
| 640823 | 323 | 4 | 640823-3234 | Male |
| 900101 | 234 | 4 | 900101-2344 | Female |
| 121212 | 121 | 2 | 121212-1212 | Male |
| 850709 | 980 | 5 | 850709-9805 | Female |
Samordningsnummer (co-ordination numbers) add 60 to the day and use the same check digit rule.
What is Swedish Personal Number Validator?
A Swedish Personal Number Validator is a tool that verifies the Luhn check digit of a Swedish personnummer issued by the Swedish Tax Agency (Skatteverket).
People aged 100 or more use + instead of - as the separator in the 10-digit form.
What are the uses of Swedish Personal Number Validator?
There are 3 main uses of the Swedish Personal Number Validator, including BankID sign-up, healthcare records, and payroll.
- BankID and sign-up flows: Swedish services validate the number before identity checks.
- Healthcare records: Regions check personnummer in patient systems.
- Payroll: Employers validate employee numbers for tax reporting.