Brazilian CPF Validator and Parser
Check a Brazilian CPF, format it as 000.000.000-00 and see its check digits and the fiscal region and states it was registered in, read from the 9th digit.
Input
Output
Result
No value
Readme
What is a CPF?
The CPF (Cadastro de Pessoas Físicas) is the Brazilian taxpayer number for people, issued by the Receita Federal. It has 11 digits, usually written as 000.000.000-00, and you need it for almost everything in Brazil, from a bank account to online shopping. The first 8 digits are a sequence, the 9th digit is a fiscal region, and the last two are check digits.
The Receita Federal splits Brazil into ten fiscal regions, and the 9th digit is the region of the address given when the CPF was first registered:
| 9th digit | States |
|---|---|
| 1 | Distrito Federal, Goiás, Mato Grosso, Mato Grosso do Sul, Tocantins |
| 2 | Pará, Amazonas, Acre, Amapá, Rondônia, Roraima |
| 3 | Ceará, Maranhão, Piauí |
| 4 | Pernambuco, Rio Grande do Norte, Paraíba, Alagoas |
| 5 | Bahia, Sergipe |
| 6 | Minas Gerais |
| 7 | Rio de Janeiro, Espírito Santo |
| 8 | São Paulo |
| 9 | Paraná, Santa Catarina |
| 0 | Rio Grande do Sul, the 10th region |
So the digit tells where the CPF was registered, not where the person was born or lives today.
The check digits come from the digits before them. For the first one, multiply the first 9 digits by 10, 9, 8 and so on down to 2, add the results and divide by 11. The check digit is 11 minus the remainder, and a result of 10 or 11 counts as 0. The second check digit works the same way over the first 10 digits, with weights from 11 down to 2.
Tool description
Paste a CPF with or without the dots and dash. The tool checks both check digits and shows the formatted number, the check digits, the fiscal region and its states. When the check digits are wrong, it tells you which ones the first 9 digits give.
Numbers made of one digit repeated 11 times pass the check digit math but aren't real CPFs, so the tool marks them as not valid.
The number is checked in your browser and never sent anywhere.
Features
- Checks both check digits
- Formats the number as 000.000.000-00
- Shows the fiscal region and its states from the 9th digit