Postcode and county lookup tools

The data are provided free of charge for all personal, educational, non-commercial and commercial use. No specific permission is required. However, we would appreciate an appropriate acknowledgement of the use of the data.

Postcodes

Lookup the county name for a given postcode, or generate a CSV file of counties for a series of postcodes.

Postcode:
Rows of postcodes: (can use * % ? _ wildcards)


UPRNs

Lookup county names for Unique Property Reference Numbers.

UPRN:

Co-ordinates

Lookup county names for places using Ordnance Survey National Grid co-ordinates or grid reference.

Rows of comma- or tab-separated eastings, northings; latitude, longitude; or alphanumeric grid references:

Or choose a CSV/TSV file:

HCS definition: A B
Include Ridings, Parts, &c.
Ignore first row.
Ignore first field.

Generate:

Counties

Generate a list of postcodes or UPRNs for a given county.

County: Generate CSV

Downloads

Download a database or CSV file of every postcode, county and grid reference.

Show county populations.

County borders for GIS

These border datasets conform to the Historic Counties Standard (HCS). The HCS Definition A datasets treat detached parts of counties as part of their host county, whereas the HCS Definition B datasets include them separately.

The full-resolution polygons are suitable for 1:5,000-scale applications. The simplified sets are usable at scales greater than 1:50,000. A set of border lines is also available, for applications where a coastline is provided separately.

The data are available in ESRI Shapefile (SHP) format, in both OSGB and WGS84 spatial reference systems, and also in KML/KMZ format.

Last updated on 25 Apr 2024.

HCS Definition A

Great Britain & Ireland
Full-resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
44.78 MB
WGS84 SHP
47.05 MB
KMZ
52.02 MB
OSGB SHP
5.92 MB
WGS84 SHP
5.76 MB
KMZ
6.35 MB
WGS84 SHP
7.22 MB
United Kingdom
Full-resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
32.63 MB
WGS84 SHP
35.62 MB
KMZ
39.56 MB
OSGB SHP
4.33 MB
WGS84 SHP
4.29 MB
KMZ
4.74 MB
WGS84 SHP
6.12 MB
Great Britain
Full-resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
30.95 MB
WGS84 SHP
34.02 MB
KMZ
37.75 MB
OSGB SHP
4.12 MB
WGS84 SHP
4.1 MB
KMZ
4.53 MB
WGS84 SHP
5.95 MB

HCS Definition B

Great Britain & Ireland
Full-resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
46.27 MB
WGS84 SHP
48.54 MB
KMZ
53.66 MB
OSGB SHP
6.14 MB
WGS84 SHP
5.98 MB
KMZ
6.59 MB
WGS84 SHP
7.96 MB
United Kingdom
Full-resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
34 MB
WGS84 SHP
37 MB
KMZ
41.08 MB
OSGB SHP
4.52 MB
WGS84 SHP
4.49 MB
KMZ
4.96 MB
WGS84 SHP
6.81 MB
Great Britain
Full-resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
32.32 MB
WGS84 SHP
35.39 MB
KMZ
39.26 MB
OSGB SHP
4.31 MB
WGS84 SHP
4.29 MB
KMZ
4.74 MB
WGS84 SHP
6.63 MB

Hundreds

Where there is nothing listed in the Definition B column, this is because the county has no detached parts and therefore the data in the Definition A column are suitable for either HCS definition.

