Billing Postal Code Generator

Correctly formatted ZIP and postal codes for testing checkout forms.

0 postal codes

Billing Postal Code Generator

The billing postal code generator creates correctly formatted ZIP and postal codes for testing checkout forms, payment pages and address validation. Generate US ZIP codes for a specific state, ZIP+4 codes, or postal codes for ten other countries.

Supported formats

Country Format Example
United States 5 digits / ZIP+4 62704 / 62704-1234
Canada A1A 1A1 K1A 0B1
United Kingdom Outward + inward code SW1A 2AA
Germany 5 digits 10115
France Department + 3 digits 75008
Spain Province + 3 digits 28013
Netherlands 4 digits + 2 letters 1012 AB
Australia 4 digits by state 2000
Japan 3 + 4 digits 100-0001
India 6-digit PIN 110001

Why test postal codes matter

Postal code fields break more checkouts than almost any other input. Canadian codes contain letters and a space, UK postcodes have variable length, Dutch codes mix digits and letters, and US ZIP+4 codes include a hyphen. A form that only accepts five digits silently loses international customers. Generating a list for each country lets you check validation rules, input masks and database column sizes in minutes.

How the codes follow the rules

  • US: the first three digits come from the range assigned to the state, so a Florida ZIP starts with 32–34.
  • Canada: only the letters allowed by Canada Post are used; D, F, I, O, Q and U never appear.
  • UK: codes use real postcode areas such as SW, M, LS and EH with a valid inward code.
  • France and Spain: the first two digits are a real department or province number.

Important

These codes are meant for development and QA. Payment providers verify the billing postal code against the bank's records, so a random code cannot be used to make real purchases. Use your provider's documented test values when testing address verification.

Frequently Asked Questions

It is the ZIP or postal code of the address registered with your card issuer. Many checkouts ask only for this code and compare it with the bank's records (address verification).

No. A real payment only succeeds with the postal code your bank has on file. These codes are for testing form validation and test-mode payments.

They follow each country's official format and value ranges – US ZIP prefixes per state, Canadian letter rules, UK outward codes, French departments, Spanish provinces – but a specific code may not be in use.

United States (ZIP and ZIP+4), Canada, United Kingdom, Germany, France, Spain, the Netherlands, Australia, Japan and India.