Desenvolvimento
Programming
CNPJ Generator
companies for testing
Generate mathematically valid CNPJ numbers for form testing, invoice systems, payment gateways, and staging environments. Generated CNPJs pass digit verification but do not belong to any real registered company.
How to use
- 1Check the 'Format' option to receive the number with punctuation (e.g., 12.345.678/0001-95).
- 2Click 'Generate' to create a structurally valid CNPJ number.
- 3Copy the result with the dedicated button.
- 4Generate as many numbers as you need for your tests.
Practical examples
Test company registration
Generate valid CNPJs to check the validation of business registration forms.
Simulate staging data
Use generated numbers to seed test databases without exposing real company CNPJs.
Check display masks
Compare the formatted and unformatted number to make sure your interface handles both correctly.
Frequently asked questions
Do generated CNPJs belong to real companies?
No. The numbers are generated to satisfy the validation algorithm, but are not linked to any company registered with the tax authority.
Can I use it to test invoice generation?
Yes, in the staging (sandbox) environment of the tax authorities. Never use in a production environment.
Does the tool generate CNPJ with formatting?
Yes. The CNPJ is generated with mask (00.000.000/0000-00) and without mask, to suit different contexts.
