id

Thai ID Generator

Generate and validate Thai national ID numbers.

Randomly generated test data. Not real or issued IDs.

Generated IDs
0
    Validate
    Result

    Paste an ID to validate

    Each line is checked against the 13-digit checksum.

    Common questions

    Are these real ID numbers?

    No. Every number is randomly generated in your browser with a valid check digit, for testing and form validation. They are not issued IDs and do not identify real people.

    Is anything sent to a server?

    No. Both generation and validation run entirely in your browser, so nothing you generate or paste leaves your device.

    How is the check digit calculated?

    Each of the first 12 digits is multiplied by a descending weight from 13 down to 2 and summed. The remainder of that sum divided by 11 is subtracted from 11, and the last digit of the result is the 13th check digit.

    Why is a number marked invalid?

    The validator recomputes the check digit from the first 12 digits. If it does not match the 13th digit, or the input is not 13 digits long, the number is flagged as invalid.

    Can I generate many at once?

    Yes. Pick 1, 5, 10, 25, or 100 and copy the whole list to seed a database or fill test fixtures in one step.