Coverage · Thailand
Thai national ID number detection and redaction
OpenAnonymizer finds the Thai national ID number in text and replaces it with a placeholder. The number is confirmed by its official label and its check digits are verified. It runs on a CPU, with no GPU and no API calls.
At a glance
- Country
- Thailand TH
- Format
- national ID numberเลขประจำตัวประชาชน
- Placeholder
- Each distinct value gets its own number: TH_PIN_1, TH_PIN_2, and so on.
- How it is confirmed
- Official label and checksum
- Used for
- Identifying Thai citizens, from birth or naturalisation, on the national ID card and in public records.
About the national ID number
The number is assigned by the Ministry of Interior. It is 13 digits, usually written X-XXXX-XXXXX-XX-X, and the last is a check digit.
- In
- เลขประจำตัวประชาชน: 1101234567897
- Out
- เลขประจำตัวประชาชน:
How OpenAnonymizer handles it
Checked by checksum. The format's check digits are verified, so most mistyped or made-up numbers fail. A number with the right label and shape is still masked when its checksum fails, so a typo doesn't let it through.
- It runs locally on a CPU, with no GPU and no API calls, so the text never leaves your machine.
- Every package ships every detector, so this format is covered in each of them.
- It covers 34 languages.
Related formats
The same country, or the same kind of number elsewhere.