Test data tools

Postal code sample generator

Choose a country and region to sample real locality/postal pairings for form validation and test fixtures. Codes are sampled without replacement within each batch.

Generation and export run in this browser. These batches are not added to your saved addresses.

Choose your options, then generate a batch.

Your batch

CSV and JSON export fields

JSON contains tool, generatedAt and records. Each record keeps postalCode, city, region and regionCode together, plus country, referenceOnly and source credits. CSV includes the same fields. Import postal codes as Text to keep leading zeros and spaces; one sample locality does not list every place sharing that code.

postalCode
Postal code
city
City
region
Region
regionCode
Region
country
Country

How to use this tool

Choose options, select Generate, then copy or download the batch. Changing an option clears the previous result.

Select the country first, then a region and batch size. A batch returns one reference locality for each selected unique postal code; it does not list every locality sharing that code. Copy the table or download source-attributed CSV/JSON.

Format example

US: 00501 · UK: SW1A 1AA · Canada: K1A 0B1

What these samples mean

These are locality/postal reference records, not a complete postal lookup or a delivery check. A postal code can cover several places. Keep codes as text to preserve leading zeros. Hong Kong has no postcode system and is not included in this generator.

The source snapshots have different dates and coverage. The displayed pool is not a promise of every assigned postal code. For deliverability, changes or a specific destination, consult the relevant postal operator. This tool samples reference data; it does not search for a person or street address.

Data sources and coverage

Delete this address?

Contact us

Copy the email address, or open your email app.

Use email app