21
Mar
2009
14
UK Postal Counties List
On a recent project, we were required to create a drop down list to display the UK’s counties as part of a web form collecting users addresses. We assumed that this would be a pretty standard task and that there would be an abundance of pre-configured lists available on the Internet for download. After about an hour of research, it became clear that it was not going to be that simple. All of the lists we unearthed were either incomplete or out of date and it seems that we were not the first developers to run into this trouble.
You can see how it is easy to get it wrong though, take a look at the Wikipedia list of UK counties. The list of counties has changed quite considerably over time, especially in Wales.
As we were only interested in postal addresses for the web form, we decided it would be quicker and easier to compile our own list using the postal county data in this Wikipedia article. So here is a zipped file containing the HTML list as well as a XML list we created of the current UK postal counties. We hope this helps you out in some way. It may be worth just keeping these lists on file somewhere, you never know when you may need them.
UKCounties.zip 1.55kb

14 Responses to “UK Postal Counties List”
Comments
March 25th, 2009 at 10:10 am
hi there Ian
Interesting article, we had a similar situation at work with a list of countries, which admittedly can change more often than counties.
Very kind of you to upload the list, and I look forward to further tutorials from you!
all the best
Stuart
May 18th, 2009 at 1:20 pm
Hi,
what about uk *postal codes* for that counties?
May 18th, 2009 at 1:45 pm
Hi oriol,
Unfortunately not, by this may be of assistance: http://jamazon.co.uk/web/2008/07/24/full-uk-postcode-database-for-free/.
Thanks!
October 23rd, 2009 at 12:17 pm
Hello Ian, thanks for the list and for sharing. Very useful.
Mike
November 29th, 2009 at 3:55 pm
Avon no longer exists!!!
January 9th, 2010 at 10:41 am
I’m not sure the listing for Wales are correct..
Pembrokeshire?
January 10th, 2010 at 7:56 pm
Hi Sean,
I have listed the postal counties, not the actual geographical counties as it is probably more useful when creating address forms. Take a look at the Wikipedia article.
Thanks,
Ian
January 30th, 2011 at 12:14 pm
Many thanks for the list
September 12th, 2011 at 9:01 am
Great List.
Saved me hours of research.
I’ve Cut/Pasted and formatted it into Excel 2003 / 2007 if anyone wants it?
September 27th, 2011 at 2:39 pm
Yes please Kevin, that would be really helpful!
nick.harvey@seafarers-uk.org
October 31st, 2011 at 10:34 am
Hi Kevin,
Could you also send me the excell version please. Thank you in advance. sadik.ibrahim@hotmail.com
November 7th, 2011 at 2:58 pm
Hello Kevin,
May I also have the excel version of the postal codes please? Many thanks.
moleena@hotmail.com
December 19th, 2011 at 8:31 pm
Kevin,
Many thanks for publishing this, much appreciated.
I will add you to the links page of the site I’ve created.
January 12th, 2012 at 10:46 pm
thanks – just saved me a lot of work!