How to Write an Address in Spain: Format, Postcodes and Examples
Addresses in Spain follow their own order and postcode rules. This guide shows how to write one correctly, with real postcode examples and the most common mistakes, whether you are sending mail, building a checkout form or preparing test data.
Address format
Street type and name, comma, number, then floor and door, followed by postcode, town and province.
Spain postcode format
Format: 99999
Spanish postcodes (código postal) have five digits. The first two digits identify the province, so 28 is Madrid and 08 is Barcelona.
More examples
Sending to Spain from abroad
Write the address exactly as it is used locally, then add the country name in capital English letters on the last line.
Tips and common mistakes
- Floors and doors follow the number: Calle Mayor, 12, 3º B.
- The province can go in parentheses after the town.
- Common street types are Calle, Avenida, Plaza and Paseo.
- Use the first two digits of the postcode to check the province.
Autonomous communities of Spain
Spain has 19 autonomous communities in our data. The autonomous community is rarely required in a postal address, but forms and databases often store it separately.
| Autonomous community | Major cities and towns |
|---|---|
| Andalucía | Sevilla, Malaga, Cordoba, Granada |
| Aragón | Zaragoza, Huesca, Teruel, Calatayud |
| Asturias | Gijon, Oviedo, Aviles, Mieres |
| Cantabria | Santander, Torrelavega, Castro Urdiales, Camargo |
| Castilla y León | Valladolid, Burgos, Salamanca, Leon |
| Castilla-La Mancha | Albacete, Guadalajara, Talavera De La Reina, Toledo |
| Cataluña | Barcelona, Eixample, Hospitalet de Llobregat, Terrassa |
| Ceuta | Ceuta |
| Comunidad Valenciana | Valencia, Alicante, Elx, Castellon |
| Comunidad de Madrid | Madrid, Mostoles, Alcala De Henares, Fuenlabrada |
| Extremadura | Badajoz, Caceres, Merida, Plasencia |
| Galicia | Vigo, A Coruña, Ourense, Santiago De Compostela |
| Islas Baleares | Palma, Calvia, Eivissa, Manacor |
| Islas Canarias | Las Palmas De Gran Canaria, Santa Cruz De Tenerife, Arona, Santa Lucía |
| La Rioja | Logroño, Calahorra, Abalos, Aeropuerto De Algoncillo |
| Melilla | Melilla |
| Navarra | Pamplona, Tudela, Burlada |
| País Vasco | Bilbao, Vitoria, Donostia-San Sebastian, Barakaldo |
| Región de Murcia | Murcia, Cartagena, Lorca, Molina De Segura |
Test data for Spain
There is no widely reserved fictional phone range here, so the generator leaves phone numbers out. Generated addresses use real towns and postcode areas with invented streets and names, so they are safe for form testing, mockups and documentation.
Generate realistic Spain addresses in the local format, then copy them or download CSV and JSON.
Open the Spain address generator