ONS coding system
The ONS coding system was a hierarchical code used in the United Kingdom for tabulating census and other statistical data. ONS refers to the Office for National Statistics.
It was replaced by the GSS coding system on 1 January 2011.
Code formulation
[edit]Principal authorities
[edit]The code was constructed top down from a four character code representing a unitary authority or two-tier county and district.
00EC | Middlesbrough (unitary) |
or | |
---|---|
12 | Cambridgeshire county |
12UB | Cambridge district |
Electoral wards and output areas
[edit]Local government wards had a two-letter code within their local authority, and census output area an additional four digits within a ward.
12UB | Cambridge district |
12UBGA | Petersfield ward |
12UBGA0001 | Output area: Gwydir Street (north of junction with Hooper St) |
The authority and ward codes were recognised by Eurostat as local administrative unit code levels 1 and 2 within the NUTS system.
Civil parishes
[edit]An overlapping system encoded civil parish areas. Parishes were represented by an additional three digits within their local authority:
12UD | Fenland district |
12UD010 | Tydd St. Giles parish |
List of codes for counties and districts
[edit]The codes for counties and districts were as follows.[1]
Also showing NUTS(3) codes thus: (UKH12)
Greater London
[edit]These codes became active following local government changes in 1986.
00AA (UKI11)
City of London00AB (UKI21)
Barking and Dagenham00AC (UKI23)
Barnet00AD (UKI21)
Bexley00AE (UKI23)
Brent00AF (UKI22)
Bromley00AG (UKI11)
Camden00AH (UKI22)
Croydon00AJ (UKI23)
Ealing00AK (UKI21)
Enfield00AL (UKI21)
Greenwich00AM (UKI12)
Hackney00AN (UKI11)
Hammersmith and Fulham00AP (UKI12)
Haringey00AQ (UKI23)
Harrow00AR (UKI21)
Havering00AS (UKI23)
Hillingdon00AT (UKI23)
Hounslow00AU (UKI12)
Islington00AW (UKI11)
Kensington and Chelsea00AX (UKI22)
Kingston upon Thames00AY (UKI12)
Lambeth00AZ (UKI12)
Lewisham00BA (UKI22)
Merton00BB (UKI12)
Newham00BC (UKI21)
Redbridge00BD (UKI23)
Richmond upon Thames00BE (UKI12)
Southwark00BF (UKI22)
Sutton00BG (UKI12)
Tower Hamlets00BH (UKI21)
Waltham Forest00BJ (UKI11)
Wandsworth00BK (UKI11)
Westminster
Metropolitan counties
[edit]These codes became active following local government changes in 1986.
- Greater Manchester districts
- Merseyside districts
- South Yorkshire districts
- Tyne and Wear districts
00CH (UKC22)
Gateshead00CJ (UKC22)
Newcastle-upon-Tyne00CK (UKC22)
North Tyneside00CL (UKC22)
South Tyneside00CM (UKC23)
Sunderland
- West Midlands districts
00CN (UKG31)
Birmingham00CQ (UKG33)
Coventry00CR (UKG34)
Dudley00CS (UKG34)
Sandwell00CT (UKG32)
Solihull00CU (UKG35)
Walsall00CW (UKG35)
Wolverhampton
- West Yorkshire districts
00CX (UKE41)
Bradford00CY (UKE43)
Calderdale00CZ (UKE43)
Kirklees00DA (UKE42)
Leeds00DB (UKE43)
Wakefield
Non-hierarchical codes for Greater London and metropolitan counties
[edit]1B
Inner London1C
Outer London2A
Greater Manchester2B
Merseyside2C
South Yorkshire2D
Tyne and Wear2E
West Midlands2F
West Yorkshire
Unitary authorities established in the 1990s
[edit]These codes became active following local government changes the 1990s.
- North East England region
00EB (UKC11)
Hartlepool00EC (UKC12)
Middlesbrough00EE (UKC12)
Redcar and Cleveland00EF (UKC11)
Stockton-on-Tees00EH (UKC13)
Darlington
- North West England region
00ET (UKD21)
Halton00EU (UKD21)
Warrington00EX (UKD41)
Blackburn with Darwen00EY (UKD42)
Blackpool
- Yorkshire and the Humber region
00FA (UKE11)
Kingston upon Hull00FB (UKE12)
East Riding of Yorkshire00FC (UKE13)
North East Lincolnshire00FD (UKE13)
North Lincolnshire00FF (UKE21)
York
- East Midlands region
00FK (UKF11)
Derby00FN (UKF21)
Leicester00FP (UKF22)
Rutland00FY (UKF14)
Nottingham
- West Midlands region
00GA (UKG11)
Herefordshire00GF (UKG21)
Telford and Wrekin00GL (UKG23)
Stoke-on-Trent
- South West England region
00HA (UKK12)
Bath and North East Somerset00HB (UKK11)
Bristol00HC (UKK12)
North Somerset00HD (UKK12)
South Gloucestershire00HG (UKK41)
Plymouth00HH (UKK42)
Torbay00HN (UKK21)
Bournemouth00HP (UKK21)
Poole00HX (UKK14)
Swindon
- East of England region
00JA (UKH11)
Peterborough00KA (UKH21)
Luton00KF (UKH31)
Southend-on-Sea00KG (UKH32)
Thurrock
- South East England region
00LC (UKJ41)
Medway00MA (UKJ11)
Bracknell Forest00MB (UKJ11)
West Berkshire00MC (UKJ11)
Reading00MD (UKJ11)
Slough00ME (UKJ11)
Windsor and Maidenhead00MF (UKJ11)
Wokingham00MG (UKJ12)
Milton Keynes00ML (UKJ21)
Brighton and Hove00MR (UKJ31)
Portsmouth00MS (UKJ32)
Southampton00MW (UKJ34)
Isle of Wight
Unitary authorities established in 2009
[edit]These codes became active following local government changes in 2009.
00KB
Bedford00KC
Central Bedfordshire00EQ
Cheshire East00EW
Cheshire West and Chester00HE
Cornwall00HF
Isles of Scilly00EJ
County Durham00EM
Northumberland00GG
Shropshire00HY
Wiltshire
Non-metropolitan counties
[edit]08
Avon09 (UKH22)
Bedfordshire09UB
Luton09UC
Mid Bedfordshire09UD
Bedford09UE
South Bedfordshire
10
Berkshire10UB
Bracknell Forest10UC
Newbury10UD
Reading10UE
Slough10UF
Windsor and Maidenhead10UG
Wokingham
11 (UKJ13)
Buckinghamshire11UB
Aylesbury Vale11UC
Chiltern11UD
Milton Keynes11UE
South Bucks11UF
Wycombe
12 (UKH12)
Cambridgeshire12UB
Cambridge12UC
East Cambridgeshire12UD
Fenland12UE
Huntingdonshire12UF
Peterborough12UG
South Cambridgeshire
13 (UKD22)
Cheshire13UB
Chester13UC
Congleton13UD
Crewe and Nantwich13UE
Ellesmere Port and Neston13UF
Halton13UG
Macclesfield13UH
Vale Royal13UJ
Warrington
14
Cleveland14UB
Hartlepool14UC
Langbaurgh-on-Tees14UD
Middlesbrough14UE
Stockton-on-Tees
15 (UKK30)
Cornwall and Scilly15UB
Caradon15UC
Carrick15UD
Kerrier15UE
North Cornwall15UF
Penwith15UG
Restormel15UH
Isles of Scilly
16
Cumbria16UB (UKD11)
Allerdale16UC (UKD11)
Barrow-in-Furness16UD (UKD12)
Carlisle16UE (UKD11)
Copeland16UF (UKD12)
Eden16UG (UKD12)
South Lakeland
17
Derbyshire17UB (UKF13)
Amber Valley17UC (UKF12)
Bolsover17UD (UKF12)
Chesterfield17UE
Derby17UF (UKF13)
Derbyshire Dales17UG (UKF13)
Erewash17UH (UKF13)
High Peak17UJ (UKF12)
North East Derbyshire17UK (UKF13)
South Derbyshire
18 (UKK43)
Devon18UB
East Devon18UC
Exeter18UD
Mid Devon18UE
North Devon19UF
Plymouth18UG
South Hams18UH
Teignbridge19UJ
Torbay18UK
Torridge18UL
West Devon
19 (UKK22)
Dorset19UB
Bournemouth19UC
Christchurch19UD
East Dorset19UE
North Dorset19UF
Poole19UG
Purbeck19UH
West Dorset19UJ
Weymouth and Portland
20 (UKC14)
County Durham20UB
Chester-le-Street20UC
Darlington20UD
Derwentside20UE
Durham20UF
Easington20UG
Sedgefield20UH
Teesdale20UJ
Wear Valley
21 (UKJ22)
East Sussex22 (UKH33)
Essex22UB
Basildon22UC
Braintree22UD
Brentwood22UE
Castle Point22UF
Chelmsford22UG
Colchester22UH
Epping Forest22UJ
Harlow22UK
Maldon22UL
Rochford22UM
Southend-on-Sea22UN
Tendring22UP
Thurrock22UQ
Uttlesford
23 (UKK13)
Gloucestershire23UB
Cheltenham23UC
Cotswold23UD
Forest of Dean23UE
Gloucester23UF
Stroud23UG
Tewkesbury
24 (UKJ33)
Hampshire24UB
Basingstoke and Deane24UC
East Hampshire24UD
Eastleigh24UE
Fareham24UF
Gosport24UG
Hart24UH
Havant24UJ
New Forest24UK
Portsmouth24UL
Rushmoor24UM
Southampton24UN
Test Valley24UP
Winchester
25
Hereford and Worcester25UB
Bromsgrove25UC
Hereford25UD
Leominster25UE
Malvern Hills25UF
Redditch25UG
South Herefordshire25UH
Worcester25UJ
Wyre Forest25UK
Wychavon
26 (UKH23)
Hertfordshire26UB
Broxbourne26UC
Dacorum26UD
East Hertfordshire26UE
Hertsmere26UF
North Hertfordshire26UG
St Albans26UH
Stevenage26UJ
Three Rivers26UK
Watford26UL
Welwyn Hatfield
27
Humberside27UB
Boothferry27UC
Cleethorpes27UD
East Yorkshire27UE
Beverley27UF
Glanford27UG
Holderness27UH
Great Grimsby27UJ
Kingston upon Hull27UK
Scunthorpe
28
Isle of Wight county28UB
Medina28UC
South Wight
29 (UKJ42)
Kent29UB
Ashford29UC
Canterbury29UD
Dartford29UE
Dover29UF
Gillingham29UG
Gravesham29UH
Maidstone29UJ
Rochester upon Medway29UK
Sevenoaks29UL
Shepway29UM
Swale29UN
Thanet29UP
Tonbridge and Malling29UQ
Tunbridge Wells
30 (UKD43)
Lancashire30UB
Blackburn30UC
Blackpool30UD
Burnley30UE
Chorley30UF
Fylde30UG
Hyndburn30UH
Lancaster30UJ
Pendle30UK
Preston30UL
Ribble Valley30UM
Rossendale30UN
South Ribble30UP
West Lancashire30UQ
Wyre
31 (UKF22)
Leicestershire31UB
Blaby31UC
Charnwood31UD
Harborough31UE
Hinckley and Bosworth31UF
Leicester31UG
Melton31UH
North West Leicestershire31UJ
Oadby and Wigston31UK
Rutland
32 (UKF30)
Lincolnshire32UB
Boston32UC
East Lindsey32UD
Lincoln32UE
North Kesteven32UF
South Holland32UG
South Kesteven32UH
West Lindsey
33 (UKH13)
Norfolk33UB
Breckland33UC
Broadland33UD
Great Yarmouth33UE
King's Lynn and West Norfolk33UF
North Norfolk33UG
Norwich33UH
South Norfolk
34 (UKF23)
Northamptonshire34UB
Corby34UC
Daventry34UD
East Northamptonshire34UE
Kettering34UF
Northampton34UG
South Northamptonshire34UH
Wellingborough
35 (UKC21)
Northumberland35UB
Alnwick35UC
Berwick-upon-Tweed35UD
Blyth Valley35UE
Castle Morpeth35UF
Tynedale35UG
Wansbeck
36 (UKE22)
North Yorkshire36UB
Craven36UC
Hambleton36UD
Harrogate36UE
Richmondshire36UF
Ryedale36UG
Scarborough36UH
Selby36UJ
York
37
Nottinghamshire37UB (UKF15)
Ashfield37UC (UKF15)
Bassetlaw37UD (UKF16)
Broxtowe37UE (UKF16)
Gedling37UF (UKF15)
Mansfield37UG (UKF15)
Newark and Sherwood37UH
Nottingham37UJ (UKF16)
Rushcliffe
38 (UKJ14)
Oxfordshire38UB
Cherwell38UC
Oxford38UD
South Oxfordshire38UE
Vale of White Horse38UF
West Oxfordshire
39 (UKG22)
Shropshire39UB
Bridgnorth39UC
North Shropshire39UD
Oswestry39UE
Shrewsbury and Atcham39UF
South Shropshire39UG
The Wrekin
40 (UKK23)
Somerset40UB
Mendip40UC
Sedgemoor40UD
South Somerset40UE
Taunton Deane40UF
West Somerset
41 (UKG24)
Staffordshire41UB
Cannock Chase41UC
East Staffordshire41UD
Lichfield41UE
Newcastle-under-Lyme41UF
South Staffordshire41UG
Stafford41UH
Staffordshire Moorlands41UJ
Stoke-on-Trent41UK
Tamworth
42 (UKH14)
Suffolk42UB
Babergh42UC
Forest Heath42UD
Ipswich42UE
Mid Suffolk42UF
St. Edmundsbury42UG
Suffolk Coastal42UH
Waveney
43 (UKJ23)
Surrey43UB
Elmbridge43UC
Epsom and Ewell43UD
Guildford43UE
Mole Valley43UF
Reigate and Banstead43UG
Runnymede43UH
Spelthorne43UJ
Surrey Heath43UK
Tandridge43UL
Waverley43UM
Woking
44 (UKG13)
Warwickshire44UB
North Warwickshire44UC
Nuneaton and Bedworth44UD
Rugby44UE
Stratford-on-Avon44UF
Warwick
45 (UKJ24)
West Sussex45UB
Adur45UC
Arun45UD
Chichester45UE
Crawley45UF
Horsham45UG
Mid Sussex45UH
Worthing
46 (UKK15)
Wiltshire46UB
Kennet46UC
North Wiltshire46UD
Salisbury46UE
Thamesdown46UF
West Wiltshire
47 (UKG12)
Worcestershire47UB
Bromsgrove47UC
Malvern Hills47UD
Redditch47UE
Worcester47UF
Wychavon47UG
Wyre Forest
Wales
[edit]These codes became active following local government changes in 1996.
00NA (UKL11)
Isle of Anglesey00NC (UKL12)
Gwynedd00NE (UKL13)
Conwy00NG (UKL13)
Denbighshire00NJ (UKL23)
Flintshire00NL (UKL23)
Wrexham00NN (UKL24)
Powys00NQ (UKL14)
Ceredigion00NS (UKL14)
Pembrokeshire00NU (UKL14)
Carmarthenshire00NX (UKL18)
Swansea00NZ (UKL17)
Neath Port Talbot00PB (UKL17)
Bridgend00PD (UKL22)
Vale of Glamorgan00PF (UKL15)
Rhondda Cynon Taff00PH (UKL15)
Merthyr Tydfil00PK (UKL16)
Caerphilly00PL (UKL16)
Blaenau Gwent00PM (UKL16)
Torfaen00PP (UKL21)
Monmouthshire00PR (UKL21)
Newport00PT (UKL22)
Cardiff
Scotland
[edit]These codes became active following local government changes in 1996.
00QA (UKM10)
Aberdeen00QB (UKM10)
Aberdeenshire00QC (UKM21)
Angus00QD (UKM31/43)
Argyll and Bute00QE (UKM24)
Scottish Borders00QF (UKM22)
Clackmannanshire00QG (UKM31)
West Dunbartonshire00QH (UKM32)
Dumfries and Galloway00QJ (UKM21)
Dundee00QK (UKM33)
East Ayrshire00QL (UKM31)
East Dunbartonshire00QM (UKM23)
East Lothian00QN (UKM35)
East Renfrewshire00QP (UKM25)
Edinburgh00QQ (UKM26)
Falkirk00QR (UKM22)
Fife00QS (UKM34)
Glasgow00QT (UKM41/42/43)
Highland00QU (UKM35)
Inverclyde00QW (UKM23)
Midlothian00QX (UKM10/42)
Moray00QY (UKM33/43)
North Ayrshire00QZ (UKM36)
North Lanarkshire00RA (UKM45)
Orkney Islands00RB (UKM27)
Perth and Kinross00RC (UKM35)
Renfrewshire00RD (UKM46)
Shetland Islands00RE (UKM37)
South Ayrshire00RF (UKM38)
South Lanarkshire00RG (UKM27)
Stirling00RH (UKM28)
West Lothian00RJ (UKM44)
Eilean Siar (Western Isles)
Northern Ireland
[edit]95A (UKN04)
Derry95B (UKN04)
Limavady95C (UKN04)
Coleraine95D (UKN04)
Ballymoney95E (UKN04)
Moyle95F (UKN03)
Larne95G (UKN03)
Ballymena95H (UKN05)
Magherafelt95I (UKN05)
Cookstown95J (UKN04)
Strabane95K (UKN05)
Omagh95L (UKN05)
Fermanagh95M (UKN05)
Dungannon and South Tyrone95N (UKN03)
Craigavon95O (UKN05)
Armagh95P (UKN05)
Newry and Mourne95Q (UKN03)
Banbridge95R (UKN03)
Down95S (UKN02)
Lisburn95T (UKN03)
Antrim95U (UKN02)
Newtownabbey95V (UKN02)
Carrickfergus95W (UKN02)
North Down95X (UKN03)
Ards95Y (UKN02)
Castlereagh95Z (UKN01)
Belfast
References
[edit]- ^ "District Names and Codes for England and Wales as at 31/12/1994". statistics.gov.uk. Archived from the original on 4 June 2011. Retrieved 4 November 2023.