Postal Codes Dataset for United Kingdom, GB

411
Updated:
Files:1
Size:235 MB
Rows:1,749,109
Formats:csv

Postal Codes Dataset for United Kingdom, GB including name of the city, town, or place, various administrative divisions and alternative city names.

Part of a Data Solution

  • Postal Codes Solution

    Every worldwide postal-code dataset in one bundle — the ultimate global reference for precise postal codes.

    Explore →

Premium

You're viewing a free sample

Get the complete dataset — all rows and files — delivered instantly after checkout, with lifetime access to the latest version.

  • Secure checkout via Stripe
  • Instant download after payment
  • Lifetime access to the latest version
  • Open Government Licence v3.0 license
20% off
$99.90$79.92
one-time payment

API Access

Access dataset files directly from scripts, code, or AI agents.

Browse dataset files
Dataset Files

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

/logistics/postal-codes-gb/
https://datahub.io/logistics/postal-codes-gb/_r/-/.licensing-notes.md
https://datahub.io/logistics/postal-codes-gb/_r/-/.migration-notes.md
https://datahub.io/logistics/postal-codes-gb/_r/-/ATTRIBUTION.txt
https://datahub.io/logistics/postal-codes-gb/_r/-/README.md
https://datahub.io/logistics/postal-codes-gb/_r/-/datapackage.yaml
Key Files

Start with these files — they give you everything you need to understand and access the dataset.

datapackage.yaml— metadata & schema
https://datahub.io/logistics/postal-codes-gb/_r/-/datapackage.yaml
README.md— documentation
https://datahub.io/logistics/postal-codes-gb/_r/-/README.md
Typical Usage
  1. 1. Fetch datapackage.yaml to inspect schema and resources
  2. 2. Download data resources listed in datapackage.yaml
  3. 3. Read README.md for full context

Data Files

postal-codes-gb-sample


About this dataset

Postal Codes Dataset for United Kingdom (GB)

This dataset lists British unit postcodes across England, Scotland and Wales (Great Britain only; Code-Point Open does not cover Northern Ireland), with coordinates and administrative geography (country / district / ward, plus the county in two-tier areas of England).

Column definitions, row count, size and last-updated date are in datapackage.yaml.

Data Sources

Required attribution: "Contains OS data © Crown copyright and database right; contains Royal Mail data © Royal Mail copyright and database right; contains National Statistics data © Crown copyright and database right; GeoNames data © GeoNames, CC BY 4.0."

Changes made to the source data: grid coordinates (British National Grid) converted to WGS84 latitude and longitude at 6 decimals; district, ward and county names joined on GSS code from the ONS lookups; place name set to the nearest GeoNames populated place; postcodes with positional quality 90 have blank coordinates and place name instead of 0,0.

Not endorsed by, or affiliated with, Ordnance Survey, Royal Mail, the Office for National Statistics or GeoNames.

Known limitations

  • Great Britain only: Northern Ireland is not covered.
  • Postcodes with OS positional quality 90 have no coordinate, so latitude, longitude and place_name are blank for them rather than estimated.
  • The county columns are populated only for two-tier areas of England; single-tier authorities (Scotland, Wales and unitary English authorities) correctly have no county value.
  • place_name is the nearest GeoNames populated place to the postcode coordinate, not an official postal town.
  • alternative_city_name is always empty.

Usage

The dataset files are available in CSV format and can be accessed and downloaded using the links provided in datapackage.yaml. Read postal_code as text (dtype=str): British postcodes mix letters, digits and a space (AB10 1WS).

For other inquiries, contact datahub@datopian.com