Free telecom & identity tools
Free tool
Brazil CPF Generator & Validator
Generate valid test CPF numbers (Cadastro de Pessoas Físicas) by fiscal region — or paste a CPF to check its region and Receita Federal check digits.
CPF Generator
Choose a fiscal region, or leave it random. The base number is random; the region digit is set from your choice and both check digits are calculated with Receita Federal's modulo-11 formula.
CPF Validator
Paste an 11-digit CPF, with or without punctuation, to check its fiscal region and check digits.
Every CPF this tool produces is synthetic test data only. It is not issued by Receita Federal, is not registered against any person, and does not belong to any real resident of Brazil. Use it on your own test systems only — never to complete a real application, verification or KYC check.
How a CPF number is structured
A CPF is 11 digits, and unlike South Africa's ID number it encodes no date of birth — just a sequentially assigned base number, the issuing fiscal region, and two check digits. Taking 113.951.678-77 as an example:
| Digits | Segment | Meaning |
|---|---|---|
| 11395167 | Base number | An individually assigned sequential number — eight digits. |
| 8 | Fiscal region | The Receita Federal region the CPF was issued in — 8 is São Paulo. |
| 77 | Check digits | Two digits, each a weighted-sum checksum computed modulo 11 over the digits before it. |
Because the checksum is the only thing tying the number together, validation rules focus entirely on it — plus one deliberate exception: the ten repdigit numbers (000.000.000-00 through 999.999.999-99) satisfy the checksum formula by coincidence, so every real validator, and this one, rejects them outright.
Why generate test CPFs?
Any system that accepts a CPF needs realistic data to test against — bank and fintech onboarding, telecom and SIM registration, e-commerce checkouts, and the KYC and AML checks behind all of them.
Using a real person's CPF in a test environment is a privacy risk under Brazil's data protection law (LGPD). Synthetic CPFs that are structurally valid let you exercise the same code paths — format checks, region derivation, checksum validation — without any real personal information ever entering your test systems.
