Spain postal codes
Spain has 11 150 postal codes for 36 673 cities, towns and villages. Each postal code has 5 digits, for example 28001.
Spain in numbers
- Codes
- 11 150
- Places
- 36 673
- Capital
- Madrid
- Format
- 99999
- Example
- 28001
How to write an address in Spain
Recipient nameStreet address28001 MADRID MADRIDSPAIN
The postal code goes before the town name, on the same line. Write the town and the state in capital letters. From abroad, add SPAIN as the last line.
Write your own address in this format or print it on an envelope.
Spain by region
- Andalusia 2 641 places
- Aragon 1 552 places
- Asturias 6 339 places
- Balearic Islands 369 places
- Basque Country 1 697 places
- Canary Islands 1 717 places
- Cantabria 1 089 places
- Castille and León 6 081 places
- Castille-La Mancha 1 127 places
- Catalonia 2 361 places
- Ceuta 1 place
- Extremadura 552 places
- Galicia 7 321 places
- La Rioja 290 places
- Madrid 459 places
- Melilla 1 place
- Murcia 662 places
- Navarre 725 places
- Valencia 1 689 places
Questions
What is the postal code format in Spain?
Postal codes in Spain have 5 digits, for example 28001.
How many postal codes does Spain have?
Spain has 11 150 postal codes for 36 673 cities, towns and villages, by the open data updated 16 November 2026.
What is the postal code of Madrid?
Madrid has 63 postal codes, from 28001 to 28087.
How do I write an address in Spain?
Recipient name, Street address, 28001 MADRID MADRID, SPAIN. The postal code goes before the town name, on the same line. Write the town and the state in capital letters. From abroad, add SPAIN as the last line.