National ID & Tax Number Validator
Check CPF, CNPJ, DNI/NIE, French NIR, German Steuer-ID and Iranian national codes for valid format and check digits, right in your browser.
This only checks the format and check digits. It cannot tell whether a number was really issued or who it belongs to. Everything runs in your browser and nothing is sent anywhere.
About this tool
What is a national ID and tax number validator?
Many countries add a check digit or check letter to personal and company numbers, so typing mistakes can be caught before a form is sent. This tool recalculates that check for six common numbers and tells you whether the number is well formed and, if not, what the correct check digit would be.
Supported numbers
- Brazil CPF: 11 digits, two check digits (mod 11). Also shows the fiscal region from the ninth digit.
- Brazil CNPJ: 14 characters, two check digits. Letters in the first 12 positions (the new alphanumeric CNPJ) are supported.
- Spain DNI / NIE: 8 digits plus a control letter, or X/Y/Z, 7 digits and a letter.
- France NIR: 13 digits (Corsica 2A/2B supported) plus a 2-digit key, 97 minus the number modulo 97.
- Germany Steuer-ID: 11 digits with the ISO 7064 MOD 11,10 check digit and the digit repetition rules.
- Iran national code: 10 digits with a mod 11 check digit. Persian and Arabic digits are accepted.
How to use it
- Choose the ID type.
- Type or paste the number. Dots, dashes, slashes and spaces are ignored.
- Read the result. Use the example button to see a valid sample.
FAQ
Does a valid result mean the number is real?
No. It only means the number follows the format and check digit rules. It does not prove the number was issued or who owns it.
Is my number sent anywhere?
No. Everything is calculated in your browser.
Why is 111.111.111-11 rejected?
It passes the arithmetic but numbers made of one repeated digit are not issued, so the tool rejects them.
