The ONS Postcode Directory (ONSPD) relates both current and terminated postcodes in the United Kingdom to a range of current statutory administrative, electoral, health and other area geographies.
[1] It helps support the production of area based statistics from postcoded data.
The ONSPD is available for free download in comma separated variable (CSV) format and ASCII text (TXT) formats from the ONS Open Geography Portal.
The supplied file contains multi CSVs so that postcode areas can be opened in MS Excel.
The ONSPD reflects current and terminated postcodes using information supplied monthly by Royal Mail.