TheONS coding system was a hierarchical code used in theUnited Kingdom for tabulatingcensus and other statistical data. ONS refers to theOffice for National Statistics.
It was replaced by theGSS coding system on 1 January 2011.
The code was constructed top down from a four character code representing aunitary authority or two-tier county and district.
| 00EC | Middlesbrough (unitary) |
| or | |
|---|---|
| 12 | Cambridgeshire county |
| 12UB | Cambridge district |
Local governmentwards 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 byEurostat aslocal administrative unit code levels 1 and 2 within theNUTS system.
An overlapping system encodedcivil parish areas. Parishes were represented by an additional three digits within their local authority:
| 12UD | Fenland district |
| 12UD010 | Tydd St. Giles parish |
The codes for counties and districts were as follows.[1]
Also showingNUTS(3) codes thus:(UKH12)
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) WestminsterThese codes became active following local government changes in 1986.
00CH (UKC22) Gateshead00CJ (UKC22) Newcastle-upon-Tyne00CK (UKC22) North Tyneside00CL (UKC22) South Tyneside00CM (UKC23) Sunderland00CN (UKG31) Birmingham00CQ (UKG33) Coventry00CR (UKG34) Dudley00CS (UKG34) Sandwell00CT (UKG32) Solihull00CU (UKG35) Walsall00CW (UKG35) Wolverhampton00CX (UKE41) Bradford00CY (UKE43) Calderdale00CZ (UKE43) Kirklees00DA (UKE42) Leeds00DB (UKE43) Wakefield1B Inner London1C Outer London2A Greater Manchester2B Merseyside2C South Yorkshire2D Tyne and Wear2E West Midlands2F West YorkshireThese codes became active following local government changes the 1990s.
00EB (UKC11) Hartlepool00EC (UKC12) Middlesbrough00EE (UKC12) Redcar and Cleveland00EF (UKC11) Stockton-on-Tees00EH (UKC13) Darlington00ET (UKD21) Halton00EU (UKD21) Warrington00EX (UKD41) Blackburn with Darwen00EY (UKD42) Blackpool00FA (UKE11) Kingston upon Hull00FB (UKE12) East Riding of Yorkshire00FC (UKE13) North East Lincolnshire00FD (UKE13) North Lincolnshire00FF (UKE21) York00FK (UKF11) Derby00FN (UKF21) Leicester00FP (UKF22) Rutland00FY (UKF14) Nottingham00GA (UKG11) Herefordshire00GF (UKG21) Telford and Wrekin00GL (UKG23) Stoke-on-Trent00HA (UKK12) Bath and North East Somerset00HB (UKK11) Bristol00HC (UKK12) North Somerset00HD (UKK12) South Gloucestershire00HG (UKK41) Plymouth00HH (UKK42) Torbay00HN (UKK21) Bournemouth00HP (UKK21) Poole00HX (UKK14) Swindon00JA (UKH11) Peterborough00KA (UKH21) Luton00KF (UKH31) Southend-on-Sea00KG (UKH32) Thurrock00LC (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 WightThese 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 Wiltshire08 Avon09 (UKH22) Bedfordshire09UB Luton09UC Mid Bedfordshire09UD Bedford09UE South Bedfordshire10 Berkshire10UB Bracknell Forest10UC Newbury10UD Reading10UE Slough10UF Windsor and Maidenhead10UG Wokingham11 (UKJ13) Buckinghamshire11UB Aylesbury Vale11UC Chiltern11UD Milton Keynes11UE South Bucks11UF Wycombe12 (UKH12) Cambridgeshire12UB Cambridge12UC East Cambridgeshire12UD Fenland12UE Huntingdonshire12UF Peterborough12UG South Cambridgeshire13 (UKD22) Cheshire13UB Chester13UC Congleton13UD Crewe and Nantwich13UE Ellesmere Port and Neston13UF Halton13UG Macclesfield13UH Vale Royal13UJ Warrington14 Cleveland14UB Hartlepool14UC Langbaurgh-on-Tees14UD Middlesbrough14UE Stockton-on-Tees15 (UKK30) Cornwall andScilly15UB Caradon15UC Carrick15UD Kerrier15UE North Cornwall15UF Penwith15UG Restormel15UH Isles of Scilly16 Cumbria16UB (UKD11) Allerdale16UC (UKD11) Barrow-in-Furness16UD (UKD12) Carlisle16UE (UKD11) Copeland16UF (UKD12) Eden16UG (UKD12) South Lakeland17 Derbyshire17UB (UKF13) Amber Valley17UC (UKF12) Bolsover17UD (UKF12) Chesterfield17UE Derby17UF (UKF13) Derbyshire Dales17UG (UKF13) Erewash17UH (UKF13) High Peak17UJ (UKF12) North East Derbyshire17UK (UKF13) South Derbyshire18 (UKK43) Devon18UB East Devon18UC Exeter18UD Mid Devon18UE North Devon19UF Plymouth18UG South Hams18UH Teignbridge19UJ Torbay18UK Torridge18UL West Devon19 (UKK22) Dorset19UB Bournemouth19UC Christchurch19UD East Dorset19UE North Dorset19UF Poole19UG Purbeck19UH West Dorset19UJ Weymouth and Portland20 (UKC14) County Durham20UB Chester-le-Street20UC Darlington20UD Derwentside20UE Durham20UF Easington20UG Sedgefield20UH Teesdale20UJ Wear Valley21 (UKJ22) East Sussex22 (UKH33) Essex22UB Basildon22UC Braintree22UD Brentwood22UE Castle Point22UF Chelmsford22UG Colchester22UH Epping Forest22UJ Harlow22UK Maldon22UL Rochford22UM Southend-on-Sea22UN Tendring22UP Thurrock22UQ Uttlesford23 (UKK13) Gloucestershire23UB Cheltenham23UC Cotswold23UD Forest of Dean23UE Gloucester23UF Stroud23UG Tewkesbury24 (UKJ33) Hampshire24UB Basingstoke and Deane24UC East Hampshire24UD Eastleigh24UE Fareham24UF Gosport24UG Hart24UH Havant24UJ New Forest24UK Portsmouth24UL Rushmoor24UM Southampton24UN Test Valley24UP Winchester25 Hereford and Worcester25UB Bromsgrove25UC Hereford25UD Leominster25UE Malvern Hills25UF Redditch25UG South Herefordshire25UH Worcester25UJ Wyre Forest25UK Wychavon26 (UKH23) Hertfordshire26UB Broxbourne26UC Dacorum26UD East Hertfordshire26UE Hertsmere26UF North Hertfordshire26UG St Albans26UH Stevenage26UJ Three Rivers26UK Watford26UL Welwyn Hatfield27 Humberside27UB Boothferry27UC Cleethorpes27UD East Yorkshire27UE Beverley27UF Glanford27UG Holderness27UH Great Grimsby27UJ Kingston upon Hull27UK Scunthorpe28 Isle of Wight county28UB Medina28UC South Wight29 (UKJ42) Kent29UB Ashford29UC Canterbury29UD Dartford29UE Dover29UF Gillingham29UG Gravesham29UH Maidstone29UJ Rochester upon Medway29UK Sevenoaks29UL Shepway29UM Swale29UN Thanet29UP Tonbridge and Malling29UQ Tunbridge Wells30 (UKD43) Lancashire30UB Blackburn30UC Blackpool30UD Burnley30UE Chorley30UF Fylde30UG Hyndburn30UH Lancaster30UJ Pendle30UK Preston30UL Ribble Valley30UM Rossendale30UN South Ribble30UP West Lancashire30UQ Wyre31 (UKF22) Leicestershire31UB Blaby31UC Charnwood31UD Harborough31UE Hinckley and Bosworth31UF Leicester31UG Melton31UH North West Leicestershire31UJ Oadby and Wigston31UK Rutland32 (UKF30) Lincolnshire32UB Boston32UC East Lindsey32UD Lincoln32UE North Kesteven32UF South Holland32UG South Kesteven32UH West Lindsey33 (UKH13) Norfolk33UB Breckland33UC Broadland33UD Great Yarmouth33UE King's Lynn and West Norfolk33UF North Norfolk33UG Norwich33UH South Norfolk34 (UKF23) Northamptonshire34UB Corby34UC Daventry34UD East Northamptonshire34UE Kettering34UF Northampton34UG South Northamptonshire34UH Wellingborough35 (UKC21) Northumberland35UB Alnwick35UC Berwick-upon-Tweed35UD Blyth Valley35UE Castle Morpeth35UF Tynedale35UG Wansbeck36 (UKE22) North Yorkshire36UB Craven36UC Hambleton36UD Harrogate36UE Richmondshire36UF Ryedale36UG Scarborough36UH Selby36UJ York37 Nottinghamshire37UB (UKF15) Ashfield37UC (UKF15) Bassetlaw37UD (UKF16) Broxtowe37UE (UKF16) Gedling37UF (UKF15) Mansfield37UG (UKF15) Newark and Sherwood37UH Nottingham37UJ (UKF16) Rushcliffe38 (UKJ14) Oxfordshire38UB Cherwell38UC Oxford38UD South Oxfordshire38UE Vale of White Horse38UF West Oxfordshire39 (UKG22) Shropshire39UB Bridgnorth39UC North Shropshire39UD Oswestry39UE Shrewsbury and Atcham39UF South Shropshire39UG The Wrekin40 (UKK23) Somerset40UB Mendip40UC Sedgemoor40UD South Somerset40UE Taunton Deane40UF West Somerset41 (UKG24) Staffordshire41UB Cannock Chase41UC East Staffordshire41UD Lichfield41UE Newcastle-under-Lyme41UF South Staffordshire41UG Stafford41UH Staffordshire Moorlands41UJ Stoke-on-Trent41UK Tamworth42 (UKH14) Suffolk42UB Babergh42UC Forest Heath42UD Ipswich42UE Mid Suffolk42UF St. Edmundsbury42UG Suffolk Coastal42UH Waveney43 (UKJ23) Surrey43UB Elmbridge43UC Epsom and Ewell43UD Guildford43UE Mole Valley43UF Reigate and Banstead43UG Runnymede43UH Spelthorne43UJ Surrey Heath43UK Tandridge43UL Waverley43UM Woking44 (UKG13) Warwickshire44UB North Warwickshire44UC Nuneaton and Bedworth44UD Rugby44UE Stratford-on-Avon44UF Warwick45 (UKJ24) West Sussex45UB Adur45UC Arun45UD Chichester45UE Crawley45UF Horsham45UG Mid Sussex45UH Worthing46 (UKK15) Wiltshire46UB Kennet46UC North Wiltshire46UD Salisbury46UE Thamesdown46UF West Wiltshire47 (UKG12) Worcestershire47UB Bromsgrove47UC Malvern Hills47UD Redditch47UE Worcester47UF Wychavon47UG Wyre ForestThese 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) CardiffThese 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)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