About the CPF Generator
Generate valid CPFs for software testing, with or without mask and optionally locking the state (UF) of origin. The numbers follow the official check digit algorithm, so they pass any format validation — but do not match real taxpayers. Use only for development purposes.
How to generate CPFs in 4 steps
- Choose the quantity (1 to 100).
- Select the state (UF) or leave it as Random.
- Decide whether you want the 000.000.000-00 mask.
- Click Generate and use the copy buttons.
9th digit by state
The 9th digit of a CPF identifies the issuing tax region. The table below shows the full mapping.
| 9th digit | States |
|---|---|
| 0 | RS |
| 1 | DF, GO, MS, MT, TO |
| 2 | AC, AM, AP, PA, RO, RR |
| 3 | CE, MA, PI |
| 4 | AL, PB, PE, RN |
| 5 | BA, SE |
| 6 | MG |
| 7 | ES, RJ |
| 8 | SP |
| 9 | PR, SC |