idnumbers
    Preparing search index...

    The Citizen Identity Card Number of Vietnam. This page is generated from the registry metadata of the library.

    Property Value
    Country code VNM, VN
    ID type Citizen Identity Card Number
    Official name Thẻ căn cước công dân (CCCD)
    Also known as National ID Number; Thẻ căn cước công dân
    Display format PPPGYYSSSSSS
    Input masks ############, #########
    Length 9 to 12
    Example 001089000123
    Checksum no
    Checksum algorithm None (structural validation only)
    Parsable yes

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('VNM', '001089000123').isValid; // true

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

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

    register(country);
    validateNationalId('VNM', '001089000123').isValid; // true