Address & testing guides

International address formats for developers and QA

Compare US, UK, Japan, Germany and Turkey address formats, postal codes and local scripts with synthetic examples for form and API testing.

About 12 minutesFive countries · synthetic fixturesUpdated 2026-11-14

Countries differ in address components, mailing order, scripts and postal codes. Keep structured fields separate from their display: a form’s input order, a mailing label’s line order and an API object’s key order serve different purposes.

Five-country quick reference

CountryDomestic mailing orderPostal syntax
United StatesNumber + street → city, state code + ZIP12345 / 12345-6789
United KingdomUnit/building → number + street → locality if needed → town → postcodeSW1A 1AA
JapanPostal code → prefecture → municipality → area/block → building123-4567
GermanyStreet + number → postcode + city12345
Turkey (Türkiye)Mahalle → Cadde/Sokak + exterior/interior number → postcode + district/province12345

Domestic and international display

Domestic labels follow destination conventions. International labels also need an explicit destination country and may need Latin-script transcription under the sending service’s rules. Construct that representation from named components; never reverse an address string or a Japanese numeric block. The examples below are domestic displays, not shipping instructions.

Reading the synthetic fixtures

These are original, manually composed documentation fixtures, separate from live generator output; no seed is promised to reproduce them. Every complete combination is unverified for allocation and delivery and may coincidentally overlap reality. The Boston/02108 and Dresden/01067 reference pairings are supported by the public location sources below; Ulus/Ankara 06101 follows the PostNL appendix. This does not verify any synthetic street or complete address. The UK inward part is synthetic, and Japan’s 123-4567 is a format-only placeholder. Do not treat these records as assigned addresses.

United States

Put the house number before the street. The final domestic line combines city, a two-letter state abbreviation and ZIP. Store five-digit ZIP and ZIP+4 as strings. Postal abbreviations are a display convention: a full state name in internal storage or the existing generator is not itself a defect. A city text value does not prove an approved postal city name.

USPS Publication 28 — Last line and delivery address

Synthetic structured fields

{
  "synthetic": true,
  "fixtureId": "doc-us-01",
  "countryCode": "US",
  "displayForm": "domestic-multiline",
  "recipient": "TEST RECIPIENT US",
  "houseNumber": "42",
  "street": "Example Test Street",
  "unit": "APT 5",
  "locality": "Boston",
  "regionCode": "MA",
  "regionDisplayName": "Massachusetts",
  "postalCode": "02108"
}

Domestic multiline display

TEST RECIPIENT US
42 EXAMPLE TEST ST APT 5
BOSTON MA 02108

Additional syntax-only variant: "02108-1234"; the extension is synthetic and unverified.

Explicit format error: postalCode="0210". Expected assertion: flag the invalid length under this country’s postal format; do not infer delivery status.

Open country generator: United States

United Kingdom

Include an optional building or unit, the street line, any necessary locality, town and a separate postcode line. County is unnecessary when town and postcode are present; it is not the four-constituent-country filter. Separate the outward part from the last three characters with a space; this example does not cover every valid shape. The generator combines a reference outward code with a synthetic inward part. Its locality is not a verified post town.

Post Office — How to address mail

Synthetic structured fields

{
  "synthetic": true,
  "fixtureId": "doc-gb-01",
  "countryCode": "GB",
  "displayForm": "domestic-multiline",
  "recipient": "TEST RECIPIENT GB",
  "unit": "Flat 4",
  "houseNumber": "18",
  "street": "Example Test Road",
  "dependentLocality": "",
  "locality": "London",
  "county": "",
  "postalCode": "SW1A 0ZZ"
}

Domestic multiline display

TEST RECIPIENT GB
Flat 4
18 Example Test Road
LONDON
SW1A 0ZZ

Input variant "sw1a 0zz" may normalize to "SW1A 0ZZ" under your policy. county stays empty. The inward part is synthetic; assignment is unknown.

Explicit format error: postalCode="SW1A 00ZZ". Expected assertion: flag the invalid length under this country’s postal format; do not infer delivery status.

Open country generator: United Kingdom

Japan

Japanese domestic order proceeds from postal code and prefecture through municipality, area, chōme/block numbers and building/room. Seven digits display as 3-4. Japan is not universally a street-plus-house-number model. International Latin-script labels need a separate component-based representation; Japan Post’s cited page describes international labels, not a complete domestic standard.

Japan Post — International label writing · PostNL

Synthetic structured fields

{
  "synthetic": true,
  "fixtureId": "doc-jp-01",
  "countryCode": "JP",
  "displayForm": "domestic-multiline",
  "recipient": "テスト受取人",
  "regionDisplayName": "東京都",
  "locality": "新宿区",
  "neighborhood": "架空町",
  "block": "2丁目3番4号",
  "unit": "テストビル 501号室",
  "postalCode": "123-4567"
}

