Field guide

ZIP Code vs Postal Code

A ZIP Code is the U.S. postal routing code. Postal code is the broader international term used by many countries. Forms that label every field as ZIP Code may confuse users outside the United States.

Examples by country

Form design advice

Use country-aware labels such as ZIP Code for the United States, postcode for the UK and Australia, PIN code for India, and postal code as a neutral fallback.

QA notes

Test letters, spaces, hyphens, leading zeros, four-digit postcodes, five-digit postal codes, and six-digit codes. Avoid a single numeric-only rule for every country.

Validation matrix

CountryExampleRequired data behavior
United States02108 or 10001-1234Preserve a leading zero and optional ZIP+4 hyphen
CanadaM5V 1Z7Accept letters and normalize the central space
United KingdomSW1A 1AAAccept variable length and letters
Netherlands1012 ABDo not apply numeric-only validation
Singapore079903Preserve six digits including the leading zero

Implementation rule

Store postal values as strings. Select the country first, then apply a country-specific label and conservative shape validation. A regex can identify an obvious formatting error, but it cannot confirm that a code exists, matches the city, or is deliverable.

Regression cases

Country-switch test sequence

  1. Select the United States and enter 02108. Confirm that the label says ZIP Code and the leading zero remains.
  2. Change to Canada and enter M5V 1Z7. Confirm that letters and the internal space are accepted.
  3. Change to the United Kingdom and enter SW1A 1AA. Confirm that a U.S. length rule is no longer active.
  4. Return to the original country and verify that the product either restores the country-specific value or clearly asks for a replacement.

Record the displayed label, submitted payload, stored value, and validation message for each step. The test fails if the country selector changes only the label while leaving an incompatible validator behind. Deliverability and city matching should remain separate services from conservative input-shape validation.