ID Card Number Validator
Check whether text is a valid ID card number as you type it, right in your browser, without sending it anywhere.
Input
Output
No value
Guide
What is an ID card number?
An ID card number is the number on a national identity card. In many countries it's the holder's personal identity number for life, also used in tax, bank and health records: the PESEL in Poland, the DNI in Spain, the Aadhaar number in India. In Italy, it's the number of the card itself, which changes with each new card.
Banks, phone shops and online services ask for these numbers, and many of them end in a check digit that catches most typos.
Tool description
Type or paste a number into the ID card number field, and the result shows as you type: "ID card number is valid" or "ID card number is not valid". Spaces and line breaks around the number are ignored.
The Country menu starts on Any country, where a number passes when it fits at least one country's check. That lets a lot through: any eight digits pass as a Tunisian number and any twelve digits not starting with 0 as a Sri Lankan one, since neither has a check digit. Pick the country for a real answer.
What each country checks
These numbers have a check digit, so a mistyped digit fails:
- Poland: the 11-digit PESEL, not the card's own series and number
- Spain: the DNI, eight digits and a letter, or the NIE, which starts with X, Y or Z
- Finland: the personal identity code, with the century sign
+,-orA, in capitals - India: the 12-digit Aadhaar number, spaced in groups of four or not
- Norway: 11 digits with two check digits
- Iran (10 digits), Israel (9 digits) and Thailand (13 digits)
- China: 18 characters ending in a digit or X, with a real birth date and region code; the older 15-digit numbers have no check digit
- Hong Kong:
A999999(9)orAA999999(9), with round, square or no brackets - Taiwan: a letter and nine digits
For these, only the form counts:
- Italy: C, another letter, five digits and two letters
- Sri Lanka: nine digits and V or X, or twelve digits
- Pakistan:
99999-9999999-9, hyphens included - Libya: 12 digits starting with 1 or 2, and Tunisia: 8 digits
Good to know
- Finnish codes with the century letters added in 2023, such as Y or B, fail here. The Finnish SSN validator and parser accepts them.
- Only China's check looks at the birth date: for Poland, Finland and Norway, an impossible date passes when the check digit fits. The PESEL Validator and Parser checks the date too.
- A number that passes may not belong to anyone. Check your own number or test data, never someone else's documents.
Features
- ID numbers of countries in Europe, Asia and North Africa
- Check digits verified where a country has them
- Spaced Aadhaar numbers and HKID brackets accepted
- Results as you type, with no button to press
- Runs in your browser, so nothing you type is sent anywhere