vat validator

Validate a Spanish VAT number

Basic Example

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

Sample VAT number Is it valid?
54362315K
X2482300W
X5253868R
M1234567L
J99216582
B58378431
B64717838
R5000274J
Q5000274J
B78640570
50222711A
J99216583
54362315Z
X2482300A

ES6 Module Example

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

Related validators

The following validators might be useful to you.