Thailand National ID Validator

Validate a Thai 13-digit national ID with the official mod-11 check digit.

Ad placeholder (leaderboard)

The Thai national ID (Personal Identification Number, PID) is the 13-digit number issued to every citizen and printed on the Thai ID card. The final digit is a checksum computed from the first twelve, which lets you catch typos and transpositions instantly. This free validator runs the official Department of Provincial Administration algorithm in your browser.

How it works

The Thai check-digit algorithm uses descending positional weights:

  1. Strip any dashes or spaces, leaving 13 digits.
  2. Take the first 12 digits and multiply each by its weight: 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2.
  3. Sum the 12 products.
  4. Compute remainder = sum mod 11.
  5. The expected check digit is (11 - remainder) mod 10.
  6. The ID is valid if that value equals the 13th (last) digit.

The mod 10 at the end handles the case where 11 - remainder is 10, mapping it back to 0.

Example

For 1101700230705, take the first 12 digits 110170023070 and apply the weights:

(1×13)+(1×12)+(0×11)+(1×10)+(7×9)+(0×8)+(0×7)+(2×6)+(3×5)+(0×4)+(7×3)+(0×2) = 161.

161 mod 11 = 7, so the expected check digit is (11 − 7) mod 10 = 4. If the 13th digit is 5 here, that means this illustrative number would fail — re-check the digits. A valid check digit confirms internal consistency, not registration. Everything runs locally; nothing leaves your browser.

Ad placeholder (rectangle)