Free CNPJ Generator

CNPJ Format

Result

Action

Status

IM.5RK.FUR/0001-20

Not copied

U9.LFE.TQX/0001-06

Not copied

ZW.640.PDI/0001-61

Not copied

How to use the CNPJ Generator?

1

1. Choose the Format

Select between the Numeric format (legacy standard with only numbers) or the new Alphanumeric format from the Federal Revenue.

2

2. Set the Quantity

Enter how many CNPJs you want to generate simultaneously. Our tool allows generating up to 99 numbers at once.

3

3. Generate Numbers

Click the 'Generate CNPJs' button. You can choose to add or remove the default formatting (punctuation) at any time.

4

4. Copy and Test

Use the quick copy buttons to transfer the numbers directly to your clipboard and test them in your system.

Features of the CNPJ Generator

Modulus 11 Validation

The generated CNPJs strictly follow the mathematical logic of the Federal Revenue's Modulus 11, passing any standard validation system.

Alphanumeric Support

Be prepared for the future. Our tool already supports the new alphanumeric standard that will come into effect nationwide.

With or Without Punctuation

Instantly toggle between formatted (XX.XXX.XXX/XXXX-YY) and unformatted modes, depending on your database needs.

Bulk Generation

Save time by generating up to 99 CNPJs simultaneously, ideal for quickly populating test databases.

Simplified Copying

Interface designed for efficiency, allowing the copying of individual CNPJs with a single click.

100% Local and Secure

All processing is done directly in your browser. No data or generated CNPJs are sent to our servers.

Everything about CNPJ and Validation

Disclaimer: Our tool was created with the sole purpose of generating fictitious, yet mathematically valid CNPJ numbers to be used in software testing and quality assurance (QA). These numbers are not linked to real companies and have no legal validity.

What is a CNPJ?

The National Registry of Legal Entities (CNPJ) is a registry managed by the Federal Revenue that identifies companies and other entities to tax administration bodies in Brazil.

CNPJ Structure

Traditionally, a CNPJ consists of 14 digits (XX.XXX.XXX/XXXX-YY). The first 8 numbers make up the root, identifying the base company. The next 4 numbers (usually 0001) represent the branch order, and the last 2 are authenticity check digits.

Validation Rules (Modulus 11)

The validity of a CNPJ is guaranteed by its last two digits. They are calculated using the Modulus 11 algorithm, which applies decreasing weights to the base digits to create a number immune to simple typing errors.

The New Alphanumeric Format

With the depletion of numeric combinations, the Federal Revenue implemented a new format allowing letters and numbers in the first 8 characters of the CNPJ root. The letters used do not include vowels (to avoid forming inappropriate words) or the letter 'O', to prevent confusion with the number zero.

Why use it in QA testing?

To ensure Brazilian systems and databases work correctly, developers need to test form validation routines. The generator provides reliable dummy data that allows verifying if systems are accepting and masking CNPJs properly.

Validation Best Practices

In modern systems, it is recommended to validate both the legacy and the new alphanumeric formats. Validation should ignore punctuation and focus on the correct application of the Modulus 11 algorithm to ensure input data consistency.