In the UK the postcode does most of the work: it pins an address down to a handful of properties, so Royal Mail routes on it above everything else. The catch is the postcode's own format and the post town line. Here is how a UK address should look and validate.
A UK label is recipient, optional company, the house number and street, the post town in capitals, then the postcode, then the country. The county is optional and usually omitted.
Jane Smith personal or business recipientExample Ltd optional, above the street line10 Downing Street number first, then the street nameLONDON conventionally written in capital lettersSW1A 2AA the primary routing field; keep the internal spaceUNITED KINGDOM required for inbound international shipmentsThe UK postcode maps to as few as one or two dozen delivery points, so Royal Mail's Postcode Address File (PAF) treats it as the primary key. A correct postcode plus house number is often enough to deliver on its own.
Format: An outward code and an inward code separated by a single space, for example SW1A 2AA. Length varies from 6 to 8 characters.
Validation regex: ^GIR ?0AA|(?:(?:AB|AL|B|BA|BB|BD|BF|BH|BL|BN|BR|BS|BT|BX|CA|CB|CF|CH|CM|CO|CR|CT|CV|CW|DA|DD|DE|DG|DH|DL|DN|DT|DY|E|EC|EH|EN|EX|FK|FY|G|GL|GY|GU|HA|HD|HG|HP|HR|HS|HU|HX|IG|IM|IP|IV|JE|KA|KT|KW|KY|L|LA|LD|LE|LL|LN|LS|LU|M|ME|MK|ML|N|NE|NG|NN|NP|NR|NW|OL|OX|PA|PE|PH|PL|PO|PR|RG|RH|RM|S|SA|SE|SG|SK|SL|SM|SN|SO|SP|SR|SS|ST|SW|SY|TA|TD|TF|TN|TQ|TR|TS|TW|UB|W|WA|WC|WD|WF|WN|WR|WS|WV|YO|ZE)(?:\d[\dA-Z]? ?\d[ABD-HJLN-UW-Z]{2}))|BFPO ?\d{1,4}$
Watch for: a missing space inside the postcode, or the letter O typed for a zero. Both cause lookup failures against PAF.
The country-specific rules that generic autocomplete and single-line address fields tend to get wrong.
Royal Mail's PAF resolves a postcode plus a house number to an exact address. If the postcode is right, minor errors elsewhere often still deliver; if it is wrong, the rest rarely saves it.
A UK postcode has two parts separated by a single space: SW1A 2AA. Removing the space (SW1A2AA) or adding extras causes failed lookups in address databases.
The post town (for example LONDON) is a mandatory line, written in capitals by Royal Mail convention. It is not always the same as the physical town, so it should come from the postcode lookup.
Since postcodes carry the routing, the traditional county line is optional and Royal Mail recommends omitting it. Requiring a county on your form adds friction with no delivery benefit.
Each of these passes a basic "is this field filled in" check but fails at the carrier, turning into a redelivery, a return, or an address correction fee.
SW1A 2AA) fails PAF lookup and stalls sorting.SW1A2AA breaks many validation and lookup systems that expect the outward/inward split.SW1O versus SW10 resolves to different places or nowhere.How the major carriers handle United Kingdom addresses, and what your label needs to satisfy each one.
The universal carrier and owner of the Postcode Address File. Its entire network keys off the postcode, so a valid, correctly spaced postcode is the most important field you can get right.
The largest private parcel networks for UK ecommerce. They expect a house-number-plus-postcode combination and a capitalised post town for accurate first-time delivery.
International carriers for inbound shipments. Include the country line; they apply address correction surcharges when a postcode or post town forces a manual fix.
Address Guard checks United Kingdom addresses against carrier and postal databases before the order ships, normalizes the format, and flags the errors that cause failed deliveries. 240+ countries, $0.05 per check.
Part of the Address Guard international address format guide, covering 240+ countries.