CountyDefinition ADefinition B
AngleseyWGS84 SHPKML
BedfordshireWGS84 SHPKMLWGS84 SHPKML
BerkshireWGS84 SHPKMLWGS84 SHPKML
BrecknockshireWGS84 SHPKMLWGS84 SHPKML
BuckinghamshireWGS84 SHPKMLWGS84 SHPKML
CaernarfonshireWGS84 SHPKMLWGS84 SHPKML
CambridgeshireWGS84 SHPKML
CardiganshireWGS84 SHPKML
CarmarthenshireWGS84 SHPKML
CheshireWGS84 SHPKML
CornwallWGS84 SHPKMLWGS84 SHPKML
CumberlandWGS84 SHPKML
DenbighshireWGS84 SHPKMLWGS84 SHPKML
DerbyshireWGS84 SHPKMLWGS84 SHPKML
DevonWGS84 SHPKMLWGS84 SHPKML
DorsetWGS84 SHPKMLWGS84 SHPKML
DurhamWGS84 SHPKMLWGS84 SHPKML
EssexWGS84 SHPKML
FlintshireWGS84 SHPKMLWGS84 SHPKML
GlamorganWGS84 SHPKML
GloucestershireWGS84 SHPKMLWGS84 SHPKML
HampshireWGS84 SHPKMLWGS84 SHPKML
HerefordshireWGS84 SHPKMLWGS84 SHPKML
HertfordshireWGS84 SHPKMLWGS84 SHPKML
HuntingdonshireWGS84 SHPKMLWGS84 SHPKML
KentWGS84 SHPKML
LancashireWGS84 SHPKMLWGS84 SHPKML
LeicestershireWGS84 SHPKMLWGS84 SHPKML
LincolnshireWGS84 SHPKMLWGS84 SHPKML
MerionethshireWGS84 SHPKMLWGS84 SHPKML
MiddlesexWGS84 SHPKML
MonmouthshireWGS84 SHPKMLWGS84 SHPKML
MontgomeryshireWGS84 SHPKMLWGS84 SHPKML
NorfolkWGS84 SHPKML
NorthamptonshireWGS84 SHPKMLWGS84 SHPKML
NorthumberlandWGS84 SHPKMLWGS84 SHPKML
NottinghamshireWGS84 SHPKMLWGS84 SHPKML
OxfordshireWGS84 SHPKMLWGS84 SHPKML
PembrokeshireWGS84 SHPKML
RadnorshireWGS84 SHPKMLWGS84 SHPKML
RutlandWGS84 SHPKML
ShropshireWGS84 SHPKMLWGS84 SHPKML
SomersetWGS84 SHPKMLWGS84 SHPKML
StaffordshireWGS84 SHPKMLWGS84 SHPKML
SuffolkWGS84 SHPKML
SurreyWGS84 SHPKML
SussexWGS84 SHPKMLWGS84 SHPKML
WarwickshireWGS84 SHPKMLWGS84 SHPKML
WestmorlandWGS84 SHPKMLWGS84 SHPKML
WiltshireWGS84 SHPKMLWGS84 SHPKML
WorcestershireWGS84 SHPKMLWGS84 SHPKML
YorkshireWGS84 SHPKMLWGS84 SHPKML

Others

Download a Shapefile, SVG or KMZ of individual counties.

Download a Shapefile (WGS84) or KML of the Yorkshire ridings (Definition A).

Download a Shapefile (WGS84) or KML of the Yorkshire ridings (Definition B).

Download a Shapefile (WGS84) or KML of the Parts of Lincolnshire (Definition A).

Download a Shapefile (WGS84) or KML of the Parts of Lincolnshire (Definition B).

Download a Shapefile (WGS84) or KML of the Ridings of Lindsey (Definition A).

Download a Shapefile (WGS84) or KML of the Ridings of Lindsey (Definition B).

Download a Shapefile (WGS84) or KML of the Ridings of Tipperary.

Download a Shapefile (WGS84) or KML of the Ridings of Cork (Definition A).

Download a Shapefile (WGS84) or KML of the Ridings of Cork (Definition B).

Download a Shapefile (WGS84) or KML of the Rapes of Sussex (Definition A).

Download a Shapefile (WGS84) or KML of the Rapes of Sussex (Definition B).

Download a Shapefile (WGS84) or KML of the Lathes of Kent.

Download a Shapefile (WGS84) or KML of the Districts of Ayrshire.

Download a Shapefile (WGS84) or KML of the Districts of Dumfriesshire.

Download a Shapefile (WGS84) or KML of the Districts of Fife (Definition A).

Download a Shapefile (WGS84) or KML of the Districts of Fife (Definition B).

Download a Shapefile (WGS84) or KML of the Wards of Lanarkshire.

Download a Shapefile (WGS84) or KML of the Wards of Renfrewshire.

Download a Shapefile (WGS84) or KML of the Districts of Roxburghshire (Definition A).

Download a Shapefile (WGS84) or KML of the Districts of Roxburghshire (Definition B).

Download a Shapefile (WGS84) or KML of the Sheadings of the Isle of Man.


SVG maps

These SVG maps are generated at a nominal horizonal resoluton of 1,000 pixels.

HCS Definition A

HCS Definition B


Contains border data provided by the Historic County Borders Project © Historic Counties Trust.
May contain Ordnance Survey data © Crown credit and database right 2014–18.
May contain public sector information licensed under the Northern Ireland Open Government Licence.
May contain public sector information licensed under the Isle of Man Open Government Licence.
May contain Ordnance Survey Ireland data licensed under the Creative Commons 4.0 Licence.