CPF Generator
🛡️ Tools for educational and development purposes. Inappropriate use is the user's responsibility.Generate valid CPF numbers for testing, masked or in bulk
About this tool
The CPF generator creates valid Brazilian taxpayer numbers — with both check digits calculated using the official Receita Federal algorithm — to fill forms, seed staging databases and test validation logic.
Numbers are generated randomly in your browser and are not intentionally tied to real people. Use them only in test environments.
How to use
- A valid CPF is generated as soon as the page opens.
- Use the mask button to switch between 000.000.000-00 and digits only.
- Click refresh to generate another one, or copy it to your form.
- Need many? Set the quantity and use Bulk generate to get a ready-made list.
Frequently asked questions
Is the generated CPF valid?
Yes, it passes the check-digit validation, which is the same rule used by systems and forms.
Can I use it for real sign-ups?
No. The numbers are meant for software testing only. Using someone else's document is a crime in Brazil.
How is the check digit calculated?
The first 9 digits are multiplied by decreasing weights (10 to 2), the sum is divided by 11 and the remainder defines the 10th digit; the process repeats with weights 11 to 2 for the 11th.
Can I generate several CPFs at once?
Yes, bulk generation creates up to 500 CPFs, masked or not, ready to copy.