Skip Navigation

UK Counties Select Box

This counties select list was last updated on the 8th March 2007, and should be accurate for that date (and I should imagine, far beyond). If you spot any inaccuracies, please let me know.

The English counties were updated in 2008 to use the list of ceremonial counties as defined by the Lieutenancies Act 1997 (Wikipedia has more info on counties).

Listed and grouped by Region

  1. <select name="county">
  2. <optgroup label="England">
  3. <option>Bedfordshire</option>
  4. <option>Berkshire</option>
  5. <option>Bristol</option>
  6. <option>Buckinghamshire</option>
  7. <option>Cambridgeshire</option>
  8. <option>Cheshire</option>
  9. <option>City of London</option>
  10. <option>Cornwall</option>
  11. <option>Cumbria</option>
  12. <option>Derbyshire</option>
  13. <option>Devon</option>
  14. <option>Dorset</option>
  15. <option>Durham</option>
  16. <option>East Riding of Yorkshire</option>
  17. <option>East Sussex</option>
  18. <option>Essex</option>
  19. <option>Gloucestershire</option>
  20. <option>Greater London</option>
  21. <option>Greater Manchester</option>
  22. <option>Hampshire</option>
  23. <option>Herefordshire</option>
  24. <option>Hertfordshire</option>
  25. <option>Isle of Wight</option>
  26. <option>Kent</option>
  27. <option>Lancashire</option>
  28. <option>Leicestershire</option>
  29. <option>Lincolnshire</option>
  30. <option>Merseyside</option>
  31. <option>Norfolk</option>
  32. <option>North Yorkshire</option>
  33. <option>Northamptonshire</option>
  34. <option>Northumberland</option>
  35. <option>Nottinghamshire</option>
  36. <option>Oxfordshire</option>
  37. <option>Rutland</option>
  38. <option>Shropshire</option>
  39. <option>Somerset</option>
  40. <option>South Yorkshire</option>
  41. <option>Staffordshire</option>
  42. <option>Suffolk</option>
  43. <option>Surrey</option>
  44. <option>Tyne and Wear</option>
  45. <option>Warwickshire</option>
  46. <option>West Midlands</option>
  47. <option>West Sussex</option>
  48. <option>West Yorkshire</option>
  49. <option>Wiltshire</option>
  50. <option>Worcestershire</option>
  51. </optgroup>
  52. <optgroup label="Wales">
  53. <option>Anglesey</option>
  54. <option>Brecknockshire</option>
  55. <option>Caernarfonshire</option>
  56. <option>Carmarthenshire</option>
  57. <option>Cardiganshire</option>
  58. <option>Denbighshire</option>
  59. <option>Flintshire</option>
  60. <option>Glamorgan</option>
  61. <option>Merioneth</option>
  62. <option>Monmouthshire</option>
  63. <option>Montgomeryshire</option>
  64. <option>Pembrokeshire</option>
  65. <option>Radnorshire</option>
  66. </optgroup>
  67. <optgroup label="Scotland">
  68. <option>Aberdeenshire</option>
  69. <option>Angus</option>
  70. <option>Argyllshire</option>
  71. <option>Ayrshire</option>
  72. <option>Banffshire</option>
  73. <option>Berwickshire</option>
  74. <option>Buteshire</option>
  75. <option>Cromartyshire</option>
  76. <option>Caithness</option>
  77. <option>Clackmannanshire</option>
  78. <option>Dumfriesshire</option>
  79. <option>Dunbartonshire</option>
  80. <option>East Lothian</option>
  81. <option>Fife</option>
  82. <option>Inverness-shire</option>
  83. <option>Kincardineshire</option>
  84. <option>Kinross</option>
  85. <option>Kirkcudbrightshire</option>
  86. <option>Lanarkshire</option>
  87. <option>Midlothian</option>
  88. <option>Morayshire</option>
  89. <option>Nairnshire</option>
  90. <option>Orkney</option>
  91. <option>Peeblesshire</option>
  92. <option>Perthshire</option>
  93. <option>Renfrewshire</option>
  94. <option>Ross-shire</option>
  95. <option>Roxburghshire</option>
  96. <option>Selkirkshire</option>
  97. <option>Shetland</option>
  98. <option>Stirlingshire</option>
  99. <option>Sutherland</option>
  100. <option>West Lothian</option>
  101. <option>Wigtownshire</option>
  102. </optgroup>
  103. <optgroup label="Northern Ireland">
  104. <option>Antrim</option>
  105. <option>Armagh</option>
  106. <option>Down</option>
  107. <option>Fermanagh</option>
  108. <option>Londonderry</option>
  109. <option>Tyrone</option>
  110. </optgroup>
  111. </select>

This list was compiled from a variety of sources, both online and offline, and no guarantee is made as to its accuracy. Please report any mistakes to dave@addedbytes.com.

