---
id: "sepersonnummer"
kind: "datatype"
status: "stable"
is_pii: true
categories: ["pii", "persons"]
country: ["SE"]
langs: ["sv"]
quality: 68
url: "http://registry.apicrafter.io/datatype/sepersonnummer"
---

# Sweden personal identity number (personnummer) (`sepersonnummer`)

The personal identity number (Swedish: personnummer) is the Swedish national identification number. It is a ten digit number that is widely used in Sweden to identify individuals.

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Sweden (SE)
- Languages: Swedish (sv)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[0-9]{2,4}[0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])[-+][0-9]{4}$
```

## Mappings

- dpv: `pd:OfficialID`
- fta: `IDENTITY.PERSONNUMMER_SE`
- google_dlp: `SWEDEN_NATIONAL_ID_NUMBER`
- presidio: `SE_PERSONNUMMER`
- 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`
- stdnum: `se.personnummer`

## Metacrafter rules

2 rules: 2 match the field name, 0 match values.

- `sepersonnummerfield` (field, `pii/se/se_pii.yaml`)
- `se_persons_sepersonnummerfield` (field, `se/se_persons.yaml`)

## Supported by tools

- `awsglue`
- `azureailanguage`
- `databricks`
- `fta`
- `googledlp`
- `ibmguardium`
- `metacrafter`
- `microsoftpurview`
- `presidio`
- `pythonstdnum`
- `snowflake`
- `talend`

## Sources

- other: <https://en.wikipedia.org/wiki/Personal_identity_number_(Sweden)>

## Quality

Score 68/100. Missing: examples, negative example, authoritative source link, translation.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/sepersonnummer.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/SE/persons/sepersonnummer.yaml>
