Money and Finance

The Alphanumeric CNPJ From July 2026: What Changes and How to Validate It

What changes with Brazil's alphanumeric CNPJ from July 2026, how the new check digits are calculated, how to update systems and validate both formats.

Saizul Amin
Saizul Amin3 Nov 2026 · 3 min read
The Alphanumeric CNPJ From July 2026: What Changes and How to Validate It

For decades, every company in Brazil was identified by a 14-digit CNPJ made only of numbers. From July 2026, new CNPJs can include letters. The change is simple for companies, but every system that stores, validates or searches CNPJs must adapt. This guide explains what changes and how to validate both formats with the free Alphanumeric CNPJ Validator.

Why the CNPJ is changing

The CNPJ, Cadastro Nacional da Pessoa Jurídica, identifies companies, branches, associations, government bodies and other entities. With millions of new companies every year, especially MEIs, the numeric combinations are running out. The Receita Federal's Normative Instruction 2.229/2024 created the alphanumeric format to expand the possibilities.

What changes

  • From July 2026, new CNPJs may have letters and numbers in the first 12 positions: the 8-character root and the 4-character branch order.
  • The last two positions, the check digits, remain numbers.
  • Existing CNPJs do not change. Companies keep their numbers.
  • The formatting stays the same: AA.AAA.AAA/AAAA-DD.

So both formats will coexist for many years.

The new check digit calculation

The method is still modulus 11, with the same weights, but characters are converted in a new way:

  1. Each character is converted to its ASCII code minus 48. Digits 0 to 9 keep their values 0 to 9. Letters become A = 17, B = 18, and so on up to Z = 42.
  2. For the first check digit, multiply the 12 values by 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2 and add them up.
  3. Divide the sum by 11. If the remainder is 0 or 1, the digit is 0; otherwise it is 11 minus the remainder.
  4. For the second digit, use the 12 characters plus the first digit with weights 6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2.

For numeric CNPJs, this gives the same result as the old rule, so one function can validate both.

Example

For the base 12ABC34501DE, the check digits are 35, giving the CNPJ 12.ABC.345/01DE-35. The numeric CNPJ 11.222.333/0001-81 is also valid, and 11.222.333/0001-82 is not.

How to update systems

  • Data type: store CNPJs as text with 14 characters, not as numbers.
  • Input: accept upper-case letters; convert lower case to upper case.
  • Masks: allow letters in the first 12 positions.
  • Validation: use the new character conversion.
  • Searches and keys: compare without punctuation.
  • Integrations: check invoice systems, banking files, ERPs and government services.
  • Tests: include alphanumeric examples.

Spreadsheets are a common problem: they may convert CNPJs to numbers and drop leading zeros. Format the column as text.

How to use the validator

  1. Paste a CNPJ in any format.
  2. Read whether it is valid, its formatted version and whether it is numeric or alphanumeric.
  3. To generate check digits, enter a 12-character base.
  4. To check many CNPJs, paste a list, one per line, and download the results as CSV.

What it does not do

A valid check digit means the number is well formed, not that the company exists or is active. Use the CNPJ query on the Receita Federal website to confirm registration data.

The CPF stays numeric

Only the CNPJ changes. The CPF of individuals keeps its 11 digits and its old check digit rule.

A timeline for companies

Companies do not need to do anything about their own CNPJ. Their suppliers, customers, banks and software providers, however, will start receiving alphanumeric CNPJs from new companies from July 2026. Test invoice issuing, supplier registration and payment files before then, and ask software vendors when their updates will be ready.

Limits

This tool implements the published calculation. For system integration, follow the Receita Federal technical notes and test with official examples.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages