Tools

CNPJ generator

Generate a valid CNPJ for tests in one click. Choose punctuation and numeric or alphanumeric format — all in the browser.

Generate with punctuation?
Format

This tool generates random numbers that only follow the check-digit algorithm. It is meant for students, developers and software tests. Do not use it to fake registrations, open a company or impersonate anyone — misuse is the responsibility of whoever generates the number.

Why generate a CNPJ?

In development, forms and test databases often require a CNPJ with valid check digits. The generator builds 12 random characters and computes the last two digits with the same modulo 11 used by the Brazilian Federal Revenue, including the alphanumeric format from IN RFB 2.229/2024. The numbers do not belong to real companies.

Features

Valid check digits

The generated CNPJ passes the modulo 11 math used in Brazil.

Masked or plain

Use 00.000.000/0000-00 or the 14 characters, matching your system field.

Alphanumeric format

Also generates the letter-and-digit pattern in the first 12 positions, as defined by the Revenue Service.

100% in the browser

Nothing is sent to servers. Randomness uses crypto.getRandomValues().