The CPF Number of Brazil. This page is generated from the registry metadata of the library.
| Property | Value |
|---|---|
| Country code | BRA, BR |
| ID type | CPF Number |
| Official name | Cadastro de Pessoas Físicas (CPF) |
| Also known as | CPF number; Cadastro de Pessoas Físicas |
| Display format | ###.###.###-## |
| Input masks | ###.###.###-## |
| Length | 11 |
| Example | 111.444.777-35 |
| Checksum | yes |
| Checksum algorithm | Dual weighted mod 11 check digits |
| Parsable | no |
The root entry registers every country:
import { validateNationalId } from 'idnumbers';
validateNationalId('BRA', '111.444.777-35').isValid; // true
To bundle only this country, import its definition from idnumbers/countries/bra and pass it to register():
import { register, validateNationalId } from 'idnumbers/core';
import { country } from 'idnumbers/countries/bra';
register(country);
validateNationalId('BRA', '111.444.777-35').isValid; // true