ZweiDeveloperTools
Share

CNPJ (National Registry of Legal Entities) Generator

Generate valid CNPJs for testing and development. All generated CNPJs are mathematically valid.

Generated CNPJ

⚠️ Important Notice

The generated CNPJs are only mathematically valid and should be used exclusively for testing, development, and demonstrations. Do not use these numbers for fraudulent or illegal purposes.

How the CNPJ Generator Works?

The CNPJ Generator uses a two-step process to create a valid number. First, it generates nine random digits that form the base of the CNPJ. Then, it calculates the two check digits (DV) needed to complete the 14 numbers.

The calculation of the check digits follows the Modulo 11 algorithm, the same one used by the Brazilian Federal Revenue. The first DV is calculated based on the first nine digits; the second DV is calculated using the nine digits plus the first DV. This method ensures that any CNPJ generated here will pass form and system validations.

Facts about the CNPJ Generator

  • The CNPJ Generator creates random numbers for testing purposes.
  • The tool applies the Modulo 11 algorithm to calculate the check digits.
  • The generated CNPJs have a mathematically valid format.
  • CNPJ generation does not query the Federal Revenue database.

Frequently Asked Questions

© 2026 ZweiDeveloper. All rights reserved.