id validator

Validate a Spanish identification number

Basic Example

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

Sample ID Is it valid?
54362315K
54362315-K
X2482300W
X-2482300W
X-2482300-W
54362315Z
X-2482300A

ES6 Module Example

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

Related validators

The following validators might be useful to you.