id validator

Validate a Thai identification number

Basic Example

You can click on sample from the following table to see if it's a valid or invalid Thai id.

Sample ID Is it valid?
7145620509547
3688699975685
2368719339716
1100800092310

Module Example

The following snippet shows how to use the id validator with JavaScript module:


// You might need to change the importing path
import thId from 'formvalidation/validators/id/thId';

const res1 = thId().validate('7145620509547');
// res1.valid === true

const res2 = thId().validate('1100800092310');
// res2.valid === false

Related validators

The following validators are similar to this one and might be useful to you.

Name Description
id Validate an identification number
vat Validate VAT number