idnumbers
    Preparing search index...

    The My Number of Japan. This page is generated from the registry metadata of the library.

    Property Value
    Country code JPN, JP
    ID type My Number
    Official name マイナンバー (My Number)
    Also known as National ID Number; My Number; マイナンバー
    Display format XXXXXXXXXXXX
    Input masks ############
    Length 12
    Example 765895492872
    Checksum yes
    Checksum algorithm Weighted sum mod 11 (weights 6,5,4,3,2,7,6,5,4,3,2; remainder <= 1 → 0, else 11 - remainder)
    Parsable no

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('JPN', '765895492872').isValid; // true

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

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

    register(country);
    validateNationalId('JPN', '765895492872').isValid; // true