---
id: "fi_hetu"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["pii", "persons"]
country: ["FI"]
langs: ["fi", "sv"]
quality: 100
url: "http://registry.apicrafter.io/datatype/fi_hetu"
---

# Finnish personal identity code (HETU) (`fi_hetu`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Henkilötunnus, the personal identity code of people registered in Finland. It is the date of birth (DDMMYY), a century sign (+ for the 1800s, - or one of Y, X, W, V, U for the 1900s, A to F for the 2000s), a 3-digit individual number (odd for men, even for women; 900 to 999 for temporary codes) and a check character - the nine-digit number DDMMYYZZZ modulo 31, looked up in 0123456789ABCDEFHJKLMNPRSTUVWXY.

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Finland (FI)
- Languages: Finnish (fi), Swedish (sv)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:0[1-9]|[12]\d|3[01])(?:0[1-9]|1[0-2])\d{2}[-+A-FU-Y]\d{3}[0-9A-FHJ-NPR-Y]$
```

Check digit algorithm: `fi_hetu`

## Examples

- `241060-268N` — Synthetic number with a valid check digit
- `271117A736D` — Synthetic number with a valid check digit
- `131052-308T` — Worked example from Wikipedia
- `131052-308U` (invalid example) — Check character does not match
- `241060-268N7` (invalid example) — One character too many

## Mappings

- dpv: `pd:OfficialID`
- google_dlp: `FINLAND_NATIONAL_ID_NUMBER`
- purview: `Finland national ID`, `EU Social Security Number (SSN) or Equivalent ID`, `EU social security number or equivalent identification`, `EU national identification number`, `EU Tax Identification Number (TIN)`, `EU Tax identification number`
- stdnum: `fi.hetu`

## Supported by tools

- `awsglue`
- `azureailanguage`
- `dataprep`
- `googledlp`
- `ibmguardium`
- `microsoftpurview`
- `openmetadata`
- `pythonstdnum`

## Translations

- fi: Henkilötunnus (HETU)
- sv: Personbeteckning

## Sources

- wikipedia: <https://fi.wikipedia.org/wiki/Henkil%C3%B6tunnus>
- wikipedia: <https://en.wikipedia.org/wiki/National_identification_number#Finland>
- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.fi.hetu.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_fi_hetu.html>

## Quality

Score 100/100.

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