idnumbers
    Preparing search index...

    The RUN/RUT of Chile. This page is generated from the registry metadata of the library.

    Property Value
    Country code CHL, CL
    ID type RUN/RUT
    Official name Rol Único Nacional / Rol Único Tributario (RUN/RUT)
    Also known as Rol Único Nacional; RUN; Rol Único Tributario; RUT
    Display format ##.###.###-C
    Input masks ##.###.###-X, #.###.###-X
    Length 8 to 12
    Example 11.111.111-1
    Checksum yes
    Checksum algorithm Weighted sum mod 11 (cyclic weights 2..7; 10 → K, 11 → 0)
    Parsable no

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('CHL', '11.111.111-1').isValid; // true

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

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

    register(country);
    validateNationalId('CHL', '11.111.111-1').isValid; // true