Test Postal Code Generator — Dummy ZIP / Postcodes for Fixtures

Generate postal codes with valid prefixes for checkout tax, shipping zones and regex fixtures. A code may really exist, so use them outside production only. They are not meant for mail, geo-restriction bypass or DPV certification.

Loading…
How the test postal codes are built
Postal codes, ZIP codes and postcodes with valid prefixes, for checkout tax, shipping zones and regex fixtures. A code may really exist. This is not a street address or a DPV dataset.

How generation works

Choose a quantity from 1 to 100, a country, a region and a format. For the United States, you can also limit codes to states without sales tax. Changing an option generates a new list. Copy the codes, or download JSON, CSV, SQL or TXT.

Options

Quantity (1 to 100)
How many postal codes to generate, up to 100. Codes never repeat within a list.
Country
Sets the shape of the code and its prefixes. US ZIP, Canada A#A #A#, UK outward and inward codes, French five-digit code, German PLZ, Swedish ### ##, Australian four-digit postcode. The French page starts on France, the German page on Germany, the others on the United States.
Region
Narrows the prefixes to one US state, Canadian province, UK nation, French department, German or Swedish zone digit, or Australian state. Any region draws from all of them.
Format
National display keeps the usual separators. Compact removes them for Canada, the UK and Sweden. US ZIP+4 is for the United States only and adds a 4-digit extension from 0001 to 9999.
US sales tax
Shown only for the United States. No state sales tax limits codes to Alaska, Delaware, Montana, New Hampshire and Oregon.

Examples

US ZIP code for checkout

Settings

country=US, region=any, format=national

Sample output

94107

Compact UK postcode

Settings

country=GB, region=england, format=compact

Sample output

SW1A1AA

Related tools

Need a full street line? Try the test address generator. For company, username, name, email or phone columns, use the test company name generator, the test username generator and the test name generator. The test email generator and the test phone number generator cover the rest. See also the UUID generator and the Lorem Ipsum generator.

Test postal code FAQ

Fixtures, real codes and the limits of this tool

Can these postal codes be real assigned codes?

Yes. A code with a valid prefix often matches an assigned postcode. Use them only as synthetic fixtures outside production. The tool does not check PAF, CASS, DPV or any registry.

Is this a fake address or fake ZIP generator?

If you searched for a fake ZIP code generator, this page gives one postal_code column for fixtures. It does not build a full address, a city line or an identity.

Does it output street, city, or lat/long?

No. This page generates postal codes only. For street, city and unit, use the test address generator, which reuses these postal code rules. Neither page gives latitude or longitude.

Are 00000 or reserved test ZIPs used?

No. The tool never produces all-zero codes. It also does not rely on any block of fictional codes reserved by USPS, Royal Mail or the French postal service.

Dummy names, emails, phone numbers, addresses, dates, IBANs, card numbers and JSON, CSV or SQL rows for fixtures and database seeds. Everything is generated in your browser.