Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GB ISO Codes <-> Postcodes.io
{
"Buckinghamshire": "GB-BKM",
"Cambridgeshire": "GB-CAM",
"Cumbria": "GB-CMA",
"Derbyshire": "GB-DBY",
"Devon": "GB-DEV",
"Dorset": "GB-DOR",
"East Sussex": "GB-ESX",
"Essex": "GB-ESS",
"Gloucestershire": "GB-GLS",
"Hampshire": "GB-HAM",
"Hertfordshire": "GB-HRT",
"Kent": "GB-KEN",
"Lancashire": "GB-LAN",
"Leicester": "GB-LCE",
"Lincolnshire": "GB-LIN",
"Norfolk": "GB-NFK",
"Northamptonshire": "GB-NTH",
"North Yorkshire": "GB-NYK",
"Nottinghamshire": "GB-NTT",
"Oxfordshire": "GB-OXF",
"Somerset": "GB-SOM",
"Staffordshire": "GB-STS",
"Suffolk": "GB-SFK",
"Surrey": "GB-SRY",
"Warwickshire": "GB-WAR",
"West Sussex": "GB-WSX",
"Worcestershire": "GB-WOR"
}
{
"Aberdeen City": "GB-ABE",
"Aberdeenshire": "GB-ABD",
"Angus": "GB-ANS",
"Antrim and Newtownabbey": "GB-ANN",
"Ards and North Down": "GB-AND",
"Argyll and Bute": "GB-AGB",
"Armagh City, Banbridge and Craigavon": "GB-ABC",
"Barking and Dagenham": "GB-BDG",
"Barnet": "GB-BNE",
"Barnsley": "GB-BNS",
"Bath and North East Somerset": "GB-BAS",
"Bedford": "GB-BDF",
"Belfast": "GB-BFS",
"Bexley": "GB-BEX",
"Birmingham": "GB-BIR",
"Blackburn with Darwen": "GB-BBD",
"Blackpool": "GB-BPL",
"Blaenau Gwent": "GB-BGW",
"Bolton": "GB-BOL",
"Bournemouth": "GB-BMH",
"Bournemouth, Christchurch and Poole": "BG-BMH",
"Bracknell Forest": "GB-BRC",
"Bradford": "GB-BRD",
"Brent": "GB-BEN",
"Bridgend": "GB-BGE",
"Brighton and Hove": "GB-BNH",
"Bristol, City of": "GB-BST",
"Bromley": "GB-BRY",
"Bury": "GB-BUR",
"Caerphilly": "GB-CAY",
"Calderdale": "GB-CLD",
"Camden": "GB-CMD",
"Cardiff": "GB-CRF",
"Carmarthenshire": "GB-CMN",
"Causeway Coast and Glens": "GB-CCG",
"Central Bedfordshire": "GB-CBF",
"Ceredigion": "GB-CGN",
"Cheshire East": "GB-CHE",
"Cheshire West and Chester": "GB-CHW",
"Clackmannanshire": "GB-CLK",
"Conwy": "GB-CWY",
"Cornwall": "GB-CON",
"Coventry": "GB-COV",
"Croydon": "GB-CRY",
"Darlington": "GB-DAL",
"Denbighshire": "GB-DEN",
"Derby": "GB-DER",
"Derry City and Strabane": "GB-DRS",
"Doncaster": "GB-DNC",
"Dudley": "GB-DUD",
"Dumfries and Galloway": "GB-DGY",
"Dundee City": "GB-DND",
"County Durham": "GB-DUR",
"Ealing": "GB-EAL",
"East Ayrshire": "GB-EAY",
"East Dunbartonshire": "GB-EDU",
"East Lothian": "GB-ELN",
"East Renfrewshire": "GB-ERW",
"East Riding of Yorkshire": "GB-ERY",
"City of Edinburgh": "GB-EDH",
"Na h-Eileanan Siar": "GB-ELS",
"Enfield": "GB-ENF",
"Falkirk": "GB-FAL",
"Fermanagh and Omagh": "GB-FMO",
"Fife": "GB-FIF",
"Flintshire": "GB-FLN",
"Gateshead": "GB-GAT",
"Glasgow City": "GB-GLG",
"Greenwich": "GB-GRE",
"Gwynedd": "GB-GWN",
"Hackney": "GB-HCK",
"Halton": "GB-HAL",
"Hammersmith and Fulham": "GB-HMF",
"Haringey": "GB-HRY",
"Harrow": "GB-HRW",
"Hartlepool": "GB-HPL",
"Havering": "GB-HAV",
"Herefordshire": "GB-HEF",
"Highland": "GB-HLD",
"Hillingdon": "GB-HIL",
"Hounslow": "GB-HNS",
"Inverclyde": "GB-IVC",
"Isle of Anglesey": "GB-AGY",
"Isle of Wight": "GB-IOW",
"Isles of Scilly": "GB-IOS",
"Islington": "GB-ISL",
"Kensington and Chelsea": "GB-KEC",
"Kingston upon Hull, City of": "GB-KHL",
"Kingston upon Thames": "GB-KTT",
"Kirklees": "GB-KIR",
"Knowsley": "GB-KWL",
"Lambeth": "GB-LBH",
"Leeds": "GB-LDS",
"Lewisham": "GB-LEW",
"Lisburn and Castlereagh": "GB-LBC",
"Liverpool": "GB-LIV",
"City of London": "GB-LND",
"Luton": "GB-LUT",
"Manchester": "GB-MAN",
"Medway": "GB-MDW",
"Merthyr Tydfil": "GB-MTY",
"Merton": "GB-MRT",
"Mid Ulster": "GB-MUL",
"Mid and East Antrim": "GB-MEA",
"Middlesbrough": "GB-MDB",
"Midlothian": "GB-MLN",
"Milton Keynes": "GB-MIK",
"Monmouthshire": "GB-MON",
"Moray": "GB-MRY",
"Neath Port Talbot": "GB-NTL",
"Newcastle upon Tyne": "GB-NET",
"Newham": "GB-NWM",
"Newport": "GB-NWP",
"Newry, Mourne and Down": "GB-NMD",
"North Ayrshire": "GB-NAY",
"North East Lincolnshire": "GB-NEL",
"North Lanarkshire": "GB-NLK",
"North Lincolnshire": "GB-NLN",
"North Somerset": "GB-NSM",
"North Tyneside": "GB-NTY",
"Northumberland": "GB-NBL",
"Nottingham": "GB-NGM",
"Oldham": "GB-OLD",
"Orkney Islands": "GB-ORK",
"Pembrokeshire": "GB-PEM",
"Perth and Kinross": "GB-PKN",
"Peterborough": "GB-PTE",
"Plymouth": "GB-PLY",
"Poole": "GB-POL",
"Portsmouth": "GB-POR",
"Powys": "GB-POW",
"Reading": "GB-RDG",
"Redbridge": "GB-RDB",
"Redcar and Cleveland": "GB-RCC",
"Renfrewshire": "GB-RFW",
"Rhondda Cynon Taf": "GB-RCT",
"Richmond upon Thames": "GB-RIC",
"Rochdale": "GB-RCH",
"Rotherham": "GB-ROT",
"Rutland": "GB-RUT",
"Salford": "GB-SLF",
"Sandwell": "GB-SAW",
"Scottish Borders": "GB-SCB",
"Sefton": "GB-SFT",
"Sheffield": "GB-SHF",
"Shetland Islands": "GB-ZET",
"Shropshire": "GB-SHR",
"Slough": "GB-SLG",
"Solihull": "GB-SOL",
"South Ayrshire": "GB-SAY",
"South Gloucestershire": "GB-SGC",
"South Lanarkshire": "GB-SLK",
"South Tyneside": "GB-STY",
"Southampton": "GB-STH",
"Southend-on-Sea": "GB-SOS",
"Southwark": "GB-SWK",
"St. Helens": "GB-SHN",
"Stirling": "GB-STG",
"Stockport": "GB-SKP",
"Stockton-on-Tees": "GB-STT",
"Stoke-on-Trent": "GB-STE",
"Sunderland": "GB-SND",
"Sutton": "GB-STN",
"Swansea": "GB-SWA",
"Swindon": "GB-SWD",
"Tameside": "GB-TAM",
"Telford and Wrekin": "GB-TFW",
"Thurrock": "GB-THR",
"Torbay": "GB-TOB",
"Torfaen": "GB-TOF",
"Tower Hamlets": "GB-TWH",
"Trafford": "GB-TRF",
"Vale of Glamorgan": "GB-VGL",
"Wakefield": "GB-WKF",
"Walsall": "GB-WLL",
"Waltham Forest": "GB-WFT",
"Wandsworth": "GB-WND",
"Warrington": "GB-WRT",
"West Berkshire": "GB-WBK",
"West Dunbartonshire": "GB-WDU",
"West Lothian": "GB-WLN",
"Westminster": "GB-WSM",
"Wigan": "GB-WGN",
"Wiltshire": "GB-WIL",
"Windsor and Maidenhead": "GB-WNM",
"Wirral": "GB-WRL",
"Wokingham": "GB-WOK",
"Wolverhampton": "GB-WLV",
"Wrexham": "GB-WRX",
"York": "GB-YOR"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment