ToolboxHub

CNPJ Generator

CNPJ 1 of 10

13.086.363/0001-33

Root1–8
Identifies the company
Branch9–12
0001 marks the headquarters
Check digits13–14
Calculated with modulo 11
  • 10 CNPJs
  • Masked
  • Headquarters (0001)
  • Numeric
  • Generated in the browser

About the CNPJ Generator

Generate valid CNPJs for software testing, with or without masking and choosing between headquarters (0001) or random branch. The numbers follow the official check-digit algorithm, so they pass any format validation — but they don't correspond to real companies. Use only for development purposes.

How to generate CNPJs in 3 steps

  1. 1Choose the quantity (1 to 100).
  2. 2Choose Headquarters or Random branch, the numeric or alphanumeric format and whether you want the mask.
  3. 3Copy the list with Copy all or one number at a time; Generate again draws new ones.

CNPJ structure

The CNPJ has 14 characters in three blocks. Since July 2026 the first 12 also accept letters; the example is the alphanumeric CNPJ 12.ABC.345/01DE-35.

PositionExampleMeaning
1–812.ABC.345Company root (base CNPJ)
9–1201DEBranch number (0001 = headquarters)
13–1435Check digits

Frequently asked questions