Set up your input
Enter thirteen digits and run the check. Spaces and hyphens are removed before calculation.
Check the format and checksum of a Thai ID number privately in your browser. See the arithmetic without a registry lookup.
Your results will appear here.
Enter thirteen digits and run the check. Spaces and hyphens are removed before calculation.
Use the main button to see the result. Adjust your input and run it again. Processing stays in this browser.
Copy the result into your test system. Where download buttons are shown, files are created from the current result in your browser. Inputs and outputs are not saved or uploaded.
Use 1234567890121 to see a weighted sum of 352, remainder 0 and final digit 1.
Change the final digit to 3 to see a checksum mismatch. No government registry is consulted.
checkDigit = (11 − (sum % 11)) % 10
Sample numbers may coincide with real numbers. A correct checksum or matching format does not prove issuance or identity.
Check digit arithmetic example (Thammasat University)