Thai ID Card Number Validator
Paste one or more 13-digit Thai ID numbers, with or without dashes, and see whether each check digit is correct, the expected check digit, the person-type code, the registration office code, and a formatted number. Nothing is looked up online.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Paste
Paste the numbers.
- 2Check
Read the validity.
- 3Digit
See the expected check digit.
- 4Codes
Read the type and office.
- 5Copy
Copy the formatted numbers.
About this tool
Every Thai citizen, and many registered non-Thai residents, have a 13-digit identification number, issued by the Department of Provincial Administration and printed on the ID card, the house registration and many other documents. It is also the personal tax identification number. The number has a public structure. The first digit is the type of person: 1 for Thai nationals born and registered on time after 1984, 2 for those registered late, 3 for people already in the house registration before 1984, and 4 to 8 for later registrations and foreigners in specific groups. Digits two to five identify the province and district registration office, digits six to ten the book number, and digits eleven and twelve the sequence. The thirteenth digit is a check digit calculated with a modulus 11 rule: multiply each of the first twelve digits by a weight from 13 down to 2, add the results, take the remainder after dividing by 11, subtract it from 11, and use the last digit of the result. Because a single wrong digit or swapped pair almost always changes the check digit, it catches most typing errors. Businesses, schools, hospitals and app developers use this check when people enter their ID number in a form. This validator does that in your browser. Paste one number or a whole list, with or without dashes or spaces. For each, the tool shows whether the check digit is correct, the check digit the first twelve digits require, the person-type code and the office code, and the number formatted as 1-2345-67890-12-3. Nothing is sent anywhere.
Structure
| Digits | Meaning | |---|---| | 1 | Person type | | 2–5 | Province and district office | | 6–10 | Book number | | 11–12 | Sequence | | 13 | Check digit (mod 11) |
Worked example
For 1-1037-02071-81-1, the weighted sum of the first twelve digits is 10 more than a multiple of 11, so the check digit is 11 − 10 = 1, which matches: the number is valid. 3100500123458 is also valid, while 1234567890123 fails, because its check digit should be 1, not 3.
What it cannot do
A correct check digit does not prove that the number has been issued or belongs to a person.
Forms and apps
Validate on entry to catch typing errors, and store only what you need under the Personal Data Protection Act.
Foreigners
Foreigners with a pink card or a tax ID may have numbers starting with 6, 7 or 8, or a tax ID starting with 0 for companies.
Common errors
The most common mistakes are a missing digit, two digits swapped, or the house registration number typed instead of the ID number. The check digit catches almost all of them, so ask the person to re-enter the number from the card if it fails.
Lost cards
If a card is lost, report it at the district office and apply for a new card with the same number; the number never changes.
Privacy
Your data stays in your browser; nothing is looked up online.
Limits
Checks the structure and check digit only. Not identity verification or legal advice.
Worked example
1-1037-02071-81-1 and 3100500123458 valid; 1234567890123 invalid (check digit should be 1).
Quick facts
- Category: Everyday Tools
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Department of Provincial Administration (number structure)
Frequently asked questions
How is the check digit calculated?
Weights 13 to 2 on the first 12 digits, sum mod 11, subtract from 11, last digit.
What does the first digit mean?
The type of person and registration.
Can I paste numbers with dashes?
Yes, dashes and spaces are ignored.
Does it check the number online?
No.
Can I check many numbers?
Yes, one per line.
Is my data uploaded?
No.
