Menu

Spain Address & Identity Data Generator

Generate Spain addresses and identities in your browser: correctly formatted postal codes, phone numbers and National ID (DNI), with the administrative division and city always taken from the same data record so they can never disagree. Every value is synthesised by algorithm and corresponds to no real person, address or account.

Spain at a glance

Nationality
Spanish
Official language
Spanish
Currency
EUR €
Calling code
+34
Postal code
5 digits · Public postal data
National ID
National ID (DNI)
Format
8 digits · 1 letter
Check digit
Official check digit
Top-level division
Region
Divisions
19
Cities covered
297

Spain National ID (DNI) format and check digit

Spain's National ID (DNI) uses the format 8 digits · 1 letter, and the official check-digit algorithm is implemented — a number this tool generates passes the same validation the real one would.

Spain postal code rules

Spain postal codes use the format 5 digits. The divisions and cities come from public postal data, so a code's prefix matches the country's actual districts.

Time zone of Spain

Spain keeps time in Europe/Madrid, UTC+01:00 – UTC+02:00 relative to UTC (UTC+02:00 during daylight saving). The cities listed on this page span 3 time zones, from UTC+00:00 to UTC+02:00.

How this is counted: the city zones come from GeoNames' `timezone` field, the main zone is the one holding most of the recorded population, and the largest city behind that choice is Madrid.

What Spain data is good for

Four jobs come up again and again with Spain records: testing signup and checkout forms, where an address, National ID (DNI) and phone number in the local format exercise required-field, length and conditional validation; seeding a staging database so screens and API responses have something to render; filling a third-party form that asks for personal details without handing over your own; and demos, screenshots and design mockups, which need records that look real but belong to nobody.

Example address

Full name
Mónica Barela Escobedo
Gender
Male
Date of birth
1962-06-21
Full address
Calle del Gran Capitán 7, 52002 Melilla, Spain
Postal code
52002
Phone
+34 630 666 781
National ID
80584374X
Username
mnicabarelaesc31

The record below is synthesised to show field formats. It is not real information.

Generate Spain data now

Generate Spain data now

Lawful use of Spain data

Every Spain address and National ID (DNI) here is synthesised by algorithm and belongs to no real person, address or account: the 19 divisions and 297 cities on this page are real place names, while the house numbers, names and numbers are not. The postcode follows the country's real format. The generator guarantees only that the number follows the country's format (the number carries a real check digit and passes the country's format and checksum checks), which does not mean it will not collide with a real person's, so use these records for testing, development, demos and privacy-preserving form filling, never to defraud anyone, pass as another person or circumvent the law. Values are generated locally and never uploaded; the privacy policy and disclaimer linked in the footer carry the full statement.

Frequently asked questions

Are Spain test addresses real?

No. Every field is synthesised by an algorithm and corresponds to no real person, address or account. The divisions and cities are real names; the house numbers, names and ID numbers are not.

Does the generated National ID (DNI) pass validation?

Spain's National ID (DNI) uses the format 8 digits · 1 letter, and the official check-digit algorithm is implemented — a number this tool generates passes the same validation the real one would.

Can the postal code and city disagree?

No. The division, city and postal code come from one data record: a division is chosen, then a city within it, then a code built from that division's real postal rules.

Can I reproduce the same record?

Yes. The identity key determines every random draw, so the same key, country and gender always produce an identical record — which is what makes it usable as a fixed sample in automated tests.

These answers describe what this site's data and algorithms actually do. Nothing here is a guess.

Other countries

See all supported countries and regions