Finnish henkilötunnus: test generator and validator

Finnish personal identity code (HETU), also called a Finnish social security number

Generate test identity codes that can never belong to a real person, or check whether a henkilötunnus is valid and what it encodes.

Nothing leaves your browser. The check runs in this page, and its security policy blocks every network request, so what you type is never sent anywhere.

Generate test identity codes

Every generated code uses an individual number from 900 to 999. That range is used for temporary identity codes (for example in hospitals, before an official code is known) and for testing, and it is not in the Population Information System, so these codes are safe to use as test data.

Check a number

How a henkilötunnus is built

Part Example Meaning
Date of birth 131052 DDMMYY: 13 October ’52
Century sign - + 1800s, - U–Y 1900s, A–F 2000s
Individual number 308 002–899 for people; 900–999 for temporary and test codes
Check character T The nine digits as one number, modulo 31, looked up in 0123456789ABCDEFHJKLMNPRSTUVWXY

Since 2023, people born in the 1900s can also have the century signs U, V, W, X or Y, and people born in the 2000s B, C, D, E or F, in addition to - and A. A validator that only accepts - and A rejects real, valid codes.

Got a whole spreadsheet of these? Scrubsheet finds ID numbers, IBANs, names and emails in Excel and CSV files and anonymizes them, in your browser, without uploading the file.

Anonymize a spreadsheet

More free tools