CPF and CNPJ validator

Check whether a CPF or CNPJ is valid and compare the details it holds with what the applicant declared.

Check one ID number

Spaces, dots, dashes and slashes are fine

Declared details

These fields are optional. Each filled field is compared with what the number holds.

The number is checked in this browser and is not sent or stored.

ID number result 390.533.447-05

Valid
Date of birth–
Sex–
RegionES, RJ (7)

The number is well built and its check digit matches, but this does not prove it belongs to the applicant.

CheckResult
Length and charactersPass
Number layoutPass
Check digitPass
DetailIn numberDeclaredResult
Date of birth––Not held in number
Sex––Not held in number
RegionES, RJ (7)ESMatches
Country–
Usual form–
Number kind–

Check a list of ID numbers

Up to 100 numbers for the selected country and ID number

Numbers this tool checks

Many national ID numbers contain a date of birth, sex or region, plus a check digit that can catch a mistyped digit. The table shows which details each number holds.

CountryID numberCheck digitDate of birthSexRegion
BrazilCPF✓––✓
BrazilCNPJ✓–––
ChileRUT / RUN✓–––
China居民身份证✓✓✓✓
CzechiaRodné číslo✓✓✓–
FranceNIR✓✓✓✓
IndiaAadhaar✓–––
IndonesiaNIK–✓✓✓
ItalyCodice fiscale✓✓✓✓
MexicoCURP✓✓✓✓
MexicoRFC✓✓––
PolandPESEL✓✓✓–
RomaniaCNP✓✓✓✓
SingaporeNRIC / FIN✓–––
SpainDNI / NIE / NIF✓–––

Run these checks on every application in your onboarding or credit decision flow. Start your trial

How CPF and CNPJ check digits work

A CPF has eleven digits and identifies an individual taxpayer, with its final two digits serving as check digits calculated from earlier digits using mod 11. A CNPJ has fourteen characters, with the company identified by the first eight and its establishment by the next four. Its final two characters are mod 11 check digits.

Compare any date of birth, sex or region shown by the number with the applicant’s form. A difference is a reason to follow up with the applicant. A valid result does not show that the number was issued, remains in use or belongs to the applicant.

CPF and CNPJ questions

How can I check whether a CPF is valid?

The tool checks the CPF’s structure and check digits and shows whether it is valid. That result does not show that the CPF was issued or belongs to the applicant.

What does the ninth digit of a CPF mean?

The ninth digit identifies the fiscal region that issued the CPF, a group of states. A CPF does not contain the holder’s date of birth or sex.

How do I check the CNPJ check digit?

The CNPJ’s final two characters are check digits calculated using mod 11. The tool checks those digits along with the number’s format.

Does a CPF contain the holder’s date of birth?

No. A CPF does not contain the holder’s date of birth or sex. It does contain a fiscal-region code.

Does a valid CPF belong to the applicant?

A valid result means the CPF passed the checks shown by the tool. Only the issuing registry can confirm whether it was issued or belongs to the applicant.