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. A complete file of all postcodes can be found in the Downloads section.

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 20 Nov 2024.

HCS Definition A

Great Britain & Ireland
Full-resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
52.6 MB
WGS84 SHP
51.61 MB
KMZ
57.11 MB
OSGB SHP
6.67 MB
WGS84 SHP
6.37 MB
KMZ
7.02 MB
WGS84 SHP
7.36 MB
United Kingdom
Full-resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
40.44 MB
WGS84 SHP
40.17 MB
KMZ
44.63 MB
OSGB SHP
5.08 MB
WGS84 SHP
4.91 MB
KMZ
5.43 MB
WGS84 SHP
6.25 MB
Great Britain
Full-resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
38.76 MB
WGS84 SHP
38.56 MB
KMZ
42.82 MB
OSGB SHP
4.87 MB
WGS84 SHP
4.72 MB
KMZ
5.21 MB
WGS84 SHP
6.08 MB

HCS Definition B

Great Britain & Ireland
Full-resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
54.05 MB
WGS84 SHP
53.06 MB
KMZ
58.69 MB
OSGB SHP
6.91 MB
WGS84 SHP
6.59 MB
KMZ
7.26 MB
WGS84 SHP
8.11 MB
United Kingdom
Full-resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
41.76 MB
WGS84 SHP
41.51 MB
KMZ
46.09 MB
OSGB SHP
5.29 MB
WGS84 SHP
5.11 MB
KMZ
5.65 MB
WGS84 SHP
6.95 MB
Great Britain
Full-resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
40.07 MB
WGS84 SHP
39.89 MB
KMZ
44.28 MB
OSGB SHP
5.08 MB
WGS84 SHP
4.92 MB
KMZ
5.43 MB
WGS84 SHP
6.77 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.