Skip to generator

Address formats: fields, order, and postal codes

A practical route through postal fields, country-specific examples, and the limits of format checks.

Start with fields, then country rules

Address forms work best when they preserve distinct pieces of information: recipient, delivery line, locality, region, and postal code. The order and labels can then adapt to a selected country. Do not assume every place has a state or a postal code.

Use examples for syntax, lookup for delivery

A pattern can catch missing characters or misplaced separators. It cannot establish that a street and postal code identify a deliverable destination. Keep test fixtures coherent, and use an authorized postal lookup when delivery status matters.

Choose the guide for the next decision

Use the field-design guides when building an international form, then follow a country guide when you need a concrete example. fakeloc country tools are synthetic-data fixtures and do not perform postal verification.

Resources

Address formats: fields, order, and postal codes

All field notes
Aa →fakeloc / Guides
ADDRESS FORMATS

The anatomy of a US address

Street, city, state, ZIP. Understand what each line does and make your forms work better.

Read the guide
{ … }fakeloc / Guides
FOR DEVELOPERS

Build address forms that travel well

Design a checkout or signup form that welcomes addresses beyond your home country.

Read the guide
〒fakeloc / Guides
ADDRESS FORMATS

ZIP, postcode, postal code, or PIN?

Different names, different shapes. A practical guide to keeping postal fields flexible.

Read the guide
Aa →fakeloc / Guides
ADDRESS FORMATS

Canadian postal codes, without the guesswork

Understand the alternating letters and digits, then keep province and city together in your fixtures.

Read the guide
{ … }fakeloc / Guides
ADDRESS FORMATS

UK postcode formats: spacing, units and test cases

Keep the outward and inward code together with its locality when testing UK address forms.

Read the guide
〒fakeloc / Guides
ADDRESS FORMATS

German PLZ: five digits and a flexible address form

Preserve leading zeros and keep the town attached to the postal sample.

Read the guide
Aa →fakeloc / Guides
ADDRESS FORMATS

Singapore addresses: six-digit postcodes and unit numbers

Test building, block and unit fields without inventing a verified postal association.

Read the guide
{ … }fakeloc / Guides
ADDRESS FORMATS

Hong Kong addresses in Chinese and English

Keep one synthetic record while changing its writing system and display order.

Read the guide
〒fakeloc / Guides
ADDRESS FORMATS

Japanese addresses: postal codes, local script and international order

Understand what our Japan Post enrichment adds and what it cannot validate.

Read the guide
Aa →fakeloc / Guides
ADDRESS FORMATS

Address line 1 vs. line 2: a field model that keeps details

Decide where street, building, floor, and unit details belong without treating line numbers as universal rules.

Read the guide
{ … }fakeloc / Guides
ADDRESS FORMATS

Postal codes in CSV: preserve leading zeros on import

Why a quoted CSV field can still lose zeroes in spreadsheet software, and how to make the import predictable.

Read the guide
〒fakeloc / Guides
ADDRESS FORMATS

Address validation vs. a format check

Understand what regex, postal lookup, and carrier validation can each establish before checkout.

Read the guide