CPF Generator

Generate valid CPFs for testing and development. Check digit algorithm.

100% local processing. Your data never leaves your computer
594.080.866-27

About this tool

The CPF Generator creates mathematically valid CPF numbers — with correct check digits — for exclusive use in software development and testing. When building applications that accept CPF as input, developers need algorithm-valid numbers to test forms, validations, API integrations, and registration flows, without using real people's data.

To use it, choose the desired quantity (up to 100 at a time) and whether you want the masked format (XXX.XXX.XXX-XX) or unformatted digits only. Each CPF can be copied individually or you can copy all at once. The numbers are generated using browser-side randomization and the check digits are calculated using the same algorithm as the Brazilian Federal Revenue Service (Receita Federal).

It is important to be clear: the CPFs generated are valid only in terms of the check digit algorithm. They are not linked to any real person and must not be used for any purpose other than software testing — such as filling out official forms, opening accounts, or any act that would constitute misuse of an identification document.

Legitimate use cases: populating development and staging databases with fictitious data, testing CPF validators in forms, building fixtures for automated tests, and verifying that an integration with an external system correctly handles CPFs in the expected format. Everything happens in the browser, with no data sent to external servers.

Frequently asked questions

Is the CPF Generator free?

Yes, completely free and no account required.

Are the generated CPFs sent to a server?

No. Generation happens entirely in the browser. No number is stored or transmitted.

Does it work on mobile?

Yes. The tool is responsive and works in any modern browser on mobile devices.

Do the generated CPFs belong to real people?

No. They are random numbers that pass the check digit algorithm but are not registered in any official database.

Can I use these CPFs outside of software testing?

No. The generated CPFs are exclusively for development and software testing. Using a fictitious CPF in legal or commercial contexts is improper and potentially illegal.