CNPJ Generator
Generate valid CNPJs for testing and development. Check digit algorithm.
99.757.217/0001-08About this tool
The CNPJ Generator creates mathematically valid CNPJ numbers — with correct check digits — for exclusive use in software development and testing. Applications that process company data need to validate CNPJs in forms, integrations, and registration flows, and for that you need algorithm-valid numbers without resorting to real existing companies' data.
To use it, choose the desired quantity (up to 100 at a time) and select whether you prefer the masked format (XX.XXX.XXX/XXXX-XX) or digits only. Each CNPJ can be copied individually or all at once. The generation algorithm follows the same check digit calculation rules used by the Brazilian Federal Revenue Service.
As with CPF generation, it is essential to understand that these numbers are valid only mathematically. They do not correspond to any real company registered in the CNPJ database and must not be used outside of software testing contexts. Using a fictitious CNPJ in documents, contracts, or any official process constitutes improper use.
Legitimate use cases: populating development environments with fictitious company data, testing CNPJ masks and validators in forms, building fixtures for integration tests, and verifying the behavior of systems that consume legal entity data. All processing happens in the browser, with no data transmitted to external servers.
Frequently asked questions
Is the CNPJ Generator free?
Yes, completely free and no account required.
Are the generated CNPJs sent to a server?
No. Generation happens entirely in the browser. No number is stored or transmitted externally.
Does it work on mobile?
Yes. The tool is responsive and works in modern mobile browsers.
Do the generated CNPJs correspond to real companies?
No. They are random numbers that satisfy the check digit algorithm but are not registered in any official Federal Revenue database.
Can I use these CNPJs outside of software testing?
No. The generated CNPJs are exclusively for development and testing. Any use in official documents, contracts, or commercial processes is improper and potentially illegal.