On this page
A Spain address is easier to get right when you keep the fields in the local order. This guide shows the order, a worked example, and the mistakes that most often break forms and labels.
The examples are synthetic. They use real city and region names with generated street numbers, so you can test a form without pointing at a real household.
How to write a Spain address
Use this order for a Spain address. If a form gives you separate fields, fill them one by one rather than pasting the whole block into the street field.
- 1. Street address
- 2. Apartment or unit
- 3. Postal code
- 4. City
- 5. Country
Postal code rules
Yes. Spain uses a código postal. Every generated result includes one, and the fixture values are format samples rather than live postal validation.
The Código postal is written with the address, not stored on a separate line in most forms. The generator keeps it as its own field so you can copy it independently.
City fixtures used by the generator
These are the city, region, and postal fixtures behind the Spain generator. They are examples for format testing, not a complete postal directory.
| City | Region | Código postal |
|---|---|---|
| Madrid | Madrid | 28001 |
| Barcelona | Catalonia | 08001 |
| Valencia | Valencia | 46001 |
| Seville | Andalusia | 41001 |
| Bilbao | Basque Country | 48001 |
Common mistakes
Most address errors are field-order or field-boundary errors, not typing errors.
- Putting the house number after the street name when the local convention expects it before, or the reverse.
- Dropping the código postal or changing its format to match a different country.
- Using a residence or mailbox address for a purpose that requires a physical operating address.
Questions
- Use this order: Street address → Apartment or unit → Postal code → City → Country. Keep each field separate when the form provides separate inputs.
- Yes. Spain uses a código postal. Every generated result includes one, and the fixture values are format samples rather than live postal validation.
- No. The street and unit numbers are generated. Use the sample for forms, mockups, and QA, not for delivery or identity checks.
How do I write a Spain address?+
Does Spain use postal codes?+
Can I use this Spain address for shipping?+
Examples are synthetic. Do not use a generated address for identity checks, account registration, or delivery.