CPF validator

Check whether a CPF number (Brazil) is valid by its check digits, one or a whole list at once.

loading CPF validator
About this tool

How CPF validation works

Validating a CPF, the Brazilian individual taxpayer number, means checking that its last two digits, the check digits, match the calculation over the first nine. It is the same test a well-built form runs before accepting the number: it catches typos, swapped digits and numbers made up at random.

This page checks many CPFs at once, one per line, with or without dots and dash, and tells you why each rejected value failed. The check is purely mathematical: it does not query the Receita Federal, so it cannot tell you the holder's name, the registration status or whether the number was ever issued. It runs in your browser and nothing you paste leaves your device, so you can clean a customer list or a CSV export without sending it to anyone.

How to validate a CPF online

  1. Open the page: the document is already CPF (individual tax ID) and the Validate box is ready.
  2. Paste the numbers, one per line. Mixing 529.982.247-25 and 52998224725 is fine: dots, dashes and spaces are ignored.
  3. Read the summary, such as "3 of 5 valid", and the table with the line number, the value and the result.
  4. For each invalid line the reason is shown next to it: wrong length, repeated digits, or the check digits that should be there.
  5. Need valid numbers to test your own validator? Use the CPF generator at the top of the same page.

Examples

A mixed list

Input:

529.982.247-25
52998224725
529.982.247-26
111.111.111-11
529.982.247-2

Result: 2 of 5 valid.

LineValueResult
1529.982.247-25valid
252998224725valid
3529.982.247-26invalid: the check digit should be 25
4111.111.111-11invalid: all digits are equal
5529.982.247-2invalid: needs 11 digits

One mistyped digit

123.456.789-08 is rejected with "the check digit should be 09": the base is right and only the last digit was mistyped. When the mistake is in the base itself, the message shows the check digits that base would have, and most likely the whole number was copied wrong.

Common errors

  • A genuine CPF shows "needs 11 digits": a spreadsheet dropped the leading zero (012.345.678-90 became 1234567890). Export the column as text.
  • Valid here but refused by a Brazilian service: the service queried official records and the CPF is suspended, cancelled or was never issued. Check digit maths does not prove a number exists.
  • Blank lines disappear from the table: they are skipped on purpose; line numbers still refer to your original list, so you can find the right row.

Frequently asked questions

Does validating a CPF show the holder's name?

No. Only the Receita Federal's official lookup returns the name and status. This page checks format and check digits only.

Why is 111.111.111-11 invalid if the maths works?

Numbers made of one repeated digit satisfy the formula, but they are never issued and nearly every system blocks them, so this tool does too.

Can I validate a CNPJ on the same page?

Yes: switch the document to CNPJ (company tax ID). To create company numbers for tests, use the CNPJ generator, which also covers the new alphanumeric CNPJ.

Report a problem