Brazil CPF and CNPJ Validator
Check whether a Brazilian CPF or CNPJ number is valid with its two check digits, including the new alphanumeric CNPJ issued since 2026.
How to use it
- 01
Enter the CPF or CNPJ with or without dots, slash and dash.
- 02
The tool recognizes it by length: 11 digits is a CPF and 14 characters is a CNPJ.
- 03
You see whether both check digits are right and, for a CPF, the tax region where it was issued.
How it works
The CPF identifies individuals: 9 base digits plus 2 check digits. The first one multiplies the 9 digits by 10, 9, 8… 2, adds them up and takes 11 minus the remainder of dividing by 11 (0 if the remainder is below 2). The second repeats the process over 10 digits with weights 11 to 2.
The CNPJ identifies companies: 12 base positions and 2 check digits with weights 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2. Since July 2026 the Receita Federal has issued alphanumeric CNPJs: each letter is worth its ASCII code minus 48 (A = 17), and existing numeric CNPJs remain valid.
The ninth CPF digit shows the tax region where it was issued (8 is São Paulo, 7 Rio de Janeiro and Espírito Santo, and so on). The tool only checks that the number is well formed, not that it exists.
Examples
- Sample CPF
529.982.247-25: the calculated check digits are 2 and 5, and the ninth digit, 7, points to ES and RJ.
- Numeric CNPJ
11.222.333/0001-81: 0001 marks the head office and the check digits 8 and 1 are correct.
- Alphanumeric CNPJ
12.ABC.345/01DE-35, the Receita Federal’s own example: letters count as 17 (A), 18 (B) and so on, giving check digits 3 and 5.
Frequently asked questions
What is the alphanumeric CNPJ?
It is the Receita Federal’s new format, issued since July 2026: the first 12 positions may contain letters and the last 2 are still digits. Existing CNPJs do not change.
Why is 111.111.111-11 rejected?
It satisfies the formula, but the Receita never issues numbers with all digits equal.
Related tools
- 14.06
IBAN Validator
Validators - 14.03
Argentina CUIT and CUIL Validator
Validators - 14.02
Chile RUT Validator and Check Digit Calculator
Validators - 14.01
Spain DNI and NIE Letter Calculator
Validators - 14.04
Mexico RFC Validator
Validators - 01.01
Age Calculator
Calculators - 01.02
Percentage Calculator
Calculators - 02.01
VAT & Sales Tax Calculator
Finance