Brazil Alphanumeric CNPJ Validator and Converter (2026)
Validate numeric and new alphanumeric CNPJs from July 2026 with the Receita Federal check digit rule, generate digits for a 12-character base and check a list at once.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Paste a CNPJ
Any format.
- 2Read the result
Valid or not.
- 3See the format
With dots and slash.
- 4Generate digits
For a base.
- 5Check a list
In bulk.
- 6Download CSV
Results.
About this tool
The CNPJ, Cadastro Nacional da Pessoa Jurídica, is the 14-character registration number of every company, branch and organisation in Brazil. Until now it was entirely numeric: eight digits for the root that identifies the company, four for the branch order (0001 for the head office) and two check digits. Because the numeric combinations are running out, the Receita Federal decided, in Normative Instruction 2.229/2024, that from July 2026 new CNPJs can contain letters as well as numbers in the first twelve positions, while the last two check digits remain numeric. Existing CNPJs do not change, and both formats will coexist for decades, so every system that stores or validates CNPJs, from invoice software and bank forms to spreadsheets and databases, has to accept letters. The check digits still use the modulus 11 method, but with a new way to convert characters: each character is replaced by its ASCII code minus 48, so digits keep their value from 0 to 9 and letters count from 17 for A to 42 for Z. The weights are 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2 for the first digit and 6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2 for the second, and each digit is 11 minus the remainder of the sum divided by 11, or zero when the remainder is 0 or 1. This tool validates any CNPJ in either format, formats it with the usual dots, slash and hyphen, generates the check digits for a 12-character base, and checks a whole list at once with a downloadable CSV, which is useful when updating systems.
Who this is for
Developers and IT teams adapting systems, accountants and finance teams checking supplier records, and anyone filling forms who receives a CNPJ with letters.
Structure
| Positions | Content | |---|---| | 1-8 | Root (letters and numbers from July 2026) | | 9-12 | Branch order (letters and numbers) | | 13-14 | Check digits (always numbers) |
Updating systems
Change CNPJ fields from numeric types to text with 14 characters, keep leading zeros, accept upper-case letters, update masks and validations, and test with alphanumeric examples. Do not strip letters when cleaning input.
Checking a company
A valid check digit only means the number is well formed. To confirm that a company exists and is active, use the CNPJ query on the Receita Federal website.
Common mistakes
Some systems convert letters to numbers or drop them, others reject the CNPJ because a field only accepts digits. Spreadsheets may also remove leading zeros from numeric CNPJs. Store CNPJs as text, compare them without punctuation and in upper case, and validate them with the new rule for both formats.
The CPF does not change
The change affects only the CNPJ. Individual taxpayer numbers (CPF) remain numeric with the old check digit rule.
Limits
This tool implements the published calculation; follow the Receita Federal technical notes for integration details.
Worked example
12.ABC.345/01DE-35 has valid check digits under the new rule.
Quick facts
- Category: Money & Tax
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: IN RFB 2.229/2024
Frequently asked questions
What is the alphanumeric CNPJ?
A new CNPJ format with letters and numbers in the first 12 positions, from July 2026.
Will my company's CNPJ change?
No, existing CNPJs stay as they are.
How are the check digits calculated?
With modulus 11, converting each character to its ASCII code minus 48.
Are the check digits letters?
No, the last two characters remain numbers.
Does a valid CNPJ mean the company exists?
No, check it on the Receita Federal query.
Is my data stored online?
No, it stays in this browser.
