Sweden Personnummer Decoder & Luhn Validator

Decode a Swedish personnummer — date of birth, gender and Luhn check digit.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Enter a Swedish personnummer and this tool decodes the date of birth, the birth number, and the gender, then verifies the final Luhn check digit. It accepts both the 10-digit form (YYMMDD-NNNC) and the 12-digit form (YYYYMMDDNNNC).

How it works

The number is split into its meaningful parts:

  • YYMMDD / YYYYMMDD — the date of birth.
  • Separator- normally, or + once the person is 100 or older.
  • NNN — a three-digit birth number. Its second-to-last digit gives sex: odd = male, even = female.
  • C — a Luhn check digit over the ten significant digits YYMMDDNNN.

To verify C, the nine leading digits are run through the Luhn algorithm: alternate digits (starting from the first) are doubled, any result over 9 is reduced by its digit-sum, all are added, and the check digit is (10 − total mod 10) mod 10.

Example

For 8112189876:

PartValueMeaning
Birth date81121818 December 1981
Birth number9872nd-to-last digit 7 → male
Check digit6Matches the Luhn expectation

The decoder confirms 6 is the correct Luhn digit, so the number is structurally valid. Your personnummer is processed entirely in your browser — nothing is uploaded.

Ad placeholder (rectangle)