We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Random Spanish Address Generator
If this tool helped you, you can buy us a coffee ☕
Generate realistic, properly formatted fake Spanish addresses for development testing and data population.
Notice
Generated data is for testing purposes only, please do not use it for real transactions.
Click the generate button to get a random address

Random Chinese Address Generator
Quickly generate random, fake Chinese addresses complete with provinces, cities, districts, streets, and postal codes. Perfect for software testing and mock data generation.

German Address Generator
Generate random, properly formatted German addresses for software testing, data population, and privacy protection.

Japanese Address Generator
Generate random fake Japanese addresses in valid formats, complete with zip codes, administrative divisions, and block numbers.
When developing a rental platform for Spanish users, you need to test the validation logic of address fields. If you need hundreds of correctly formatted Spanish addresses, manually making them up is not only slow but also highly prone to errors like mismatched postal codes and provinces. This generator can directly output complete addresses that comply with Spanish formatting rules, each containing a street, building number, city, province, and a 5-digit postal code, ready to be dropped into your test database.
Another common scenario is data science practice—if you are learning geocoding or address standardization, you can use the generated addresses to build a clean dataset without worrying about privacy issues. It can also quickly provide sample addresses for international students filling out mock forms or teachers preparing Spanish class materials, saving the time spent searching for real addresses.
The Random Spain Address Generator is a tool that automatically synthesizes virtual addresses according to Spanish address writing conventions. It does not connect to the internet to query real residents. Instead, it randomly selects streets, cities, and provinces from a built-in geographic database, and then combines them logically based on the Spanish postal code system (where the first two digits correspond to the province code). Every address you see is completely valid in format but does not point to any real house, making it ideal for development testing, data population, and teaching demonstrations.
Open the generator, and you will find a few simple settings on the left and the generated results on the right. The complete operation process is as follows:
Let's walk through a real operation. Suppose you need to prepare a batch of virtual addresses for test cases in the Madrid area:
The address provided on the right side of the generator will look something like this: Calle de Alcalá, 45, 28014 Madrid, Madrid. In this address, "Calle de Alcalá" is the street name, "45" is the building number, "28014" is the postal code (28 corresponds to the Madrid province), and "Madrid, Madrid" represent the city and province, respectively. Click the copy icon, and you can take the entire line of text to use elsewhere. Clicking generate again will yield a new combination, such as Avenida de la Reina Victoria, 12, 28014 Madrid, Madrid. Each generation will randomly select a street and building number based on the Madrid area, but the province code will always remain 28.
If you want to generate an address in Barcelona, simply change both the province and city to "Barcelona", click generate, and you will see a result like Carrer de Balmes, 88, 08005 Barcelona, Barcelona—the postal code starts with 08, which complies with the coding rules of the Catalonia region.
Can the generated addresses be used to receive packages?
No. The addresses are randomly synthesized virtual information. Even if the format is standard, they do not correspond to real postal delivery routes. Any real logistics, legal documents, or identity verification processes cannot rely on these addresses.
Why are Spanish postal codes 5 digits long?
Spanish postal codes consist of 5 digits, where the first two represent the province (01 to 52), and the last three are used to subdivide delivery areas. Our generator assigns postal codes according to this rule, ensuring that the first two digits you see match the selected province.
Can I generate 20 addresses at once?
Currently, this generator only outputs one address per click of the generate button. You need to click consecutively to get multiple results and paste the content generated each time to accumulate them. Although there is no batch button, frequent clicking is not restricted.
What is the credit card type option for?
In addition to the address, the generator can also output a virtual credit card number that complies with the Luhn algorithm. Selecting Visa or Mastercard in the "Credit Card Type" dropdown will include a card number with the corresponding prefix when you click generate. If you only care about the address, keep the default "Random", and the address output will remain unaffected.
Can the generated addresses include floor and door numbers?
The address structure generated by the current version is "Street + Building Number + Postal Code + City + Province" and temporarily does not include floor (e.g., 3º A) or interior door number information. If you need such details, you can manually add them to the generated base.
Where does the name data in the address come from?
The gender and age range settings will affect the generated virtual names, but these names also come from a built-in database of common Spanish names, not real user data. The entire generation process is completed entirely within the browser and does not upload any information.
Now you can try selecting a province and clicking generate in the tool above to see what interesting Spanish addresses you get from different combinations.