The new docs.trellix.com features a modernized UI and AI-powered conversational search. Content is currently available in English, with additional languages launching in early November 2026. We hope you enjoy the updated experience.

Swedish Personal Number

Prev Next

The Swedish Tax Agent issues the personal identity number when you enroll in the Swedish population register.

Validator

Swedish Personal Number — Validates using Luhn10 algorithm.

Matched expressions

Regex expressions

Description

Score

\b(?:19|20)?[0-9]{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12][0-9]|3[01])[-+]?[0-9]{4}\b

Matches a 12-digit number of the format NNNNNNNN-NNNN or NNNNNNNNNN+NN, where:

  • Digit 1–2: 19 or 20

  • Digit 3–4: 00–99

  • Digit 5–6: 01–12

  • Digit 7–8: 01–31

  • Digit 9–12: 0000–9999

1



Ignored expressions

None