Domestic multiline display

〒123-4567
東京都新宿区架空町2丁目3番4号
テストビル 501号室
テスト受取人

123-4567 is a syntax placeholder, not a verified Tokyo postcode. Keep 2-3-4 intact when composing a Latin-script variant.

Explicit format error: postalCode="123-456". Expected assertion: flag the invalid length under this country’s postal format; do not infer delivery status.

Open country generator: Japan

Germany

Write street before house number, then the five-digit postcode before the city. Preserve a leading zero and omit DE- in domestic postal codes. A state selector value does not automatically belong on mailing lines. Test München and Straße without ASCII substitution.

Deutsche Post — Briefumschlag richtig adressieren · PostNL

Synthetic structured fields

{
  "synthetic": true,
  "fixtureId": "doc-de-01",
  "countryCode": "DE",
  "displayForm": "domestic-multiline",
  "recipient": "TESTEMPFÄNGER",
  "street": "Beispielstraße",
  "houseNumber": "42",
  "unit": "Wohnung 5",
  "locality": "Dresden",
  "regionDisplayName": "Sachsen",
  "postalCode": "01067"
}

Domestic multiline display

TESTEMPFÄNGER
Beispielstraße 42
Wohnung 5
01067 Dresden

Additional Unicode test value: "München". Changing locality requires rechecking its postal relationship; do not retain 01067 as a verified Munich pairing.

Explicit format error: postalCode="1067". Expected assertion: flag the invalid length under this country’s postal format; do not infer delivery status.

Open country generator: Germany

Turkey (Türkiye)

Keep Mahalle (neighborhood), Cadde/Sokak (street), exterior and interior numbers distinct, followed by a five-digit postal code and district/province hierarchy. Preserve leading zeroes. PostNL’s country appendix supplies the format reference here; no PTT original is claimed. Test İ, ı, Ş and Ğ, including locale-sensitive case conversion.

PostNL — Addressing International Mail Items, country appendix

Synthetic structured fields

{
  "synthetic": true,
  "fixtureId": "doc-tr-01",
  "countryCode": "TR",
  "displayForm": "domestic-multiline",
  "recipient": "TEST ALICI",
  "neighborhood": "Örnek Mahallesi",
  "street": "Işık Sokağı",
  "exteriorNumber": "42",
  "interiorNumber": "5",
  "dependentLocality": "Ulus",
  "regionDisplayName": "Ankara",
  "postalCode": "06101",
  "unicodeProbe": "İ ı Ş Ğ"
}

Domestic multiline display

TEST ALICI
Örnek Mahallesi
Işık Sokağı No: 42 Daire: 5
06101 Ulus/Ankara

06101 Ulus/Ankara follows the reference example’s locality line; the neighborhood, street and complete combination are synthetic, not assigned or verified.

Explicit format error: postalCode="6101". Expected assertion: flag the invalid length under this country’s postal format; do not infer delivery status.

Open country generator: Turkey (Türkiye)

Structured field mapping

Keep countryCode and regionCode separate from countryDisplayName and regionDisplayName. Preserve locality, dependentLocality, neighborhood, street, houseNumber and unit as appropriate; do not require every country to use every field. postalCode is always a string. formattedAddress is derived output, never a replacement for components. JSON key order has no mailing meaning. These illustrative keys describe your application, not an API offered by this site.

Input and normalization boundaries

Agree normalization with the product under test. Lowercase UK input or an unhyphenated Japanese postal code can be accepted and normalized if the product specifies it; neither must always be rejected. Preserve the original value when required. A format error concerns syntax; a relationship mismatch concerns country/region/locality data; allocation can remain unknown even when both pass. Delivery failure is a separate operational result. A regex, a five-digit length or a city label proves none of the latter.

UI → API → database → CSV assertions

  • Assert postalCode is a string at every boundary; preserve leading zeroes, spaces and hyphens under the agreed policy.
  • Round-trip 東京都, München, Straße and İ/ı/Ş/Ğ through editing, JSON, database, CRM and UTF-8 CSV. Test Turkish case conversion with an explicit locale; do not silently fold Unicode.
  • Assert code and displayName independently. Empty county, unit or room must remain the agreed null/empty value, not N/A.
  • Switch country and verify labels, order, required states, region options and postal rules together; remove stale dependent selections.
  • Compare the visible summary with the submitted payload and read it back after save. Parse CSV with a CSV parser so quotes and multiline values survive.
  • Use the relevant provider’s official sandbox for real shipping or third-party acceptance. These are acceptance templates for your product, not a new validator here.

Continue with the testing workflow

Postal references and context

Original summaries of public guidance; no postal database is redistributed. PostNL publishes the country appendix used for Turkey; this is not a claim to have read a PTT standard. Its extracted Turkish names contain character corruption, so none are copied into the fixtures.