NIE is valid (ES)
What this tool does
This tool checks if a Spanish Foreigner Identification Number (NIE) is correctly formatted and mathematically valid. It verifies the structure and the final check letter of the number you provide.
Please note that this validation is based on the official algorithm for generating and checking NIE numbers. It does not verify if the number is currently assigned to a specific person or if it is active in any government registry.
Common uses
- Checking the format of a client's ID during account registration.
- Validating address forms before submission.
- Correcting data entry errors in existing customer records.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
nie | Yes | Y2918527W | Enter the NIE number as plain text (e.g., Y2918527W). It must include the initial letter, followed by 7 digits, and ending with a check letter. |
Output data
| Field | Description |
|---|---|
result | Returns 'true' if the NIE structure is correct, or 'false' if it is invalid. Example: true |