Skip to content

CNPJ Validator — Instant Check

Validate any CNPJ number online in seconds. Check if a Brazilian company registration is valid — instant results, works on mobile and desktop.

No sign-up 100% free Private

Enter 14 digits (with or without formatting)

The result will appear here

Was this tool helpful?

Validate CNPJ Online Free

The CNPJ (Cadastro Nacional da Pessoa Jurídica) is Brazil's official business registration number, composed of 14 digits in the format XX.XXX.XXX/XXXX-XX. Issued by the Receita Federal (Federal Revenue Service), the CNPJ is mandatory for every legal entity operating in Brazil — including companies, nonprofits, government agencies, and individual entrepreneurs (MEI). The CNPJ is to businesses what the CPF is to individuals: without it, a company cannot open bank accounts, issue invoices, hire employees, or participate in public tenders.

Our CNPJ validation tool recalculates the two check digits using the official Module 11 algorithm. The process applies two sets of weighted multipliers to the base digits: for the first check digit, the weights are 5,4,3,2,9,8,7,6,5,4,3,2; for the second, they are 6,5,4,3,2,9,8,7,6,5,4,3,2. Each sum is divided by 11, and the verification digit is derived from the remainder (0 if remainder is less than 2; otherwise 11 minus the remainder). If both computed digits match the provided ones, the CNPJ is mathematically valid. Sequences with all identical digits are automatically rejected.

CNPJ structure explained: The first 8 digits identify the company (root), digits 9-12 identify the establishment (branch — 0001 for headquarters, 0002+ for branches), and digits 13-14 are the check digits. This structure allows the Receita Federal to manage multiple branches under a single company registration. Currently, there are over 58 million active CNPJs registered in Brazil.

The entire validation runs 100% in your browser using JavaScript — no data is transmitted to any server. This ensures complete privacy and compliance with LGPD (Brazil's data protection law). The tool accepts both formatted (XX.XXX.XXX/XXXX-XX) and unformatted (14-digit) input, automatically stripping non-numeric characters.

New alphanumeric format: Starting July 2026, the Receita Federal will issue CNPJs containing letters A-Z in addition to digits (IN RFB nº 2.119/2022, published by SERPRO). This expansion was necessary because the numeric-only system was running out of available combinations. This tool validates the traditional numeric format. For the new alphanumeric format, use our dedicated Alphanumeric CNPJ Validator.

Need test CNPJs for development? Try our CNPJ Generator or the Alphanumeric CNPJ Generator. For individual taxpayer numbers, see our CPF Validator. To look up actual company data, use our CNPJ Lookup powered by the Receita Federal's open data.

Frequently Asked Questions

What about the new alphanumeric CNPJ?
Starting July 2026, Receita Federal will issue alphanumeric CNPJs (IN RFB 2.119/2022). This tool validates the traditional numeric format. For alphanumeric validation, use our dedicated Alphanumeric CNPJ Validator.
Is it safe to validate my CNPJ here?
Yes. The validation runs entirely in your browser using JavaScript. No data is sent to our servers. You can also validate CPF numbers with the same privacy guarantee.
Does a valid CNPJ mean the company is active?
No. This tool only verifies the mathematical structure (check digits). A valid CNPJ may belong to a closed, suspended, or inactive company. To check the actual registration status, use our CNPJ Lookup which queries the official Receita Federal open data.
What is the correct format of a CNPJ?
A numeric CNPJ has 14 digits in the format XX.XXX.XXX/XXXX-XX. The first 8 digits are the root (company), the next 4 are the order number (0001 = headquarters, 0002+ = branches), and the last 2 are check digits. Example: 11.222.333/0001-81.
What's the difference between a headquarters and branch CNPJ?
The difference lies in digits 9-12 (order number): /0001- identifies the headquarters and /0002-, /0003-, etc. identify branches. The root (first 8 digits) is the same for a company and all its branches. This tool validates both.
Can I use this tool on my phone?
Yes. The tool is responsive and works on phones, tablets, and desktops. The numeric keyboard is automatically activated on mobile devices for easier input.
How can I look up a company's registration status?
To check a company's name, registration status, industry code (CNAE), address, and partners, use our CNPJ Lookup, which accesses Receita Federal's open data. The validation here only checks the mathematical structure.
I need CNPJs for testing. How can I generate them?
Use our CNPJ Generator for valid numeric CNPJs, or the Alphanumeric CNPJ Generator for the new 2026 format. You can generate up to 50 at a time, with or without formatting.