Social security number is valid (ES)
What this tool does
This tool checks if a Spanish social security number follows the correct official structure. It helps you ensure that the numbers you have recorded are valid formats before you use them in official processes or databases. It solves the problem of accidentally storing or sending incorrect identification numbers.
When to use it
- Verifying employee identification numbers when onboarding new staff members.
- Cleaning up customer records to ensure all Spanish client IDs are correctly formatted.
- Checking a list of national identification numbers to spot any formatting errors before submitting a report.
What to expect
You will receive a simple yes or no indicator showing if the number structure is valid. A 'yes' means the number format is correct, while 'no' means it does not match the required pattern.
Limitations
- This check only validates the format and mathematical structure of the number. It does not verify if the person actually exists or if the number is currently active in government systems.
- The tool works with standard Spanish identification numbers. It may not correctly handle very old legacy formats that differ from the current standard.
- Accuracy depends on the input being a complete number. Partial or truncated numbers will be marked as invalid.
When it fails
- If the provided text is not a number at all.
- If the number is too short or too long (it must be exactly eleven or twelve digits).
- If the number starts with an invalid prefix that does not match standard Spanish formats.
Good to know
- Ensure you enter the number without spaces, dashes, or other symbols.
- A valid result only confirms the structure is correct, not the legitimacy of the identity holder.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
number | Yes | 998239812282 | Enter the full Spanish social security number as plain text, for example '998239812282'. This field is required and must be 11 or 12 digits long. |
Output data
| Field | Description |
|---|---|
result | Returns true if the number is valid, or false if it is invalid. This is a yes/no answer, for example: true |