piighost/br-cnpj

Brazilian company number CNPJ in its masked form. The first twelve positions accept uppercase letters as well as digits, because the alphanumeric CNPJ came into force on 31 July 2026: a new registration may carry letters in the root and branch positions while the two check digits stay numeric, so one pattern covers the legacy and the new format at once. Widening those twelve positions lets an uppercase order code with the same punctuation match, which the slash and dot mask makes rare in practice. No collision.

Label: BR_CNPJ

Pattern

\b[A-Z0-9]{2}\.[A-Z0-9]{3}\.[A-Z0-9]{3}/[A-Z0-9]{4}-\d{2}\b

Must be caught

Must be left alone

Tags: br, government-id, business

Download the detector as TOML