Reporting and business intelligence
Ensure compliant and accurate reports across your organization. Enhance data analysis with location intelligence.
Comprehensive Spain ZIP code data with accurate geographic coordinates, administrative divisions, and time zone
| ISO | Country | Language | Region 1 | Region 2 | Region 3 | Region 4 | Locality | Zip Code | Latitude | Longitude | Timezone |
|---|---|---|---|---|---|---|---|---|---|---|---|
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Las Higueras | 40.525283 | -3.697397 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | El Cañaveral | 40.403541 | -3.573568 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | El Pardo | 40.517353 | -3.780399 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Los Claveles | 40.359476 | -3.785965 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Palacio de La Real Quinta | 40.508513 | -3.732791 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Cañada Real de La Galiana | 40.351965 | -3.571238 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Cañada Real de La Galiana | 40.351965 | -3.571238 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Cañada Real de La Galiana Sur | 40.354956 | -3.566888 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | La Bulera | 40.329412 | -3.661644 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.424807 | -3.683265 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.445238 | -3.673484 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.442915 | -3.705601 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.424540 | -3.698935 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.405718 | -3.712925 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.435543 | -3.681977 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.407951 | -3.671721 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.427970 | -3.724766 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.418167 | -3.678996 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.431905 | -3.697098 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.423437 | -3.754271 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.408587 | -3.698235 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.419058 | -3.708390 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.412470 | -3.693667 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.430292 | -3.710497 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.461272 | -3.672965 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.426014 | -3.644855 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.384658 | -3.651653 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.394915 | -3.721701 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.456393 | -3.696696 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.425020 | -3.683304 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.433864 | -3.595996 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.425020 | -3.683304 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.425020 | -3.683304 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.383449 | -3.732632 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.383758 | -3.703470 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.440394 | -3.643621 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.431689 | -3.666429 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.474664 | -3.701661 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.403601 | -3.639201 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.379223 | -3.603561 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.410834 | -3.602664 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.472157 | -3.635228 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.495918 | -3.698312 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.477665 | -3.734820 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.465949 | -3.683883 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.430336 | -3.622337 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.394934 | -3.652992 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.459232 | -3.709506 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.447221 | -3.737629 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 40.366209 | -3.698239 | Europe/Madrid | |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Las Higueras | 28049 | 40.525283 | -3.697397 | Europe/Madrid |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | El Cañaveral | 28052 | 40.403541 | -3.573568 | Europe/Madrid |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | El Pardo | 28048 | 40.517353 | -3.780399 | Europe/Madrid |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Los Claveles | 28054 | 40.359476 | -3.785965 | Europe/Madrid |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Palacio de La Real Quinta | 28048 | 40.508513 | -3.732791 | Europe/Madrid |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Cañada Real de La Galiana | 28051 | 40.351965 | -3.571238 | Europe/Madrid |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Cañada Real de La Galiana | 28052 | 40.351965 | -3.571238 | Europe/Madrid |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Cañada Real de La Galiana Sur | 28051 | 40.354956 | -3.566888 | Europe/Madrid |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | La Bulera | 28021 | 40.329412 | -3.661644 | Europe/Madrid |
| ES | España | ES | Comunidad de Madrid | Madrid | Area Metropolitana | Madrid | Madrid | 28001 | 40.424807 | -3.683265 | Europe/Madrid |
The map shows our Spain postal code coverage with major cities and postal code distribution.
Spain utilizes a five-digit numeric postal code system, locally known as Código postal, with a format of 99999. The first two digits of the Código postal identify the province, and the last three digits specify the postal distribution unit. This system covers the mainland, islands, and autonomous cities.
According to the GeoPostcodes world postal code database, Spain has 10,818 postal codes, 8,681 regions, and 73,291 towns. Similar to US ZIP codes, Spain's postal codes are entirely numeric, but they differ in length as US ZIP codes are five-digit numeric with an optional four-digit extension, whereas Spanish postal codes are strictly five-digit numeric.
Examples:
Explore our comprehensive collection of Spain location data products, designed to meet all your mapping and location intelligence needs.
Spain administrative landscape often follows inconsistent regional models and irregular public sources, making it difficult to maintain reliable boundaries. Our standardized postal and administrative boundary data resolves these gaps to ensure complete, coherent geographic coverage.
The database follows a standardized and unified structure you can integrate without becoming an expert in each country’s unique administrative hierarchy.
Key Features:
Address conventions differ by country, leading to frequent validation errors and incomplete entries. Our dataset applies Spain correct address format to ensure clean inputs, smoother validation, and reduced delivery mistakes.
GeoPostcodes offers reliable reference data to validate Spain addresses. Our database ensures addresses follow the correct format for Spain, reducing delivery errors and improving efficiency.
Choose from multiple data formats to seamlessly integrate Spain postal code data into your systems
Comprehensive field definitions and data specifications for the Spain postal code dataset
| Field name | Field type | Description | Comments |
|---|---|---|---|
| ISO | Char(2) | ISO 3166-1 Country code | The ISO 3166-1 standard is published by the International Organization for Standardization (ISO) and defines a unique code for the name of each country. The country codes are represented as a two-letter code (alpha-2). |
| Country | Char(50) | Country name | |
| Language | Char(2) | Language code | When there are several official languages in the country, or for countries using a non-Latin alphabet, we provide the names in different languages. The language field contains the language code and allows you to select a specific version. |
| Region1Region2Region3Region4 | Char(80) | Administrative division level 1Administrative division level 2Administrative division level 3Administrative division level 4 | These fields contain the name of administrative divisions for each available level. If not applicable, the value '-' will be indicated. |
| Locality | Char(80) | Locality name | Contains the settlement name. The type of settlement may vary depending on the country (city, town, village, etc..). |
| Postcode | Char(15) | ZIP / Postal code | In countries/places where there is no postal code in use, this field is left empty. The postcode structure varies for each country. |
| LatitudeLongitude | Double | Place coordinates (WGS84 coordinates) | These fields contain the geographic coordinates related to the specific locality and postal code of the record. The geographical position is usually precise to about one hundred meters and corresponds to the center of the locality. All our files are created using the World Geodetic System standard WGS 84. The corresponding SRID reference is EPSG:4326. |
| Timezone | Char(30) | Time zone name (Olson) | Following the timezones defined in the IANA tz database (sometimes called Olson database). |
Global coverage
Complete coverage across 247 countries, including hard-to-source geographies like China, Japan, Brazil, and Russia.
Highest quality
Built on extensive, authoritative sourcing with robust data engineering and quality control. Standardized and up-to-date.
Expert Consulting
With 15 years of experience, we guide your implementation and deliver data in the format that fits your system.
Comprehensive location data products serving businesses, and organizations worldwide with accurate, up-to-date geographic information.

