Datatypes › Sweden › Personally identifiable information

Sweden personal identity number (personnummer)

ID sepersonnummer

DatatypePersonal data (PII)identifier

The personal identity number (Swedish: personnummer) is the Swedish national identification number. It has ten digits, the date of birth as YYMMDD, a three-digit serial number and a check digit, usually written with a hyphen (a plus sign for people aged 100 or more) before the last four digits. The 12-digit form adds the century.

Categories
Personally identifiable information, Person related
Countries
Sweden
Languages
Swedish
W3C DPV
pd:OfficialID
FTA
IDENTITY.PERSONNUMMER_SE
Google DLP
SWEDEN_NATIONAL_ID_NUMBER
Presidio
SE_PERSONNUMMER
Microsoft Purview
Sweden national ID, Sweden tax identification number, EU Social Security Number (SSN) or Equivalent ID, EU social security number or equivalent identification, EU Tax Identification Number (TIN), EU Tax identification number
python-stdnum
stdnum.se.personnummer
Quality
88/100 · missing: authoritative source link, translation
Metacrafter rules
2 rules (2 by field name, 0 by value)
Supported by tools
AWS Glue Sensitive Data Detection, Azure AI Language PII detection, Cloudflare DLP, Databricks Unity Catalog data classification, Datadog Sensitive Data Scanner, FTA (Fast Text Analysis), Google Cloud Sensitive Data Protection (DLP), IBM Security Guardium Analyzer, metacrafter, Microsoft Purview Data Loss Prevention, Microsoft Presidio, python-stdnum, SAS Information Catalog (Quality Knowledge Base), Snowflake sensitive data classification, Talend (Qlik Talend Data Preparation, Data Catalog and Data Inventory), validator.js

Regular expression

^(?:\d{2})?\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[-+]?\d{4}$

Python re syntax.

Test a value

Examples

ValueDescription
880320-0016 python-stdnum example
8803200016 python-stdnum example without the hyphen
880332-0016 invalid day 32
88032-0016 invalid five-digit date

Sources

Use this record