Blog

UK postcode format explained

Outward code, inward code, area, district, sector, unit. Here is how a UK postcode is actually structured.

Guides

Two halves: outward and inward

A UK postcode has two parts separated by a space, for example SW1A 1AA. The first part is the outward code (SW1A) and the second is the inward code (1AA). Together they narrow a location down to a small group of addresses.

Breaking it down

  • AreaOne or two letters, e.g. SW, identifying a postcode area.
  • DistrictThe area plus a number, e.g. SW1A.
  • SectorThe district plus the first inward digit, e.g. SW1A 1.
  • UnitThe final two letters, identifying a small set of addresses.

Why the structure matters

Because postcodes are hierarchical, they are a powerful key for lookups, routing, and analytics. A single postcode usually maps to a handful of addresses, which is what makes postcode-driven autocomplete so efficient.

Keep reading

Why teams choose Locatebase

  • Reduce operational costs with verified data
  • Minimise costly delivery errors
  • Support compliance and data accuracy
  • Streamline logistics with precise validation
  • Boost conversion in e-commerce and sales