
Address Form Design for Checkout: Fields, Autocomplete and International Formats
How to design an address form for checkout: which fields to ask for and in what order, how autocomplete and browser autofill change the job, where inline validation helps, how to handle countries without postcodes or states, and when billing should default to shipping.
Until July 2015, an Irish address outside Dublin's numbered postal districts had no postcode at all. Eircode, the national system, launched that summer. Before it, many rural addresses were a house name, a townland and a county. Hong Kong still has no postal codes. A checkout that marks "ZIP / Postal code" as required and checks it against a five-digit pattern turns both groups away at the last step before payment.
That is the common failure in an address form: it encodes one country's postal system as if it were the shape of addresses in general.
Fields a checkout address form needs
For a shipped physical order, the carrier needs a recipient, a delivery line, a locality, whatever regional unit the country uses, a postcode where one exists, and the country. Everything else is optional or belongs somewhere else.
A workable default set:
- Full name (one field, see below)
- Country or region
- Address line 1
- Address line 2, labelled as optional (flat, suite, building)
- City or town
- State, province, county or region, only where the country uses one
- Postal code, only where the country uses one
- Phone number, if the carrier needs it, with the reason stated next to the field
Company name, a second phone number and "address line 3" are the common additions. Each one costs a little attention from every customer to serve a few of them. Put company name behind an "Add company name" link if your B2B share is small.
One full-name field instead of first and last is worth the argument with whoever owns the CRM. Many people do not have a name that splits cleanly into given and family, and the courier only needs to print it on a label. If marketing needs a first name for email greetings, ask for it once, later, as "What should we call you?"
Address form field order
Put country first. In a well-built postal address form, the country decides which fields appear, what they are called, and in what order. Asking for it at the bottom means the customer fills in "State" and "ZIP" before the form learns they live in Japan, where the postcode is written first and the address runs from prefecture down to building.
Most shops can pre-select the country from the storefront's region or the IP lookup they already use for currency, and leave it editable.
After country, follow the order the address is written in that country. For the US, UK, Canada and Australia that is street, then city (suburb, in Australia), then state or county, then postcode. Google maintains per-country address metadata for exactly this purpose: field order, which fields are required, what the regional unit is called, and the postcode pattern. It is open source as libaddressinput and is a good default if you do not want to build the table yourself.
What changes by country, in practice:
| Country | Regional field | Postcode | Notes |
|---|---|---|---|
| United States | State (required) | ZIP, 5 or 9 digits | "ZIP code" is the expected label |
| United Kingdom | County (optional, rarely used for delivery) | Postcode, alphanumeric | Postcode lookup is common and expected |
| Canada | Province or territory (required) | Postal code, letter-digit pattern | Province list is short and fixed |
| Japan | Prefecture (required) | 7 digits, written first in Japanese script | Largest unit to smallest in Japanese; reversed, postcode last, in Latin script |
| Ireland | County | Eircode, 7 characters, since 2015 | Older addresses may still be given without one |
| Hong Kong | Region / district | None | A required postcode field blocks every order |
The table is the short version. Frank's Compulsive Guide to Postal Addresses is the long one, compiled since the 1990s, and is worth reading once before you lock the schema.
Autocomplete and browser autofill
"Autocomplete" covers two separate features, and an address form should support both.
Browser autofill fills the whole form from an address the customer has saved in their browser or password manager. It only works if each field carries the right autocomplete attribute: name, country, address-line1, address-line2, address-level2 for the city, address-level1 for the state or province, postal-code, and tel. Prefix them with shipping or billing (autocomplete="shipping postal-code") to help the browser keep saved billing and delivery addresses apart. These tokens are also how a form meets WCAG 2.1 success criterion 1.3.5, Identify Input Purpose, at level AA.
A form with correct tokens can be filled from one saved address. A form whose fields are named addr_1_custom and split into a dozen widgets gets partial fills and a city in the street field.
Address lookup is the type-ahead that suggests full addresses as the customer types the first line, backed by a service such as a national postal database or a maps API. It cuts keystrokes and typos where the address data is good. Rules for using it:
- Fill the individual fields from the chosen suggestion, and leave them visible and editable. A customer whose flat number the lookup dropped needs somewhere to put it back.
- Always offer "Enter address manually". New-build streets, rural properties and PO boxes are where lookup data is weakest.
- Do not block on the API. If the lookup times out, the manual fields should already be there.
Inline validation on address fields
In 2009 Luke Wroblewski tested inline validation in web forms for A List Apart and found that, compared with validating on submit, it raised success rates and cut completion time, with the best results when a field was checked after the person left it rather than while they were still typing (Inline Validation in Web Forms). That timing matters more on an address than on most forms. A postcode checked keystroke by keystroke shows an error after the first character of every valid UK postcode.
What to validate, and how hard:
- Required fields that are empty: flag on leaving the field and again on submit.
- Postcode format: check against the selected country's pattern, and only that country's. If you have no pattern for a country, accept anything.
- Postcode against city or state: suggest, never block. "That postcode is usually in Leeds. Use Leeds?" lets the customer confirm a real edge case.
- Deliverability: if a carrier API says the address does not exist, show what it found and let the customer keep their own version. Address databases can lag new construction.
Write each error next to its field, say what is wrong in the customer's terms, and keep what they typed. "Enter a 5-digit ZIP code" beats "Invalid input", and an error that clears the field makes the customer redo work that was mostly right.
Do not reject characters. Accents, apostrophes, hyphens and non-Latin scripts appear in real street and town names. If your fulfilment system cannot store them, that is a back-end fix.
Billing address and the same-as-shipping checkbox
For most consumer orders the billing address is the shipping address. Make that the default: a checkbox, ticked, reading "Billing address is the same as delivery address", with the billing fields hidden until someone unticks it. Since WCAG 2.2, asking every customer to type the same address twice is also an accessibility failure. Success criterion 3.3.7, Redundant Entry (level A) requires information the user already entered in the same process to be filled in for them or offered for selection. The other 2.2 changes are in the WCAG 2.2 explainer.
Two cases where the default should flip:
- Gift orders. If the customer has said the order is a gift, the delivery address belongs to someone else, so ask for billing separately.
- Digital-only orders. With nothing to ship, ask only what the payment processor needs. For many card payments that is the country and the postcode, not the full street address. Check with your processor before cutting fields, because address verification rules differ by card network and region.
When billing does differ, show the billing fields in the same layout and order as the shipping ones, with the same billing-prefixed autofill tokens, so a returning customer's saved billing address fills them in one go.
Where the address step sits in checkout
Ask for the address after the customer has decided to buy and before payment. Showing shipping cost before the address is known is the hard part: either estimate it from the pre-selected country and say it is an estimate, or ask for country and postcode on the cart page, then carry both forward into the full form so they are not asked twice.
For the wider pattern library this sits in, field grouping, labels and error placement, see the interaction design hub.
FAQ
What does a sample billing address look like?
A US billing address, as a card issuer would have it on file:
Jordan Lee
1200 Example Avenue, Apt 4B
Springfield, IL 62701
United States
The same structure, for a UK address:
Jordan Lee
Flat 3, 18 Sample Road
Leeds
LS1 4AB
United Kingdom
These are illustrations, not real addresses. The billing address should match what the card issuer holds. A mismatched postcode or street number can trigger a decline, depending on your processor's settings.
Should the postal code come before the city?
Only where that is how the country writes it, as in Japan. In the US, UK, Canada and Australia, put city before the regional field and the postcode. Some UK forms ask for the postcode first because it drives a lookup that fills the street and town. That ordering is fine when the lookup is the main path and manual entry is one click away.
Should I use a dropdown for state or province?
Yes, for countries with a fixed, short list, such as US states or Canadian provinces, and pair it with autocomplete="address-level1" so autofill can select the right option. Use a free-text field where the regional unit is optional or has no standard list.
What is the minimum for a US address form?
Seven fields with the full-name approach above, one of them optional: name, address line 1, line 2, city, state, ZIP and country. For Hong Kong it is fewer, because there is no postcode.
Does form design differ on mobile?
The fields are the same, so the differences are in the inputs. Use inputmode="numeric" for US ZIP codes so the phone shows a number pad, and leave alphanumeric postcodes on the standard keyboard. Stack the fields in a single column. Make sure the autofill tokens are present.
Sources: Google libaddressinput · Frank's Compulsive Guide to Postal Addresses · A List Apart — Inline Validation in Web Forms · W3C — Understanding SC 1.3.5 · W3C — Understanding SC 3.3.7.
Related
Navigation Design
YouTube UX Teardown, October 2026: The Hype Chart, From List to Mini-Player
YouTube's Brazilian Hype Top 100 keeps its name on screen from the list to the watch page, where it is labelled Unlisted and drops the hyped labels, and on to the mini-player. The rows print views and age but no hype count. October 2026 edition, with a comparison against our June screens.
TYPENORMLabs · 4 min · November 27, 2026

UX Clarity
Wise UX Teardown: Remitly on Top of Wise's Own Price Table
For 1,000 USD to EUR, the first row of Wise's own provider comparison is Remitly, 0.34 EUR ahead of Wise, while Wise's row gets the green fill and the largest type. A teardown of the converter, rate chart, comparison table and send calculator on Wise's US site.
TYPENORMLabs · 6 min · November 3, 2026

Information Architecture
WhatsApp UX Teardown: Download on Every Page, Then a Business Site That Asks You to Choose
Every consumer page on whatsapp.com keeps a green Download button at the right end of the nav. The For Business link opens whatsappbusiness.com, where the hero offers Get Started and Download App at equal size, one scroll above the cards that explain the two business products.
TYPENORMLabs · 5 min · November 7, 2026

Comments
Loading comments…