The Office for National Statistics Postcode Directory, commonly abbreviated to ONSPD, is a fundamental reference dataset produced by the Office for National Statistics. It provides a single, definitive file that links every live and terminated postcode in the United Kingdom to a wide range of administrative, health, electoral and statistical geographic areas. The ONSPD is updated quarterly and is the standard tool used by government departments, local authorities, researchers and businesses to translate a postcode into a meaningful set of geographic boundaries.

What the ONSPD Contains

The ONSPD is not simply a list of postcodes. For each postcode unit, the directory includes a series of geographic identifiers, or codes, that relate to the specific areas in which that postcode falls. These identifiers cover a broad range of geographies, including:

  • Lower layer and middle layer super output areas (LSOAs and MSOAs) for England and Wales, and data zones for Scotland.
  • Wards and electoral divisions, which are used for local elections.
  • Westminster parliamentary constituencies.
  • Clinical commissioning groups (now integrated care boards) and health boards.
  • Local authority districts, unitary authorities, counties and regions.
  • Census output areas and built-up areas.

Each entry also records the grid reference for the postcode, typically the Ordnance Survey National Grid reference for the centroid of the postcode unit, which allows the directory to be used with mapping software.

How It Relates to Postcodes

The ONSPD relies on the Royal Mail's Postcode Address File (PAF) as its starting point for the list of postcodes. However, the ONS then adds its own layer of geographic coding. The directory includes both current postcodes, which are still in active use for mail delivery, and terminated postcodes, which have been decommissioned. This is important for historical research and for tracking changes over time. The ONSPD also records the date when a postcode was introduced and, if applicable, when it was terminated. By linking a postcode to a grid reference and to a hierarchy of administrative areas, the ONSPD makes it possible to aggregate data from small areas into larger regions, such as from a neighbourhood to a local authority or a parliamentary constituency.

Why It Matters for Researching an Area

For someone researching an area, the ONSPD is an essential bridge between a specific address and the wider statistical and administrative landscape. Without it, it would be very difficult to know, for example, which census output area a particular street belongs to, or which public health team is responsible for a given neighbourhood. The directory is the backbone of many public-facing tools, including postcode checkers on local council websites and the ONS's own area classification tools. Because the ONSPD is maintained to a consistent national standard, it allows researchers to compare data across different parts of the United Kingdom with confidence. It also underpins the production of official statistics, such as unemployment rates by ward or population estimates by super output area. In short, the ONSPD is the key that unlocks the official geography of the United Kingdom from the postcode upwards.