Postcode and county lookup tools

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)


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:


Counties

Generate a list of postcodes for a given county.

County: Generate CSV


Downloads

Download a database 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.

Last updated on 15 Jun 2019.

HCS Definition A

Great Britain & Ireland
Full resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
39.73 MB
WGS84 SHP
41.98 MB
KMZ
46.63 MB
OSGB SHP
5.49 MB
WGS84 SHP
5.34 MB
KMZ
5.91 MB
WGS84 SHP
5.62 MB
United Kingdom
Full resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
31.45 MB
WGS84 SHP
34.33 MB
KMZ
38.18 MB
OSGB SHP
4.4 MB
WGS84 SHP
4.37 MB
KMZ
4.83 MB
WGS84 SHP
4.65 MB
Great Britain
Full resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
28.17 MB
WGS84 SHP
31.2 MB
KMZ
34.66 MB
OSGB SHP
3.97 MB
WGS84 SHP
3.95 MB
KMZ
4.36 MB
WGS84 SHP
4.51 MB

HCS Definition B

Great Britain & Ireland
Full resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
40.83 MB
WGS84 SHP
43.08 MB
KMZ
47.84 MB
OSGB SHP
5.68 MB
WGS84 SHP
5.51 MB
KMZ
6.1 MB
WGS84 SHP
6.16 MB
United Kingdom
Full resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
32.45 MB
WGS84 SHP
35.33 MB
KMZ
39.27 MB
OSGB SHP
4.59 MB
WGS84 SHP
4.56 MB
KMZ
5.03 MB
WGS84 SHP
5.1 MB
Great Britain
Full resolution polygonsSimplified polygonsBorder lines only
OSGB SHP
29.17 MB
WGS84 SHP
32.2 MB
KMZ
35.74 MB
OSGB SHP
4.16 MB
WGS84 SHP
4.13 MB
KMZ
4.56 MB
WGS84 SHP
4.96 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
BedfordshireWGS84 SHPKMLWGS84 SHPKML
BerkshireWGS84 SHPKMLWGS84 SHPKML
BrecknockshireWGS84 SHPKMLWGS84 SHPKML
BuckinghamshireWGS84 SHPKMLWGS84 SHPKML
CambridgeshireWGS84 SHPKML
CarmarthenshireWGS84 SHPKML
CheshireWGS84 SHPKML
CornwallWGS84 SHPKMLWGS84 SHPKML
CumberlandWGS84 SHPKML
DenbighshireWGS84 SHPKMLWGS84 SHPKML
DerbyshireWGS84 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
StaffordshireWGS84 SHPKMLWGS84 SHPKML
SuffolkWGS84 SHPKML
SurreyWGS84 SHPKML
SussexWGS84 SHPKMLWGS84 SHPKML
WarwickshireWGS84 SHPKMLWGS84 SHPKML
WestmorlandWGS84 SHPKMLWGS84 SHPKML
WiltshireWGS84 SHPKMLWGS84 SHPKML
WorcestershireWGS84 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.

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.