Metadata for this ID type
Parse ID number (if applicable)
Validate an ID number
StaticchecksumCalculate checksum using Thai modulo 11 algorithm Formula: (11 - (sum % 11)) % 10
StaticparseParse Thailand national ID number
StaticvalidateValidate the Thailand ID number
Thailand National Identity Card Number format Format: #-####-#####-##-#
The first digit represents citizenship type: 0 = Other (not used for Thai nationals) 1 = Thai citizen born after 1984 2 = Thai citizen born after 1984 (late registration) 3 = Thai citizen born before 1984 4 = Thai citizen born before 1984 (late registration) 5 = Thai citizen (special cases) 6 = Foreign resident (temporary or illegal) 7 = Children of foreign residents born in Thailand 8 = Permanent resident or naturalized citizen
https://en.wikipedia.org/wiki/National_identification_number#Thailand https://thailandformats.com/idcards