DevTools Logo

Finland Henkilötunnus (HETU) Generator

Finland Henkilötunnus (HETU) Generator

Generate Finnish personal identity codes with the century sign and mod-31 control character — synthetic test data only

Runs in your browser

For Development & Testing Purposes Only - Synthetic Mock Data

Settings

1 value

Generates one value with a valid checksum. Press ⌘/Ctrl+Enter for a fresh one.

Generated value

No value yet

Set options, then press Generate.

Generated values are valid in shape but randomized (Test Data).

Legal Disclaimer: Generated data is for software testing and validation purposes only (e.g. verifying input masks, form validation, or database seeding). It is randomly generated and not taken from any real record, but a random value can coincidentally match a real, issued number, so never use it in real applications, payments, KYC or official forms. Using it to impersonate real people or for any fraudulent activity is illegal. DevTools accepts no liability for how generated data is used.

    Examples

    Generate a HETU

    Input
    FI HETU · Generate
    Output
    131052-308T

    Birth date 1952-10-13, a 1900s century sign and the control character T for individual number 308.

    Reject a wrong control character

    Input
    131052-308U
    Output
    Invalid — 131052308 requires control character T

    The validator recomputes the mod-31 index and reports the character the inputs require.

    Reject a temporary identifier

    Input
    131052-908T
    Output
    Invalid — individual numbers 900–999 are temporary

    Temporary identifiers are not personal identity codes, so the range is refused.

    About this tool

    The Finland HETU Generator produces one henkilötunnus, the Finnish personal identity code. Values use DDMMYY, a century sign, a three-digit individual number from 002 to 899, and a control character looked up in the 31-character DVV table after a mod-31 calculation.

    The century sign is + for the 1800s and, for the 1900s, the traditional - plus the letters Y, X, W, V and U; the 2000s use A, plus B through F. All of these extra letters were added in 2023. Individual numbers 900–999 are temporary identifiers and are rejected, as are 000 and 001. The generator emits either - or A, which keeps the common cases covered.

    These are synthetic values for QA and development: never use them on real applications, KYC checks, tax filings, or identity documents, and DevTools accepts no liability for how generated data is used. A random value can coincidentally match a real henkilötunnus. Everything runs locally in your browser.

    What this tool does not do

    • The generator emits - and A only, so the 2023 letters (Y X W V U and B–F) and the 1800s plus sign need manual samples.
    • Validation cannot confirm assignment or that the code belongs to a person.
    • The tool does not cover the temporary identifier range, which it deliberately rejects.
    • A generated value can coincide with a real henkilötunnus.

    How to use this tool

    1. Open the HETU generator

      The tool is pinned to the henkilötunnus layout, so there is no option to choose.

    2. Generate a value

      Click Generate to create one code with a real birth date, an individual number and the matching control character.

    3. Copy or validate

      Copy the code to an identity fixture or download it as a .txt file, or switch to Validate to check a pasted value.

    Use cases

    Identity form fixtures

    Seed Finnish signup and KYC mocks with a code that passes the date and control-character checks.

    Century-sign coverage

    Test that your parser accepts both - and A and does not assume a single separator.

    Negative-path tests

    Change the control character or use a 9xx individual number to cover each rejection branch.

    Henkilötunnus layout

    PartRule
    DDMMYYBirth date
    Century sign+ = 1800s; - and Y X W V U = 1900s; A–F = 2000s
    Individual (3 digits)002–899; 900–999 are temporary identifiers
    Control characterDDMMYY + individual as a number, mod 31, DVV table
    GenderOdd individual number = male, even = female

    The control character is the 31-character table entry at index (DDMMYYZZZ mod 31).

    Common mistakes

    Mistake:Assuming the separator is always -

    Fix:Since 2023 the 1900s also use Y X W V U and the 2000s use B–F besides A, so a parser must accept every sign.

    Mistake:Treating 900–999 as ordinary numbers

    Fix:That range marks temporary identifiers and is rejected.

    Mistake:Computing the check over the individual number alone

    Fix:The control character uses DDMMYY plus the individual number as one integer.

    Frequently asked questions

    Are these real Finnish henkilötunnus codes?

    No. They are synthetic values for QA and development, never for real applications, KYC checks, tax filings, or identity documents, and DevTools accepts no liability for how they are used.

    How is the control character calculated?

    The DDMMYY digits and the three-digit individual number form one integer, and its remainder modulo 31 indexes the 31-character DVV table.

    Which century signs are valid?

    Plus for the 1800s, minus plus Y, X, W, V and U for the 1900s, and A through F for the 2000s.

    Why are individual numbers 900–999 rejected?

    That range marks temporary identifiers, which are not personal identity codes; 000 and 001 are also unused.

    Does the separator always have to be a hyphen?

    No. Since 2023 the 1900s also use Y, X, W, V and U, and the 2000s use B–F besides A, so a parser must accept every sign.

    References & standards