{"inline_business":{"brazil-cpf-validator-generator":{"validate_title":"Check a CPF","input_label":"CPF (11 digits)","input_hint":"With or without dots and hyphen: 529.982.247-25 or 52998224725.","empty":"Enter a CPF to start the check.","valid":"Valid CPF (check digits are correct)","invalid":"Invalid CPF","formatted":"Formatted:","correct_form":"With the correct check digits:","region_label":"Tax region of registration (9th digit):","region_value":"Region {{n}}: {{states}}","reason_chars":"A CPF contains digits only (dots and hyphen are accepted): remove letters and other symbols.","reason_length":"Wrong length: {{n}} digits entered, 11 expected.","reason_repeated":"All digits are identical (like 111.111.111-11): the check digits work out, but the Receita Federal does not issue these numbers.","reason_dv":"Wrong check digits: {{expected}} expected, {{entered}} entered.","rule":"Rule: 1st check digit = digits 1 to 9 × 10…2; 2nd = digits 1 to 10 × 11…2; remainder mod 11 below 2 → 0, otherwise 11 − remainder.","generate_title":"Generate test CPFs","region_select":"Tax region","region_any":"Random","count_label":"How many","punct_label":"With dots and hyphen","generate_btn":"Generate","generator_warning":"Fictitious numbers for testing a form: a valid number is not necessarily assigned, and using one to pose as someone is illegal.","note":"The check only proves the number is consistent. The status of a CPF (regular, suspended, cancelled) is shown on the website of Brazil's Receita Federal."}},"docs_business":{"tools":{"brazil-cpf-validator-generator":{"content":{"title":"How CPF check digits are calculated in Brazil","intro":"In Brazil, the CPF has 11 digits: 9 base digits followed by 2 check digits computed with modulo 11. The first weights the first 9 digits by 10 down to 2, the second weights the first 10 digits by 11 down to 2; a remainder below 2 gives 0, otherwise the digit is 11 minus the remainder. The 9th digit shows the tax region where the CPF was registered.","details":"

The calculation

First check digit: add digits 1 to 9 multiplied by 10, 9, 8… 2 and take the remainder of the sum divided by 11; a remainder of 0 or 1 gives 0, otherwise the digit is 11 − remainder. The second digit works the same way on the first 10 digits (including the first check digit) with weights 11 down to 2.

Worked examples

Tax regions (9th digit)

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; 0: RS (region 10). The digit reflects the address at registration, not the current home.

Generator and limits

Repeated digits (111.111.111-11…) pass the arithmetic but are rejected because they are not issued. The generator produces fictitious numbers for testing a form; a valid number is not necessarily assigned and the tool checks no register.

Sources and dates: check digit rule and tax region table published by Brazil's Receita Federal (tax education leaflet \"CPF\"); calculations redone on the examples above (checked on 15/10/2026).

"},"faqs":[{"question":"How are the last two digits of a CPF calculated?","answer":"Multiply the first 9 digits by 10 down to 2, add them and take the remainder of the sum divided by 11: a remainder of 0 or 1 gives 0, otherwise the digit is 11 minus the remainder. Repeat on the first 10 digits with weights 11 down to 2 for the second digit. For 529.982.247 you get 2 then 5."},{"question":"What does the 9th digit of a CPF mean?","answer":"It is the Receita Federal tax region where the CPF was registered: 8 for São Paulo, 7 for Rio de Janeiro and Espírito Santo, 0 for Rio Grande do Sul, for example. It reflects the address at registration, not the current home."},{"question":"Why is 111.111.111-11 rejected when the arithmetic works?","answer":"The 10 runs of identical digits satisfy the formula but are not issued, and most forms reject them. The tool flags them as invalid with that reason."},{"question":"Can I use a generated CPF?","answer":"Only to test software or a form. A generated number is arithmetically valid but may belong to a real person or to nobody; using it to identify yourself is fraud."}]}}}}