id validator

Validate a Bulgarian identification number

Basic Example

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

Sample ID Is it valid?
7523169263
8032056031
803205 603 1
8001010008
7501020018
7552010005
7542011030
8019010008

Module Example

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


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

const res1 = bgId().validate('7552010005');
// res1.valid === true

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