idnumbers
    Preparing search index...

    The Personal ID Number of Hungary. This page is generated from the registry metadata of the library.

    Property Value
    Country code HUN, HU
    ID type Personal ID Number
    Official name Személyi azonosító
    Also known as Personal ID Number
    Display format GYYMMDDSSSC
    Input masks ###########
    Length 11
    Example 18001010016
    Checksum yes
    Checksum algorithm Weighted sum mod 11 (weights 1-10)
    Parsable yes

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('HUN', '18001010016').isValid; // true

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

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

    register(country);
    validateNationalId('HUN', '18001010016').isValid; // true