Random Postal Code Generator

Generate correctly formatted postal codes for 180+ countries: UK postcodes, Canadian postal codes, German PLZ, Japanese codes and more. For US ZIP codes, use our ZIP code tool.

// About

About the Random Postal Code Generator

Correctly formatted postal codes for countries and territories around the world.

What is it?

This tool makes random postal codes in the format each country uses. Its data covers 187 countries and territories, from UK postcodes and Canadian postal codes to German PLZ and Japanese codes. All Countries mixes every country except the United States and the Philippines, which have their own tool.

How it works?

Each country has a format pattern made of digits, letters, spaces and hyphens. The generator fills the pattern with random characters, so a UK result looks like a UK postcode and a Canadian result looks like a Canadian postal code. The codes match the format, but they are random, so many do not exist. You can copy the codes or download them as a text file.

// Features

Key Features

Everything you need for perfect generation

187 Countries and Territories

One format pattern for each country in the data.

Format-Accurate Codes

Letters, digits, spaces and hyphens sit where each country puts them.

Global Mix

All Countries picks a different country for each code and leaves out US ZIP codes.

One Country at a Time

Lock the output to one country to test a single checkout market.

No Sign-Up

Open the page and generate. There is nothing to register.

Copy or Download

Copy the batch, or download it as a text file.

// Use Cases

Use Cases

Perfect for various applications and industries

🧪

Address Form QA

Feed your form codes from one country or a global mix to find rules that reject valid foreign formats.

🛒

Checkout and Shipping Tests

Test shipping rates, tax rules and "we do not ship there" logic per country without real customer data.

🌍

Learn Postal Formats

Compare how the UK, Canada, Germany, Japan and others build their codes.

🗃️

Seed Demo Datasets

Fill sample CRMs, dashboards and mock orders with codes in the right format.

// FAQ

Frequently Asked Questions

Everything you need to know about our random postal code generator

The data has format patterns for 187 countries and territories. All Countries mixes them, but leaves out the United States and the Philippines.

Not always. Each code follows its country's format, but the characters are random. Use the codes for tests, not for mail or real addresses.

A UK postcode has an outward part and an inward part, such as SW1A 1AA. A Canadian postal code goes letter, digit, letter, then a space and digit, letter, digit, such as K1A 0B1. Pick one country to see its format.

N is a digit. A and C are letters. X is a letter or a digit. Spaces, hyphens and any other characters appear as they are.

Yes. Pick United States or Philippines in the country list, and old links that use them still work. For US codes with a real state prefix, the Random ZIP Code Generator is the better choice.

Up to 99 per batch. Turn off Allow Duplicates to keep each code in the batch unique.
// Pro Tips

Tips & Best Practices

Pro tips to get the most out of this generator

Match the country

Pick the target country first — each one uses its own digit/letter pattern, so codes validate against the right format.

Bulk test data

Generate a batch at once to stress-test address forms and shipping-rate calculators.

Format, not real addresses

These are format-valid samples for testing — pair with a city generator for fuller mock records.