Alphanumeric CNPJ (starting July 31, 2026)Brazil's tax authority (Normative Instruction RFB nº 2,229/2024 and Technical Note COCAD/SUARA/RFB nº 49/2024) starts issuing new CNPJ numbers in an alphanumeric format on July 31, 2026: the first 12 characters (8 for the root plus 4 for the order/branch) start accepting digits 0 to 9 or uppercase letters A to Z, while the last 2 characters, the check digits, stay numeric. Every CNPJ already issued remains 100 percent numeric and valid forever, the change only applies to new registrations from that date on.
The check digit math is still modulo 11 with the same weights as before (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), only the way each character becomes a number before being multiplied by its weight changes: take the character's ASCII code and subtract 48. For a digit '0'-'9' that gives the digit's own value (0 to 9, same as always); for a letter 'A'-'Z' it gives a value from 17 to 42 (A=17, B=18, C=19 and so on).
Official worked example from Brazil's tax authority: for CNPJ 12.ABC.345/01DE, the base is 1,2,A,B,C,3,4,5,0,1,D,E. Converting (A=17, B=18, C=19, D=20, E=21) and applying the weights, the first digit's weighted sum is 459; 459 divided by 11 leaves remainder 8, so the first check digit is 11 minus 8, which is 3. Repeating with all 13 characters (including that 3) and the second digit's weights gives a sum of 424, remainder 6, so the second check digit is 11 minus 6, which is 5. Result: 12.ABC.345/01DE-35, exactly the example published by the tax authority. This validator recognizes the format automatically, with no need to pick CPF, numeric CNPJ or alphanumeric CNPJ by hand, and uppercase versus lowercase makes no difference, everything is normalized before the math runs.
Brazil's tax authority recommends against using the letters I, O, Q, U and F in real CNPJs, since they can look like digits or like each other. That is an issuing guideline, not a rule of the check digit math itself, so the validator still computes correctly even if one of those letters shows up, it just surfaces an informational note.