27 comments

 United Kingdom #1: June 24, 2005
That is very useful!
 United Kingdom #2: November 7, 2005
Thanks, just used it !!! Saved me a lot of work. Thank you very much sir
TimC
United Kingdom #3: December 8, 2005
Cheers, saved me a lot of time.
CoolBlue
United Kingdom #4: December 9, 2005
This list does not have the new counties, eg West Midlands.
 United Kingdom #5: January 17, 2006
;) shouldnt tyne and wear be in there somewhere?
i see merseyside is missing too
Keith, UK
United Kingdom #7: April 11, 2006
London ?
I think The Channel Islands, Isle of Man and Isle of Wight are in the UK too.
 United Kingdom #9: August 12, 2006
Channel Islands, Isle of Man are definitely NOT in the UK. However the Isle of Wright is as part of Hampshire.

The UK means the United Kingdom of Great Britain and Northern Ireland.
 United Kingdom #10: August 12, 2006
PS: Great Britain comprises England, Scotland and Wales.

The Channel Islands has two primarily local governments in Jersey and in Guernsey. The Isle of Mann has its own local government too.

All three separate legal jurisdictions claim to be independent of the UK but, in reality, they do whatever the UK's government in London requires. The Jersey and Guernsey "countries" are associate members of the EU and part of the EEA (European Economic Area).

All have their own money and laws, similar to Scotland in many respects, but are nevertheless tightly integrated in to the UK's structure, for example with police, customs, telephone codes, telex codes, immigration policies, foreign affairs, defence, security service (MI5), airport designation codes (ICAO examples EGJJ, EGJB and EGNS) but not Internet country codes or driver and vehicle licensing.

Its a fascinating topic.
Simon
United Kingdom #11: August 20, 2006
Sussex is actually split up into East Sussex and West Sussex
 United Kingdom #12: November 3, 2006
this list is 34 years out of date. it's pre 1972 when the boundries changed.
 United Kingdom #13: June 29, 2007
