id validator

Validate a Korean identification number

Basic Example

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

Sample ID Is it valid?
941106-6730661
701112-2606161
770108-6137881
8405206403450
7107231587592
860924-5568406
780206-1000824
8005151116295
8310196419008
880707-1705641

Module Example

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


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

const res1 = krId().validate('770108-6137881');
// res1.valid === true

const res2 = krId().validate('8005151116295');
// 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