Random Zip Code Generator
Pick a country and a quantity to get fake postal codes in that country's format, each with a city and region and a copy button.The Random Zip Code Generator produces made-up postal codes in the format of the country you pick, with a plausible city and region underneath each one. Choose one of 37 countries, say how many you want, and each result comes on its own card with a copy button: a United States pick gives you something like 59607 over "Norwalk, North Carolina, United States"; the Netherlands gives 3872 XP; Japan gives 107-4231. It is a testing and placeholder tool, not a lookup: the codes match each country's pattern but are random digits, so most of them are not assigned to any real place.
What you can set
Two fields. The first is how many codes to generate per press, from 1 to 100. The second is the country, a dropdown of 37 entries covering North America (United States, Canada, Mexico), most of Western and Central Europe, Brazil, Russia, Ukraine, Turkey, Israel, India, China, Taiwan, Japan, Indonesia, South Africa, Australia and a few others. The United States is selected by default. There is no state or city filter within a country; for a US code tied to a particular state you would use the Random US ZIP Code Generator, and for a real, deliverable London postcode the Random London Postcode Generator draws from a list of genuine ones.
What each card shows
The top line is the postal code. Below it is a locality line in the form "City, Region, Country." The region is real for most countries: US states, German Länder, Japanese prefectures, Australian states, Spanish autonomous communities. The city is usually invented by combining real name parts ("West Leola," "Kayburg," "North Mikkel"), though a few locales such as Portugal and Ukraine draw from lists of real towns. The code and the city are generated independently, so the ZIP does not correspond to the city shown; a US card can pair a 5-digit code from the 59xxx Montana range with a North Carolina locality. The copy button copies only the postal code, not the locality line.
Postal code formats by country
The generator follows each country's standard pattern. The list below covers the countries people ask about most, with what the generator produces and what the real system looks like.
| Country | Format generated | Real system |
|---|---|---|
| United States | 5 digits, sometimes ZIP+4 (44448-9746) | 5-digit ZIP, first digit indicates region (0 = Northeast, 9 = West); ZIP+4 adds a delivery segment |
| Canada | A1A 1A1 (C8A 6D4) | Letter-digit-letter, space, digit-letter-digit; first letter is the province (V = BC, M = Toronto) |
| United Kingdom | Outward + inward (HY13 6HJ) | One or two letters for the area, then digits, then digit and two letters; the generator's area letters are random, so most are not real areas |
| Germany, France, Italy, Spain, Mexico, Turkey | 5 digits | 5-digit codes; first digits indicate a broad region |
| Australia, Austria, Belgium, Norway | 4 digits | 4-digit codes |
| Netherlands | 4 digits + 2 letters (3872 XP) | Same; the letters identify a street segment |
| Japan | 3 digits-4 digits (107-4231) | Same, written with the 〒 mark on envelopes |
| Brazil | 5 digits-3 digits (59045-754) | CEP, same format |
| Poland | 2 digits-3 digits (46-997) | Same |
| Portugal | 4 digits-3 digits (0393-039) | Same, though real codes start at 1000 |
| Russia, China, Romania | 6 digits | 6-digit codes |
| Israel | 7 digits | 7-digit codes since 2013 |
Four countries come out in a format the real postal service would not accept, because the underlying library's pattern for them is wrong: India appears as two 3-digit groups with a space (real PIN codes are six digits, no space, never starting with 0), Ireland as 5-4 digits (real Eircodes look like A65 F4E2), Finland as 5-4 digits (real codes are 5 digits) and South Africa as 5 digits (real codes are 4). Nepal returns a blank code because the library has no Nepali postal data. For those countries, use the code only as filler, not as a format check.
Ways people use it
- Form and checkout testing – a batch of 20 US ZIPs or Canadian postal codes exercises the format validation on an address form without using anyone's real address.
- Seeding test databases – copying codes one by one into a customer table gives you records spread across regions rather than the same "12345" repeated.
- Placeholder text in mockups – shipping labels and address blocks in a design comp look right with a country-appropriate code.
- Learning postal formats – switching the country dropdown is a fast way to see how a Dutch code differs from a Polish one before you write a regex for either.
- Full addresses – when you need the whole thing rather than the code, the same 37-country list powers the site's address generators, for example the Random Australia Address Generator and Random Address in France. Random Postal Code Canada is the Canada-only version of this page.
Why the codes are safe to use
A random 5-digit number has a fair chance of being a real US ZIP (about 42,000 of the 100,000 possible values are assigned), but a ZIP on its own identifies an area of thousands of addresses, not a person, and the city shown next to it is invented anyway. The same holds for other countries. What you should not do is submit these on forms that verify the code against the city, because the pair will not match, or use them where a real delivery depends on the code. For sample data, testing and mockups, they are fine. See all address and postal code generators for the state, city and country-specific tools.
Frequently asked questions
- Are the zip codes real?
They follow each country's real format, but the digits are random. Some will coincide with an assigned code and many will not, and the city shown next to each one is generated separately, so the pair does not describe a real place.
- Which countries are included?
37: United States, Canada, Mexico, Brazil, United Kingdom, Ireland, France, Germany, Austria, Belgium, Netherlands, Spain, Portugal, Italy, Finland, Sweden, Norway, Poland, Croatia, Romania, Ukraine, Russia, Georgia, Turkey, Israel, India, Nepal, China, Taiwan, Japan, Vietnam, Indonesia, Switzerland, South Africa, Australia, New Zealand and a generic Arabic locale.
- Is this a US postcode generator?
By default, yes: the United States is selected when the page loads and produces 5-digit ZIPs, sometimes with a ZIP+4 suffix. Switch the dropdown for any other country, or use the Random US ZIP Code Generator for codes tied to a chosen state.
- How many can I generate at once?
Up to 100 per press. Each appears on its own card with a copy button that copies just the code.