Paul (#9):

The Isle of Wight is not a part of Hampshire, but a county in its own right.
Josh
Unknown #14: July 4, 2007
MySQL to create table with this same info in it. Hope it's of use.

DROP TABLE IF EXISTS `g_counties`;

CREATE TABLE `g_counties` (
`county_id` int(9) unsigned NOT NULL auto_increment,
`country_id` int(9) unsigned NOT NULL,
`group_name` varchar(125) default NULL,
`county_name` varchar(125) default NULL,
PRIMARY KEY (`county_id`),
KEY `p_id` (`county_id`),
KEY `s_id` (`country_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

INSERT INTO g_counties VALUES
('', '', 'England', 'Bedfordshire'),
('', '', 'England', 'Bedfordshire'),
('', '', 'England', 'Berkshire'),
('', '', 'England', 'Buckinghamshire'),
('', '', 'England', 'Cambridgeshire'),
('', '', 'England', 'Cheshire'),
('', '', 'England', 'Cornwall'),
('', '', 'England', 'Cumberland'),
('', '', 'England', 'Derbyshire'),
('', '', 'England', 'Devon'),
('', '', 'England', 'Dorset'),
('', '', 'England', 'Durham'),
('', '', 'England', 'Essex'),
('', '', 'England', 'Gloucestershire'),
('', '', 'England', 'Hampshire'),
('', '', 'England', 'Herefordshire'),
('', '', 'England', 'Hertfordshire'),
('', '', 'England', 'Huntingdonshire'),
('', '', 'England', 'Kent'),
('', '', 'England', 'Lancashire'),
('', '', 'England', 'Leicestershire'),
('', '', 'England', 'Lincolnshire'),
('', '', 'England', 'Middlesex'),
('', '', 'England', 'Norfolk'),
('', '', 'England', 'Northamptonshire'),
('', '', 'England', 'Northumberland'),
('', '', 'England', 'Nottinghamshire'),
('', '', 'England', 'Oxfordshire'),
('', '', 'England', 'Rutland'),
('', '', 'England', 'Shropshire'),
('', '', 'England', 'Somerset'),
('', '', 'England', 'Staffordshire'),
('', '', 'England', 'Suffolk'),
('', '', 'England', 'Surrey'),
('', '', 'England', 'Sussex'),
('', '', 'England', 'Warwickshire'),
('', '', 'England', 'Westmorland'),
('', '', 'England', 'Wiltshire'),
('', '', 'England', 'Worcestershire'),
('', '', 'England', 'Yorkshire');

INSERT INTO g_counties VALUES
('', '', 'Wales', 'Anglesey'),
('', '', 'Wales', 'Brecknockshire'),
('', '', 'Wales', 'Caernarfonshire'),
('', '', 'Wales', 'Carmarthenshire'),
('', '', 'Wales', 'Cardiganshire'),
('', '', 'Wales', 'Denbighshire'),
('', '', 'Wales', 'Flintshire'),
('', '', 'Wales', 'Glamorgan'),
('', '', 'Wales', 'Merioneth'),
('', '', 'Wales', 'Monmouthshire'),
('', '', 'Wales', 'Montgomeryshire'),
('', '', 'Wales', 'Pembrokeshire'),
('', '', 'Wales', 'Radnorshire');

INSERT INTO g_counties VALUES
('', '', 'Scotland', 'Aberdeenshire'),
('', '', 'Scotland', 'Angus'),
('', '', 'Scotland', 'Argyllshire'),
('', '', 'Scotland', 'Ayrshire'),
('', '', 'Scotland', 'Banffshire'),
('', '', 'Scotland', 'Berwickshire'),
('', '', 'Scotland', 'Buteshire'),
('', '', 'Scotland', 'Cromartyshire'),
('', '', 'Scotland', 'Caithness'),
('', '', 'Scotland', 'Clackmannanshire'),
('', '', 'Scotland', 'Dumfriesshire'),
('', '', 'Scotland', 'Dunbartonshire'),
('', '', 'Scotland', 'East Lothian'),
('', '', 'Scotland', 'Fife'),
('', '', 'Scotland', 'Inverness-shire'),
('', '', 'Scotland', 'Kincardineshire'),
('', '', 'Scotland', 'Kinross'),
('', '', 'Scotland', 'Kirkcudbrightshire'),
('', '', 'Scotland', 'Lanarkshire'),
('', '', 'Scotland', 'Midlothian'),
('', '', 'Scotland', 'Morayshire'),
('', '', 'Scotland', 'Nairnshire'),
('', '', 'Scotland', 'Orkney'),
('', '', 'Scotland', 'Peeblesshire'),
('', '', 'Scotland', 'Perthshire'),
('', '', 'Scotland', 'Renfrewshire'),
('', '', 'Scotland', 'Ross-shire'),
('', '', 'Scotland', 'Roxburghshire'),
('', '', 'Scotland', 'Selkirkshire'),
('', '', 'Scotland', 'Shetland'),
('', '', 'Scotland', 'Stirlingshire'),
('', '', 'Scotland', 'Sutherland'),
('', '', 'Scotland', 'West Lothian'),
('', '', 'Scotland', 'Wigtownshire');

INSERT INTO g_counties VALUES
('', '', 'Northern Ireland', 'Antrim'),
('', '', 'Northern Ireland', 'Armagh'),
('', '', 'Northern Ireland', 'Down'),
('', '', 'Northern Ireland', 'Fermanagh'),
('', '', 'Northern Ireland', 'Londonderry'),
('', '', 'Northern Ireland', 'Tyrone');
Steve
United Kingdom #15: July 9, 2007
Thanks for the MySQL data. Bedfordshire is in there twice though.

Steve
i like the way you all start bitching over something that is free.
A fantastic bit of free information:

This took some time and is incredibly useful. Thank you very, very much.

Aled :)
An invaluable and fantastic resource for all our combo box needs! I recommended this to all my students!
Here is a php version using a foreach loop

<?php
echo "<select name=\"ud_county\">";

// foreach example - loop through each entry in an array
$ukcounties = array("Aberdeenshire"," Anglesey"," Angus"," Antrim"," Argyllshire"," Armagh"," Ayrshire"," Banffshire"," Bedfordshire"," Berkshire"," Berwickshire"," Brecknockshire"," Buckinghamshire"," Buteshire"," Caernarfonshire"," Caithness"," Cambridgeshire"," Cardiganshire"," Carmarthenshire"," Cheshire"," Clackmannanshire"," Cornwall"," Cromartyshire"," Cumberland"," Denbighshire"," Derbyshire"," Devon"," Dorset"," Down"," Dumfriesshire"," Dunbartonshire"," Durham"," East Lothian"," Essex"," Fermanagh"," Fife"," Flintshire"," Glamorgan"," Gloucestershire"," Hampshire"," Herefordshire"," Hertfordshire"," Huntingdonshire"," Inverness-shire"," Kent"," Kincardineshire"," Kinross"," Kirkcudbrightshire"," Lanarkshire"," Lancashire"," Leicestershire"," Lincolnshire"," Londonderry"," Merioneth"," Middlesex"," Midlothian"," Monmouthshire"," Montgomeryshire"," Morayshire"," Nairnshire"," Norfolk"," Northamptonshire"," Northumberland"," Nottinghamshire"," Orkney"," Oxfordshire"," Pembrokeshire"," Peeblesshire"," Perthshire"," Radnorshire"," Renfrewshire"," Ross-shire"," Roxburghshire"," Rutland"," Selkirkshire"," Shetland"," Shropshire"," Somerset"," Staffordshire"," Stirlingshire"," Suffolk"," Surrey"," Sussex"," Sutherland"," Tyrone"," Warwickshire"," West Lothian"," Westmorland"," Wigtownshire"," Wiltshire"," Worcestershire"," Yorkshire");
foreach ( $ukcounties AS $elements )
{
print "<option value=\". $elements .\">". $elements ."</option>;/n";
}
echo "</select>";
?>
Defining what should be in a list of counties these days is not straightforward. Administratively, most large conurbations do not have a county level. For example, Nottingham is a unitary authority that is not, administratively, within Nottinghamshire. Probably the most useful definition to use, in England at least, is the ceremonial counties.

This list appears to be a pre 1974 list of counties. For example, Westmorland hasn't existed since 1974 and Yorkshire was split into four then. Huntingdonshire is no longer a county (Huntingdon is a district within Cambridgeshire), and I'm not sure it has been since 1965.

The list's biggest problem is that the areas missing from it tend to be those in which the population is concentrated, so a lot of people will be unable to find something to match themselves. Greater London, West Midlands, Merseyside, Greater Manchester, Tyne and Wear and Bristol for example.
Nathan H
United States #21: February 23, 2008
All all versions "Tyne & Wear" is missing.
Thought i'd let you all know for future reference.

The county does exist I have lived there for 30 years!!!!

A great list none the less, thank you

<---------------------

(Don't know why my location on the Left states USA i'm in the UK?
I've updated the list to use a more recent list of English counties (as defined by the Lieutenancies Act 1997, which would seem to be appropriate). Some of the missing ones above are now in the list, and others, it seems, should not be. Anyway, at least London is now listed properly!
Evans
Unknown #23: June 1, 2008
Thanks Adrian for the script, running your script produced something like this when the HTML page source is viewed:

<select name="ud_county"><option value=". Aberdeenshire .">Aberdeenshire</option>;/n<option value=". Anglesey .">

Notice the . before and after the values?

So, I've modified it to remove the dots and properly format the output:

<?php
echo "<select name=\"ud_county\">\n";

// foreach example - loop through each entry in an array
$ukcounties = array("Aberdeenshire","Anglesey","Angus","Antrim",
"Argyllshire","Armagh","Ayrshire","Banffshire",
"Bedfordshire","Berkshire","Berwickshire","Brecknockshire",
"Buckinghamshire","Buteshire","Caernarfonshire",
"Caithness","Cambridgeshire","Cardiganshire",
"Carmarthenshire","Cheshire","Clackmannanshire",
"Cornwall","Cromartyshire","Cumberland",
"Denbighshire","Derbyshire","Devon","Dorset","Down",
"Dumfriesshire","Dunbartonshire","Durham","East Lothian","Essex","Fermanagh","Fife","Flintshire",
"Glamorgan","Gloucestershire","Hampshire",
"Herefordshire","Hertfordshire","Huntingdonshire",
"Inverness-shire","Kent","Kincardineshire","Kinross",
"Kirkcudbrightshire","Lanarkshire","Lancashire",
"Leicestershire","Lincolnshire","Londonderry",
"Merioneth","Middlesex","Midlothian","Monmouthshire",
"Montgomeryshire","Morayshire","Nairnshire","Norfolk",
"Northamptonshire","Northumberland",
"Nottinghamshire","Orkney","Oxfordshire",
"Pembrokeshire","Peeblesshire","Perthshire",
"Radnorshire","Renfrewshire","Ross-shire",
"Roxburghshire","Rutland","Selkirkshire","Shetland",
"Shropshire","Somerset","Staffordshire","Stirlingshire",
"Suffolk","Surrey","Sussex","Sutherland","Tyrone",
"Warwickshire","West Lothian","Westmorland","Wigtownshire","Wiltshire",
"Worcestershire","Yorkshire");
foreach ( $ukcounties AS $elements )
{
print "<option value=\"$elements\">". $elements ."</option>;\n";
}
echo "</select>";
?>

Thanks guys,
Nice job.
Thanks for the code, it will come in handy someday.
Cheers
How lucky am I to find this page! I was just looking for something similar for a directory of self catering and bed and breakfast property that I am working on, and was getting confused with all the different lists I was finding. This one - the updated version seems to be the most accurate I list have found.
 United Kingdom #26: October 26, 2008
I am VERY grateful for this code. I DO appreciate all free stuff, after all it takes time and effort to do this stuff. I don't mean to bring any negative comments here, just to add some input. I live in Bristol, used to be in the county of Avon, now it's called the county of Bristol. Neither of which is in the above code, maybe tis a full time job keeping abreast of all the changing county lines across the UK. Thanks for the code though.
Thanks for this, saved me alot of time!

Post Your Comment

· Comments with keywords instead of a name have their URLs removed.
· Your email address will not be displayed or shared.

Live Comment Preview

 United States #28: 1 minute ago