Thai ID Card Number Validator: Check the 13-Digit Mod 11 Digit
Check Thai 13-digit national ID numbers offline with the mod 11 check digit, see the person-type and office codes, and validate a whole list at once.

Thai ID Card Number Validator: Check the 13-Digit Mod 11 Digit
Every Thai citizen, and many registered non-Thai residents, has a 13-digit identification number issued by the Department of Provincial Administration. It appears on the ID card and the house registration and also serves as the personal tax identification number. The Thai ID Card Number Validator checks the check digit of one number or a whole list in your browser and shows what each part means.
The structure of the number
| Digits | Meaning |
|---|---|
| 1 | Person type |
| 2-5 | Province and district registration office |
| 6-10 | Book number |
| 11-12 | Sequence |
| 13 | Check digit (mod 11) |
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. Foreigners with a pink card may have numbers starting with 6, 7 or 8, and company tax IDs start with 0.
How the check digit works
- 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 one wrong digit or a swapped pair almost always changes the result, the check catches most typing errors.
Worked example
For 1-1037-02071-81-1, the weighted sum of the first twelve digits is 197, which is 10 more than a multiple of 11. The check digit is 11 - 10 = 1, which matches the last digit, so the number is valid.
3100500123458 is also valid. 1234567890123 fails, because its first twelve digits require a check digit of 1, not 3.
How to use the validator
- Paste the numbers, one per line, with or without dashes or spaces.
- Read whether each check digit is correct.
- See the expected check digit for any number that fails.
- Read the person-type and office codes.
- Copy the numbers formatted as 1-2345-67890-12-3.
Common errors
The most common mistakes are a missing digit, two digits swapped, or the house registration number typed instead of the ID number. If a number fails, ask the person to re-enter it from the card. If a card is lost, the holder reports it at the district office and gets a new card with the same number; the number never changes.
Forms and apps
Businesses, schools, hospitals and app developers validate the number on entry to catch typing errors before they reach a database. Store only what you need, as required by the Personal Data Protection Act.
What it cannot do
A correct check digit does not prove that a number has been issued or belongs to a person. Nothing is looked up online. This is a structure check, not identity verification or legal advice.
Work in small, saved steps
Every tool in this series keeps your work as a project in your own browser. Make a change, check the preview, and use undo (Ctrl+Z) or redo (Ctrl+Y) freely; nothing is lost while you experiment. Before a big change, save a named copy from the Projects menu, so you can return to it later or compare two versions side by side. Export the project file when you want to move it to another computer or keep a backup, and import it again whenever you need it.
Privacy by design
The processing happens in the page itself. Files you open are read by code running on your device, results are calculated locally, and nothing is sent to a server or stored in a cloud account. That makes the tool suitable for customer lists, financial data and other material you would not upload to an unknown website. If a component such as a file reader or a map outline is downloaded from a public CDN, only that open-source code or public data is fetched, never your own content.
Share the result clearly
When you pass the output to colleagues, say where the data came from, when it was exported, and which settings you used, so that someone else can repeat the work and get the same answer. Keep the original file unchanged and store the cleaned or calculated version separately. A short note with the assumptions, filters and date saves a lot of questions later and makes the result easier to trust.
Privacy
The tool runs entirely in your browser. Your data stays on your device and is never uploaded.
Save your work
Projects are saved automatically in this browser. Export them as a file to keep a copy, or print a report.


&c=%23c2410c&k=education)
