The CURP of Mexico. This page is generated from the registry metadata of the library.
| Property | Value |
|---|---|
| Country code | MEX, MX |
| ID type | CURP |
| Official name | Clave Única de Registro de Población (CURP) |
| Also known as | CURP; Clave Única de Registro de Población; Unique Population Registry Code; Personal ID Code Number |
| Display format | AAAANNNNNNAAAAAANN |
| Input masks | LLLL######LLLLLLX# |
| Length | 18 |
| Example | HEGG560427MVZRRL04 |
| Checksum | yes |
| Checksum algorithm | Weighted alphanumeric sum mod 10 (positions weighted 18..2; check = (10 - remainder) mod 10) |
| Parsable | yes |
The root entry registers every country:
import { validateNationalId } from 'idnumbers';
validateNationalId('MEX', 'HEGG560427MVZRRL04').isValid; // true
To bundle only this country, import its definition from idnumbers/countries/mex and pass it to register():
import { register, validateNationalId } from 'idnumbers/core';
import { country } from 'idnumbers/countries/mex';
register(country);
validateNationalId('MEX', 'HEGG560427MVZRRL04').isValid; // true