Validate CNPJ

Check if a CNPJ number is valid by verifying its check digits. Validation is done locally in your browser.

How CNPJ validation works

A CNPJ has 14 digits, with the last two being check digits calculated from the first 12. The algorithm uses multiplier weights and modulo 11 to generate each check digit. If the calculated digits do not match the provided ones, the CNPJ is considered invalid.

Difference between valid and active CNPJ

A valid CNPJ only means the number follows the formation rules (correct check digits). This does not guarantee the company is active, registered or in good standing with the Federal Revenue. To check the actual registration status, use our CNPJ lookup tool.

CNPJ Structure

PartMeaning
RootIdentifies the company (first 8 digits). All branches share the same root.
OrderIdentifies the headquarters (0001) or branch (0002, 0003, etc.) of the establishment.
Check DigitsTwo digits calculated from the preceding ones to validate the CNPJ.