CPF Generator
Generate mathematically valid Brazilian CPF numbers for software testing and development. With or without formatting. For test use only.
What is a CPF generator used for?
In the daily routine of people who build and test software, it is common to need valid CPFs to fill forms, populate test databases and check that validation routines work, all of it without touching real people's data.
The CPFs generated here follow the Receita Federal check-digit algorithm, so they are mathematically correct. Even so, they remain fictitious numbers with no link to any real person.
For testing and development use only. Using fake CPFs for any illegal purpose is a crime.
How the Brazilian CPF is structured
The CPF — Cadastro de Pessoas Físicas — is the eleven-digit identifier the Brazilian Federal Revenue assigns to every taxpayer. It is written as XXX.XXX.XXX-DD, where the first nine digits identify the person, the ninth digit also encodes the fiscal region where the document was first issued, and the last two are check digits computed with the modulo 11 algorithm. The same algorithm is used by every bank, e-commerce gateway and government portal in Brazil to reject typos before storing the number.
The check-digit math is straightforward. For the first DV, multiply each of the nine identifying digits by the descending weights 10, 9, 8, 7, 6, 5, 4, 3, 2, sum the products, take the remainder modulo 11; if the remainder is 0 or 1, the DV is 0, otherwise it is 11 minus the remainder. For the second DV, repeat the procedure over the ten previous digits (including the first DV) using weights 11 down to 2. A valid CPF passes both checks; numbers like 111.111.111-11 are filtered out by most validators even though they technically satisfy the formula.
What the 9th digit reveals
The ninth digit indicates the fiscal region of the address provided at first registration: 1 covers DF, GO, MT, MS and TO; 2 the northern states (AM, PA, AC, AP, RO, RR); 3 CE, MA, PI; 4 PE, RN, PB, AL; 5 BA and SE; 6 MG; 7 RJ and ES; 8 São Paulo; 9 PR and SC; and 0 Rio Grande do Sul. The digit stays fixed even if the person moves states later.
FAQ
Can I use these CPFs to sign up on real services? No. The numbers are mathematically valid, but they are not registered with the Receita Federal. Using a generated CPF on a real transaction, financial product or public benefit is identity fraud and a federal crime (Código Penal art. 299 / 307). The output is meant for unit tests, mock data, training environments and form-validation development.
What is the difference between a valid and a real CPF? A valid CPF satisfies the modulo-11 algorithm. A real CPF additionally exists in the Receita Federal database, is linked to a person and has a current status (Regular, Pendente, Suspenso, Cancelado or Nulo). This tool only produces the former.
Why are sequences like 000.000.000-00 usually rejected? Although the check digits compute correctly, the Receita Federal explicitly excludes repeated-digit CPFs from registration and most production validators add a rule to refuse them.
Does the tool send my data anywhere? No. Generation happens entirely in your browser with JavaScript — nothing is transmitted to the server.
Related Tools
Handwriting Generator
Convert typed text into an image with handwriting appearance. Useful for adding a personal touch to digital work.
Resume Generator
Fill a simple printable A4 CV from a form with personal data, education and experience.
Favicon Generator
Generate a favicon from text/emoji in all common sizes (16, 32, 48, 64, 192, 512). PNG download.
What a CPF generator is for
Anyone building software, putting together a test spreadsheet or filling out a staging form keeps hitting the same wall: a real CPF is both risky and out of place. The generator gets around it by creating numbers that respect the check-digit calculation. They clear any validation and still belong to no one.
This is what you reach for to seed a development database, demo registration screens or run automated QA tests. Generate it with or without the dot-and-dash mask, whatever the target field wants. Worth stating plainly: fake data is for testing, never for fraud, impersonation or slipping past real checks. That kind of use is a crime.
The numbers are built right in the browser, with no external lookup at all. Each click returns a different combination, so putting together a whole list of valid CPFs for your test environment takes a few seconds.