CNPJ Generator

Generate CNPJ numbers with valid check digits, for testing forms and systems.

Choose the quantity and whether you want the result formatted or digits only, then click the button to generate.

About this tool

This tool generates valid CNPJ numbers — the first 12 digits are drawn at random and the 2 check digits are computed using the same official algorithm used to validate a real CNPJ. The generated numbers never correspond to a real company; they exist only to test forms, sign-ups, and systems that require a correctly formatted CNPJ.

How to use

Choose how many CNPJs to generate (up to 100) and whether the result should be formatted (with dots, a slash and a dash) or digits only. Click "Generate new CNPJs" to create a new list.

Examples

A generated CNPJ, like "11.222.333/0001-81", always passes check-digit validation — but it does not correspond to any real company, and must not be used for illegal purposes.

Frequently asked questions

No — every digit before the two check digits is drawn at random. The resulting number passes the mathematical validation, but it was not issued by Brazil's federal revenue service to any company.

For testing forms, sign-ups, and systems that require a validly formatted CNPJ, without using a real company's document.

No — generation happens entirely in your browser; nothing is sent to the server.
CNPJ Generator
Generated CNPJs