CodeToolsHub.dev

CNPJ Validator (numeric & 2026 alphanumeric)

Live

Validate numeric and 2026 alphanumeric CNPJs.

All generated data is fictional and intended for development, testing, QA, prototyping, and automation only. Do not use it for fraud, impersonation, or illegal activity.

Configuration

Output· 7 lines · json
ValidValid CNPJ.
Formatted
11.222.333/0001-81
Format
Numeric
Establishment
0001 (matriz)

About this tool

Paste a CNPJ (formatted or raw) to check it. The validator accepts 12 base positions (A–Z, 0–9) plus 2 numeric check digits, recomputes the mod-11 digits over each character's ASCII−48 value — correct for both numeric and the 2026 alphanumeric format — and reports whether it is a headquarters (0001) or a branch. Technical validation only.

Example output

{
  "valid": true,
  "reason": "Valid CNPJ.",
  "Formatted": "11.222.333/0001-81",
  "Format": "Numeric",
  "Establishment": "0001 (matriz)"
}

Frequently asked questions

Does it support the new alphanumeric CNPJ?
Yes — it validates both the numeric CNPJ and the 2026 alphanumeric format, using the official mod-11 over ASCII−48 character values.

Related tools

CodeToolsHub.dev

Realistic fictional data for development, testing, and AI.

© 2026 CodeToolsHub.devAll generated data is fictional. Not affiliated with Microsoft or Visual Studio Code.