vat validator

Validate a French VAT number

Basic Example

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

Sample VAT number Is it valid?
40303265045
23334175221
K7399859412
4Z123456782
84323140391

Module Example

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


// You might need to change the importing path
import frVat from 'formvalidation/validators/vat/frVat';

const res1 = frVat().validate('4Z123456782');
// res1.valid === true

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