Zipcode has valid format (ES)
What this tool does
This tool checks if the postal code you enter follows the correct structure for Spain. It helps you clean up data by flagging postal codes that are typed incorrectly. This ensures your records only contain valid Spanish postal codes.
When to use it
- Cleaning a list of customer addresses before sending mail
- Checking if a new address entry is properly formatted
- Validating forms that require a Spanish postal code
What to expect
You will get a clear yes or no answer. It tells you if the format looks right.
Limitations
- It only checks the Spanish format. It does not check other countries.
- It checks the structure, not if the code actually exists in a specific city.
- It only accepts five-digit numbers with letters for Spain.
When it fails
- The input is empty or missing
- The input contains invalid characters
- The input is not five characters long
Good to know
- Spanish postal codes are always five digits.
- The first two digits usually indicate the province.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
zipcode | Yes | 08012 | Enter the Spanish postal code as five digits (e.g., 08012). |
Output data
| Field | Description |
|---|---|
result | Returns true if the format is valid, or false if it is not (e.g., true). |