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 characters, with the last two being check digits calculated from the first 12. In the alphanumeric format (in force since July 2026) those first 12 characters may contain letters, which enter the calculation with a numeric value (A=17 through Z=42). 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 characters). All branches share the same root.
OrderIdentifies the headquarters (0001) or branch (0002, 0003, etc.) of the establishment.
Check DigitsTwo numeric digits calculated from the preceding characters to validate the CNPJ.