Spain Address Format

Spanish addresses go from smallest unit to largest: recipient, street name + number (often with floor/door like 3ºA), then the 5-digit postal code followed by the city on one line. The province is usually omitted since the first two digits of the postal code identify it.

Standard format

María Fernández Calle Mayor 25, 3ºA 28013 Madrid Spain

Postal code (Código postal) rules

Field namePostal code (Código postal)
FormatNNNNN (N = digit, A = letter)
Example28013
Pattern^\d{5}$
Rule5 digits; the first two digits identify the province (01–52). The code is written before the city name.

Fields used in Spain

State / regionYes — "Province" locally
Street addressYes
P.O. BoxYes — "Apartado de correos" locally

FAQ

What is the Postal code (Código postal) format in Spain?

The format is NNNNN (N = digit, A = letter), for example 28013. 5 digits; the first two digits identify the province (01–52). The code is written before the city name.

How do you write an address in Spain?

Spain addresses are written from the smallest unit to the largest. Spanish addresses go from smallest unit to largest: recipient, street name + number (often with floor/door like 3ºA), then the 5-digit postal code followed by the city on one line. The province is usually omitted since the first two digits of the postal code identify it.

Does Spain use postal codes?

Yes. Spain uses the Postal code (Código postal) in the format NNNNN (example: 28013). 5 digits; the first two digits identify the province (01–52). The code is written before the city name.

Generate a fake Spain address

Fake addresses for software testing only — they do not correspond to real residents.
Loading a sample Spain address…

Have real Spain addresses to check?

Validate a whole CSV of customer addresses before shipping — format, postal-code/city match, suspicious-entry flags. Pay per batch, no subscription.

Validate a batch →

Tools

Sources

Other countries