UK address testing
UK Address Format: Correct Order and Examples
The correct UK address order is recipient, premises and street, optional locality, post town, then postcode. Use the examples below for houses, flats, named buildings, forms and international mail without assuming every address has the same fields.
By PostcodeLab · Published · Updated
How to format a UK address
Short answer: write the recipient or organisation first, then the premises and street, an optional dependent locality, the post town, and the postcode on its own final domestic line. Add UNITED KINGDOM after the postcode only when the address is being used internationally.
- Recipient or organisation: the person, department or business receiving the item.
- Premises: flat, unit, building name or building number as supplied by the address source.
- Street and locality: preserve meaningful street and dependent-locality lines instead of forcing them into one field.
- Post town: keep the postal town even when it differs from a geographic city label.
- Postcode: place the full outward and inward code on a separate line.
- Country: add the country as the last line for international use.
Recipient or organisation
Flat or building
Street address
Locality, if needed
POST TOWN
POSTCODE
United Kingdom, for international use
GOV.UK writing guidance recommends separate lines and no trailing commas. This is a field-order illustration, not a deliverable address; production mail should use an authoritative address source rather than an invented completion.
UK address format at a glance
Choose the structure that matches the fields supplied by your address source. Do not invent a county, locality or street line merely to fill a fixed template.
| Address type | Correct line order |
|---|---|
| House or street address | Recipient → building number and street → post town → postcode |
| Flat or unit | Recipient → flat or unit → building and street → post town → postcode |
| Named building | Recipient → building name → street or locality when supplied → post town → postcode |
| International mail | Domestic UK lines → postcode → UNITED KINGDOM |
The postcode is the final line for domestic mail. When sending from outside the UK, add UNITED KINGDOM after it as a separate final line.
UK address examples for houses, flats and buildings
Each sample UK address below is a labelled format template, not a real or deliverable address. The labels make the line order safe to reuse in documentation, form design and automated test fixtures without publishing a plausible person-to-property combination.
Standard UK street address example
Recipient name
Building number and street
POST TOWN
POSTCODE
Do not add an empty county line just to keep a fixed layout. A dependent locality belongs between the street and post town only when it is part of the source address.
UK flat address format
Recipient name
Flat or unit
Building number and street
POST TOWN
POSTCODE
Put the flat or unit before the building number and street. Keep the sub-building value when the source supplies one. A compact display may combine the flat and street lines when space is limited, but stored data and exports should not silently lose the flat or unit identifier.
Named building address example
Recipient or organisation
Building name
Street, if present
Locality, if needed
POST TOWN
POSTCODE
A building name can be a required premises identifier rather than optional decoration. Allow the street line to be absent when an authoritative source does not provide one.
United Kingdom address example for international use
Recipient or organisation
Premises and street
POST TOWN
POSTCODE
UNITED KINGDOM
Add the country as the final line for international use. Domestic UK forms normally store the country separately and do not need to repeat it inside the multiline address.
Recommended fields for software
address_line_1: premises and street information.address_line_2: optional flat, building, locality or overflow information.post_town: the postal town; do not assume it always matches an administrative city.postcode: store separately so it can be normalised and validated.country: use a stable country code internally and a readable label for display.
County can be useful for legacy integrations or display, but it should not be made mandatory merely because a database schema has a county column. Avoid forcing all UK addresses into a US-style city/state model.
See the guide to post town, city and county fields before mapping those concepts into one generic city column.
Design address entry for real variation
The GOV.UK Design System address pattern recommends a postcode lookup with a manual-entry alternative. It also advises accepting postcode input in upper or lower case, with or without spaces, and tolerating common punctuation before normalisation.
Use a multiline address control when you only need a printable address. Use separate fields when downstream systems genuinely require individual components. In either case, preserve what the user entered and avoid silently deleting meaningful building or locality information.
For provider selection, failure recovery, accessibility and privacy boundaries, use the UK address lookup and autocomplete guide.
Common UK address-format questions
Where does a flat number go in a UK address?
Put the flat or unit before the building number and street, normally on its own line when the source supplies it separately. A compact display may combine those values, but storage and exports should not silently discard the sub-building identifier.
Does a UK address need a county?
Not usually. County may be useful for a documented legacy integration or administrative analysis, but it should not be mandatory in a general UK postal-address form. See the distinction between post towns, cities and counties.
Should a UK postcode be on a separate line?
Yes for a formatted postal address. Store the postcode separately in software so it can be normalised and validated, then render it as the final domestic address line.
How do you write a UK address from abroad?
Use the same premises, street, post-town and postcode order, then add UNITED KINGDOM as the final country line. Do not insert a mandatory county merely because the sender is outside the UK.
Developer test checklist
- Test short and long address lines, apostrophes and hyphenated place names.
- Test a missing second line and an optional county.
- Test postcode input with lower case, extra spaces and no space.
- Test copy, export and label layouts without truncating the postcode.
- Keep production identity data out of development and QA environments.
Official references
Related developer guides
UK Address Form Test Cases and QA Checklist
Use practical UK address form test cases for field variation, postcodes, lookup failure, accessibility, mobile layouts, exports and integration safety.
Read guideUK Address Lookup and Autocomplete Guide
Design a resilient UK address lookup and autocomplete flow with postcode search, editable results, manual entry, accessibility and provider safeguards.
Read guideUK Post Town vs City and County Fields
Understand UK post towns, town or city inputs, optional county fields and administrative geography when modelling addresses in forms and databases.
Read guideUK Postcode Format and Validation Guide
Understand UK postcode structure, outward and inward codes, normalisation, syntax validation, lookup checks and practical QA test cases.
Read guide