Global dataset containing all administrative divisions, cities and ZIP codes.
Explore postal code database
International dataset with all administrative areas, cities, ZIP codes, streets, and house numbers.
Explore address database
A global dataset of polygons representing ZIP codes and administrative areas.
Explore boundaries database
Global population estimates at postal code and administrative level covering a span of 55 years: past, present, and future.
Explore population databasePowering enterprise solutions and product innovation for businesses worldwide
Address Validation
Capture accurate addresses for every country and territory in the world, in any language, and match local requirements.
Reporting and business intelligence
Ensure compliant and accurate reports across your organization. Enhance data analysis with location intelligence.
Logistics and shipping
Design and optimize your distribution network, plan your pick-up and drop-off locations, reduce costs and improve visibility over your shipping.
Map and visualization
Analyze complex trends and discover actionable insights. Build engaging and intuitive map-based data visualizations.
Master data management
Rely on a single source of truth to ensure accuracy, consistency, and timeliness across your systems and organization.
Sales and marketing
Segment customers for site selection, analytics, geofencing, campaigns, mapping, and targeted ads.
247 countries and territories with standardized formatting and reliable geographic information.
Download our sample Spain postal code dataset.
The ZIP codes (Código postal) for Madrid range from 28001 to 28760; the central Sol area uses 28013.
A 5-digit ZIP code in Spain is the Código postal and uses the format 99999: five digits where the first two identify the province (01–52) and the remaining three specify the delivery area or post office.
Yes. Spain uses postal codes (Código postal) consisting of five digits (format 99999), assigned to municipalities and postal zones across the country.
Yes. Spain uses postal codes (Código postal) made of five digits (format 99999), assigned to municipalities and areas to route mail across the country, covering its 73,291 localities.
There is no town in Spain with the postcode 12345.
Yes. Spain uses postal codes (Código postal) consisting of five digits (format 99999); they serve the same purpose as US ZIP codes to sort and route mail across municipalities and neighborhoods.
Yes. Spain uses a postal code system (Código postal) consisting of five digits in the format 99999, applied nationwide to identify provinces and localities.
The country code “ES” (ISO 3166-1 alpha-2 for Spain) is sometimes mistakenly used as a ZIP code; Spain’s actual código postal format is five digits (99999).
Recipient’s name
Business or department name (if applicable)
Street name and House number
Postal Code (5 digits) and City Name
Province (optional)
Country – SPAIN (in all caps)
Example:
John Smith
C. Sebastián Trujillo 29
41005 Sevilla
SPAIN
The ZIP code format for Spain is five digits (Código postal: 99999); for example, 28001 is central Madrid.
The postal code format in Spain is five numeric digits (e.g., 99999); the postal code is referred to as “Código postal”.
A ZIP code in Spain consists of five digits (format 99999); in Spanish it is called código postal.
Yes. Addresses in Spain include a Código postal (ZIP code) of five digits (format 99999). It is used to ensure correct delivery and is usually placed before the locality, e.g. Calle Mayor 1, 28013 Madrid.
ZIP code 28001 in Spain corresponds to Madrid. Código postal 28001 covers the Salamanca district (Recoletos/Serrano), an upscale central area of the city.
Updated: October 1, 2026