CPF and CNPJ validator (including alphanumeric CNPJ)
What the validation checks
The last two digits of a CPF and of a CNPJ are check digits, calculated from the others. The validation redoes the calculation with modulus 11 and compares the result. Repeated numbers (such as 111.111.111-11) are rejected. Passing validation does not mean the document exists or is in good standing: for that, the Receita Federal must be consulted.
Alphanumeric CNPJ
Under Normative Instruction RFB No. 2.229/2024, the Receita Federal began issuing CNPJs with letters in the first 12 positions starting July 2026 (existing registrations do not change). The last two digits remain numeric, and the calculation uses the value of each character by its ASCII code minus 48 (letters are worth 17 for A, 18 for B, and so on). This tool accepts both formats.
Privacy
The calculation is done in your browser; the number you enter is not sent or stored.

