Free Online CNPJ Generator
Free online CNPJ generator and validator. Create valid Brazilian CNPJ numbers — numeric or alphanumeric (IN RFB 2.229/2024), headquarters or branch — with check digits directly in your browser, with no signup and no data sent.
Generated CNPJs
| # | CNPJ | Type | Copy |
|---|---|---|---|
Examples
Click a row to try the option in the tool. Generation is random: the Result column describes the property you can verify, not an exact value.
| Option | Result |
|---|---|
| Generation with mask | Valid CNPJ in the XX.XXX.XXX/XXXX-XX format |
| Batch with quantity 1 | Generating with quantity 1 shows a table with a single valid entry |
| Displayed format | The generated CNPJ is always shown as XX.XXX.XXX/XXXX-XX |
| Check digit validation (11.222.333/0001-81) | Valid CNPJ: the check digits match |
| Repeated generations | Each generation produces a different CNPJ |
| Alphanumeric CNPJ validation (12.ABC.345/0001-77) | Valid alphanumeric CNPJ: letters count as 10–35 in the check digit calculation |
Frequently asked questions
Is a generated CNPJ valid for real use?
It is mathematically valid — the check digits follow the official algorithm — but it is not registered with the Receita Federal. Use it for testing software, forms and demos.
Does generation send data to a server?
No. The digits are generated locally in your browser with a secure random generator; nothing is sent or stored.
Does validation accept CNPJs with or without the mask?
Both. You can paste 11.222.333/0001-81 or 11222333000181 — non-digit characters are ignored before the check digits are verified.
What is the alphanumeric CNPJ?
Since July 2026, IN RFB 2.229/2024 allows letters (A–Z) in the first 12 positions of the CNPJ. The two check digits remain numeric, and the calculation uses each character's value (0-9 = its own value; A-Z = 10–35). The tool generates and validates both formats.
How do I generate a headquarters or branch CNPJ?
The screen opens with a headquarters (matriz) CNPJ, and Generate produces new headquarters, each row with its own root. In Branch mode, Generate replaces the branches of each headquarters on screen: they derive from that headquarters' root and the numeric suffixes restart at 0002 (truncated at 9999) on every click. Batching works in both modes (1 to 1,000 per click), and the Export CSV button downloads the table as a file. The suffix is always numeric, per the Receita Federal semantics.