Address in Spain
Fake Spanish addresses in the Correos format.
Random Address in Spain Generator
Generate fake Spanish addresses for software testing, localisation checks and design mock-ups. Each address follows the Correos format with the street type, building number, optional floor and door, a five-digit código postal with the right province prefix, the town and the province.
Spanish address format
| Part | Example |
|---|---|
| Street, number, floor and door | Calle de Alcalá, 87, 4º C |
| Postal code and town | 28009 Madrid |
| Province | Madrid |
| Country | España |
Common street types are Calle (street), Avenida (avenue), Paseo (boulevard), Plaza (square), Camino and Ronda. Floors are written with the ordinal indicator º, and the door is a letter or a word such as izquierda (left) or derecha (right).
Provinces included
Madrid, Barcelona, Valencia, Sevilla, Málaga, Alicante, Vizcaya, Zaragoza, Murcia, the Balearic Islands, Las Palmas, Granada, Asturias, A Coruña, Navarra, Cantabria, Valladolid and Salamanca – each with several real towns, its postal prefix and its landline prefix.
What to test with Spanish data
- Accents and ñ – names like Málaga, Muñoz and Álvarez reveal encoding bugs.
- Address line length – Spanish street names with de la and de los get long.
- Postal code rules – codes start with 01–52; a validator should reject 53xxx and above.
- Two surnames – make sure your name fields are wide enough.
All addresses are generated in your browser and are fictional. Export them as single lines, labeled fields, CSV or JSON.
Frequently Asked Questions
How do you write an address in Spain?
Street type and name come first, then the building number, then floor and door: Calle Mayor, 12, 3º B. The next line holds the five-digit código postal and the town (28013 Madrid), followed by the province if it differs from the town.
What do the first two digits of a Spanish postal code mean?
They are the province number in alphabetical order of the old province names: 08 Barcelona, 28 Madrid, 41 Sevilla, 46 Valencia, 29 Málaga and so on, from 01 (Álava) to 52 (Melilla). The generator always uses the correct prefix for the selected province.
Why do the names have two surnames?
Spanish people traditionally carry two surnames – the first from the father and the second from the mother – so the optional names follow that pattern, for example Laura Martínez López.
Are the phone numbers real?
They use real landline prefixes such as 91 for Madrid and 93 for Barcelona in the +34 format, but the rest of the number is random. Never call or text them.