CPF and CNPJ Generator and Validator
Generate valid CPF and CNPJ for software testing and validate the check digits. Everything in your browser, no sign-up.
Generate CPF
Validate CPF
Frequently asked questions
What is generating a CPF or CNPJ for?
Developers and QA analysts need numbers that are valid for testing systems (registrations, forms, validations). The numbers generated here pass check-digit validation, but they are random and fictitious — they do not necessarily belong to any real person or company.
How does validation work?
A CPF has 11 digits and a CNPJ has 14, with the last 2 being the check digits, calculated from the previous ones. The tool recalculates those digits and compares them to tell whether the number is valid.
Is any data stored?
No. Everything is processed in your browser — nothing is sent to servers or stored.
⚠️ Use responsibly. This tool is intended for software testing and educational purposes. Do not use it for fraud or to impersonate others.
☕ Enjoying the tools? They are free, no sign-up and no limits. If they helped you, consider buying me a coffee — that's what keeps Ferramentai online and new tools coming. Any amount helps a lot. 💜