← Home

📧 Spain Codigo Postal Lookup

Look up Spanish postal codes (codigo postal) by province. Find any 5-digit CP for mail delivery, address verification, and autonomo registration.

What is this tool?

A codigo postal (CP) is Spain's 5-digit postal code system, introduced in 1976 and managed by Correos (the national postal service). The system is hierarchical: the first two digits identify the province, and the remaining three identify the specific town, district, or delivery zone within that province.

Spain has 50 provinces plus two autonomous cities (Ceuta and Melilla), each with a unique two-digit provincial code. For example, 08 is Barcelona, 28 is Madrid, 41 is Seville, 46 is Valencia, and 29 is Malaga. Within Barcelona province, codes range from 08001 (central Barcelona city) to 08998 (remote municipalities).

Postal codes are essential for: mail delivery, address verification on official documents, autonomo and business registration with Hacienda (AEAT), online shopping, and emergency services routing. Large cities like Madrid and Barcelona have hundreds of postal codes covering individual neighborhoods.

How it works

Spanish postal codes follow a geographic hierarchy. Use the province selector below to find the range of valid postal codes for each area:

Province codeProvinceCP rangeAutonomous community
01Araba/Alava01000-01500Basque Country
02Albacete02000-02700Castilla-La Mancha
08Barcelona08000-08998Catalonia
28Madrid28001-28999Madrid
29Malaga29001-29999Andalusia
41Seville41001-41999Andalusia
46Valencia46001-46999Valencia
51-52Ceuta/Melilla51000-52006Autonomous cities

The first two digits always match the province code assigned alphabetically (01-50, plus 51 for Ceuta and 52 for Melilla). The third digit can indicate a sub-region or routing zone. The last two digits narrow down to the specific delivery area.

Ad

How to use

  1. Select a Spanish province from the dropdown.
  2. View the postal code range and province capital for that province.
  3. Enter a specific CP to see which province and format it belongs to.

Frequently Asked Questions

How are Spanish postal codes structured?

{'They are 5 digits. The first two identify the province (01-50, 51 for Ceuta, 52 for Melilla). The third digit indicates a sub-region, and the last two identify the specific delivery zone. Example': '28013 = Madrid (28), central district (0), zone 13.'}

What is the postal code for Madrid city center?

Madrid city center postal codes range from 28001 to 28047. The most central codes (Puerta del Sol area) are 28012, 28013, and 28014. The broader Madrid province ranges from 28001 to 28999.

Can postal codes change?

Rarely. Correos occasionally creates new CPs for new urban developments but existing codes are extremely stable. If a new neighborhood is built, it typically receives a new CP within the existing provincial range.

Do Ceuta and Melilla have different postal code systems?

No, they use the same 5-digit system. Ceuta uses 51000-51005 and Melilla uses 52001-52006. They are assigned province codes 51 and 52 respectively.

Where can I verify a Spanish postal code officially?

Correos maintains the official database at correos.es. You can also verify addresses through the Spanish Cadastre (Sede Electronica del Catastro) or the INE (Instituto Nacional de Estadistica).

Tips & Advice

When addressing mail to Spain, always include the 5-digit codigo postal before the city name: 'Calle Gran Via 28, 28013 Madrid'. The CP helps Correos route mail efficiently. For online forms that ask for 'ZIP code' or 'postal code', enter the full 5 digits. If you are unsure of the exact CP, use the first two digits (province) followed by '001' for the capital city (e.g., 28001 for central Madrid, 08001 for central Barcelona). For rural areas, Correos maintains a complete database at their official website. Large companies often have unique CPs assigned for bulk mail processing.

Related Tools

Sources & References

Last reviewed: August 2026.

  1. Correos - Codigo Postal - Buscador Oficial (Correos).
  2. INE - Instituto Nacional de Estadistica - Directorio de Codigos Postales.

Limitations

This tool provides province-level postal code ranges and validates the first two digits. It does not have the full Correos database of every individual CP within each province. For precise delivery-zone-level lookup, use the official Correos buscador or the INE postal code directory.

Ad