idnumbers
    Preparing search index...

    The Personal Identity Code of Finland. This page is generated from the registry metadata of the library.

    Property Value
    Country code FIN, FI
    ID type Personal Identity Code
    Official name Henkilötunnus (HETU)
    Also known as personal identity code; HETU; Henkilötunnus
    Display format DDMMYYCSSSX
    Input masks ######*###X
    Length 11
    Example 131052-308T
    Checksum yes
    Checksum algorithm Mod-31 check character
    Parsable yes

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('FIN', '131052-308T').isValid; // true

    To bundle only this country, import its definition from idnumbers/countries/fin and pass it to register():

    import { register, validateNationalId } from 'idnumbers/core';
    import { country } from 'idnumbers/countries/fin';

    register(country);
    validateNationalId('FIN', '131052-308T').isValid; // true