Spain Complete Address Format Guide
Spanish cĂłdigos postales contain five digits; the first two identify the province. Leading zeroes are valid for several provinces. Spanish numbers generally contain nine digits after +34. Geographic and mobile prefixes differ, but there is no domestic trunk zero to remove. Many people use two surnames, traditionally one from each parent. Forms must not discard the second surname or assume the final token is the only legal family name.
Standard format
LucĂa GarcĂa LĂłpez / Hugo MartĂn Ruiz â street â NNNNN
Example
28001 ¡ +34 912 345 678
Implementation and validation notes
Spanish cĂłdigos postales contain five digits; the first two identify the province. Leading zeroes are valid for several provinces. Spanish numbers generally contain nine digits after +34. Geographic and mobile prefixes differ, but there is no domestic trunk zero to remove. Many people use two surnames, traditionally one from each parent. Forms must not discard the second surname or assume the final token is the only legal family name.
Validate required state, character set, length, and syntax on the client, then repeat validation on the server. Preserve the original input and normalize into a separate field; never truncate local scripts, compound names, or leading zeroes to fit a single Western assumption.
This guide describes common formats rather than an official registry and cannot enumerate every exception. Generated output is for testing only, not delivery, calling, identity verification, or real account activity.
Postal code
NNNNN
Spanish cĂłdigos postales contain five digits; the first two identify the province. Leading zeroes are valid for several provinces.
Phone
+34 NNN NNN NNN
Spanish numbers generally contain nine digits after +34. Geographic and mobile prefixes differ, but there is no domestic trunk zero to remove.
Names
LucĂa GarcĂa LĂłpez / Hugo MartĂn Ruiz
Many people use two surnames, traditionally one from each parent. Forms must not discard the second surname or assume the final token is the only legal family name.
Related resources
Frequently asked questions
What is the standard Spain address format?
A common representation is LucĂa GarcĂa LĂłpez / Hugo MartĂn Ruiz â street â NNNNN, for example 28001 ¡ +34 912 345 678. Spanish cĂłdigos postales contain five digits; the first two identify the province. Leading zeroes are valid for several provinces. Spanish numbers generally contain nine digits after +34. Geographic and mobile prefixes differ, but there is no domestic trunk zero to remove. Many people use two surnames, traditionally one from each parent. Forms must not discard the second surname or assume the final token is the only legal family name.
How should Spain address test data be stored?
Store the original value as a string so leading zeroes, spaces, hyphens, accents, and local scripts are preserved. Use a separate normalized field for search.
Does correct formatting prove the data is real?
No. Syntax validation cannot prove an address is deliverable, a number is assigned, or a name belongs to a real person.