Sign In
International Address Formats

🇪🇸Spain Address Format

Spanish addresses use a five-digit postal code whose first two digits are the province, written before the city. Getting those province digits wrong or dropping the floor and door detail is the usual cause of misrouting. Here is the format, a real example, and the errors to catch.

Correctly formatted
28014
Carlos García
Calle de Alcalá 12, 3º B
28014 Madrid
SPAIN
Carrier-validated · deliverable

The Spain address format, field by field

A Spanish label is recipient, the street with its number, floor and door, then the postal code and city, then the country.

1Recipient nameCarlos García personal or business recipient
2Street + number + floorCalle de Alcalá 12, 3º B street, number, then floor and door (<code>3º B</code>) if any
3Postal code + city28014 Madrid 5-digit code, then the city or municipality
4CountrySPAIN required for inbound international shipments

Postal code rules

The código postal drives Correos's routing, and its first two digits map to the province (28 Madrid, 08 Barcelona). It sits before the city.

28014

Format: Five digits (28014); the first two identify the province.

Validation regex: ^\d{5}$

Watch for: a dropped leading zero on Barcelona-area codes, and transposed province digits.

What makes Spain different

The country-specific rules that generic autocomplete and single-line address fields tend to get wrong.

Province digits

The first two digits are the province

The first two digits of the código postal identify the province (28 Madrid, 08 Barcelona, 41 Seville). A transposition routes the parcel to a different province.

Floor and door

Floor and door follow the number

Apartments note the floor and door, for example 3º B (third floor, door B) or 2º Izq. (left). Keep them with the street line.

Leading zeros

The code is always five digits

Barcelona and other provinces starting with zero (08) keep the leading zero. A field that strips it produces an invalid code.

Street types

Streets carry a type prefix

Addresses begin with a street type: Calle, Avenida, Paseo, Plaza. It is part of the address and should be kept.

Errors that cause failed deliveries to Spain

Each of these passes a basic "is this field filled in" check but fails at the carrier, turning into a redelivery, a return, or an address correction fee.

Province digits transposed. A wrong first two digits routes to a different province.
Leading zero stripped. 8014 instead of 08014 is invalid.
Floor and door dropped. Apartments need the 3º B detail for last-mile delivery.
Street type omitted. Dropping Calle or Avenida removes expected context.
Accents altered. Names and streets use á, é, í, ñ; keep them consistent.

Carrier notes for Spain

How the major carriers handle Spain addresses, and what your label needs to satisfy each one.

Correos

The national postal operator. Routing is código-postal driven, so a valid five-digit code with correct province digits is the key field.

SEUR & MRW

Major domestic parcel carriers for Spanish ecommerce. They expect the full street, floor and door, code, and city for accurate delivery.

DHL, FedEx, UPS

International carriers for inbound shipments. Include the country line; an accurate postal code avoids customs and routing delays.

Validate every Spain address at checkout

Address Guard checks Spain addresses against carrier and postal databases before the order ships, normalizes the format, and flags the errors that cause failed deliveries. 240+ countries, $0.05 per check.

Address formats for other countries

Part of the Address Guard international address format guide, covering 240+ countries.

Spain address format FAQ

How do you write a Spanish address?+
Recipient name, the street with its number and any floor and door, then the five-digit postal code and city, then SPAIN. The first two digits of the code identify the province.
What is the Spanish postal code format?+
Five digits, such as 28014, where the first two digits map to the province. Provinces starting with zero, like 08 for Barcelona, keep the leading zero.
Why do deliveries to Spain fail?+
Usually because the province digits were transposed, a leading zero was stripped, or the floor and door were dropped. Validating the postal code against the city resolves most issues.