idnumbers
    Preparing search index...

    The Burgerservicenummer (BSN) of Netherlands. This page is generated from the registry metadata of the library.

    Property Value
    Country code NLD, NL
    ID type Burgerservicenummer (BSN)
    Official name Burgerservicenummer (BSN)
    Also known as Burgerservicenummer; BSN; Citizen Service Number; Personal Number
    Display format ####.##.###
    Input masks ####.##.###
    Length 9 to 11
    Example 123456782
    Checksum yes
    Checksum algorithm 11-proof weighted sum (weights 9..2, mod 11)
    Parsable no

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('NLD', '123456782').isValid; // true

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

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

    register(country);
    validateNationalId('NLD', '123456782').isValid; // true