ONS coding system


In the United Kingdom, the Office for National Statistics maintains a series of geocodes to represent a wide range of geographical areas of the UK, for use in tabulating census and other statistical data. These codes are referred to as ONS codes or GSS codes referring to the Government Statistical Service of which ONS is part.
The previous hierarchical system of codes has been replaced as from January 2011 by a nine-character code for all types of geography, in which there is no relation between the code for a lower-tier area and the corresponding parent area. The older coding system has now been phased out.

Geography of the UK Census

Information from the 2011 Census is published for a wide variety of geographical units. These areas include:
Super Output Areas are a set of geographical areas developed following the 2001 census, initially to facilitate the calculation of the Indices of Deprivation 2004 and subsequently for a range of additional Neighbourhood Statistics. The aim was to produce a set of areas of consistent size, whose boundaries would not change, suitable for the publication of data such as the Indices of Deprivation. They are an aggregation of adjacent Output Areas with similar social characteristics. Lower Layer Super Output Areas] typically contain 4 to 6 OAs with a population of around 1500. Middle Layer Super Output Areas on average have a population of 7,200. The hierarchy of Output Areas and the two tiers of Super Output Areas have become known as the Neighbourhood Statistics Geography.

Former hierarchical coding system

The older ONS code was constructed top down:
For example, 12 for Cambridgeshire.
For example, 12UB for Cambridge district or 12UD for Fenland.
For example, 00AL for Greenwich or 00EC for Middlesbrough.
For example, 12UBGA for Petersfield Ward within Cambridge district.
The current system replaces these codes with a fixed length code of nine characters. The first three characters indicate the level of geography and the six digits following define the individual unit. For example, the Royal Borough of Greenwich is coded as E09000011, Middlesbrough is E06000002, Cambridge E07000008 and Fenland E07000010.
The meaning of some common three character prefixes is as follows:
EnglandWalesScotlandNorthern IrelandOtherStatusEntity
E00W00S00N00-CurrentCensus Output Area ; Small Areas
E01W01S01-CurrentLower layer Super Output Area ; Data Zone
E02W02S02-CurrentMiddle layer Super Output Area ; Intermediate Zone
E04W04S35-CurrentCivil Parish ; Community
E05W05S13N08-CurrentWard or Electoral Division
E06W06S12-CurrentUnitary Authority
E07-CurrentNon-Metropolitan District
E08-CurrentMetropolitan Borough
E09-CurrentLondon Borough
E10-CurrentCounty
E11-CurrentMetropolitan County
E12-CurrentEnglish Region
E13-CurrentInner and Outer London
E14W07S14N06-CurrentWestminster Parliamentary Constituency
E15W08S15N07-CurrentEuropean Electoral Region
E16----ArchivedPrimary Care Trusts
E17----ArchivedCare Trusts
E18---L00 / M00ArchivedStrategic Health Authorities
E19----ArchivedPan Strategic Health Authorities
E20W12---CurrentCancer Registries
E21W13---ArchivedCancer Networks
E22W14---CurrentCommunity Safety Partnerships
E23W15S23N23-CurrentPolice Force Areas
E24----ArchivedLocal Learning and Skills Councils
E25----CurrentPrimary Urban Areas
E26W18S21--CurrentNational Parks
E27----ArchivedNew Deal for Communities
E28W20---CurrentRegistration Districts
E29W21---CurrentRegistration Sub-District
E30W22S22N12K01CurrentTravel to Work Areas
E31W25S38N31-CurrentFire and Rescue Authorities
E32W09S16-CurrentLondon Assembly; Welsh Assembly; Scottish parliament constituency
E33W35S34N19-CurrentWorkplace Zones
E34W37--K05CurrentBuilt Up Areas
E35W38--K06CurrentBuilt Up Area Sub-Divisions
E36W39---CurrentCensus Merged Wards
E37----CurrentLocal Enterprise Partnerships
E38----CurrentClinical Commissioning Groups
E39----ArchivedNHS England
E40----CurrentNHS England Regions
E41W40---CurrentMerged Local Authority Districts
E42----CurrentCensus Merged Counties
E43----CurrentNon-Civil Parished Areas
E45----CurrentPublic Health England Centres
E46----CurrentPublic Health England Regions
E47----CurrentCombined Authorities
E48----CurrentLocal Resilience Forums
E49----CurrentEnterprise Zones
E50----CurrentWaste Authorities
E51----CurrentDevelopment Corporations
E52----CurrentLEP - overlapping part
E53----CurrentLEP - non overlapping part
E54----CurrentSustainability and Transformation Partnerships
E55----CurrentStrategic Clinical Networks
E56----CurrentCancer Alliances
E57----ArchivedNational Cancer Vanguards
E58----CurrentCounty Electoral Divisions
E59----CurrentIntegrated Care Systems
E60W43S44N13-CurrentLocal Planning Authorities
E61----CurrentGreater London Authority
E92W92S92N92L93 / M83CurrentCountry
E92W92S92N92-CurrentCountry
----J01CurrentMajor Towns and Cities
----J02Current1961 Census Parishes
----J03Current1961 Census Wards
----J04Current1961 Census Districts
----J05Current1961 Census Counties
----K02CurrentUnited Kingdom
----K03CurrentGreat Britain
----K04CurrentEngland and Wales
----L93 / M83CurrentBritish Crown Dependencies
----M01CurrentPriamry Healthcare Directorate
---N09-CurrentLocal Government Districts
---N10-CurrentDistrict Election Areas
---N11-CurrentSettlement 2015
---N24-CurrentPolice Force Districts
---N32-CurrentNorthern Ireland Fire and Rescue Service Areas
---N33-CurrentNorthern Ireland Fire and Rescue Service Districts
---N34-CurrentCity Regions
--S03--ArchivedCommunity Health Partnerships
--S04--CurrentRegeneration Outcome Agreement Areas - Scotland
--S05--CurrentRegeneration Outcome Areas - Community Planning Partnerships
--S06--CurrentRegeneration Outcome Areas - Local Areas
--S07--CurrentRegional Transport Partnerships
--S08--CurrentHealth Board areas
--S09--CurrentEnterprise Regions
--S10--CurrentUrban Regeneration Companies
--S11--CurrentStrategic Development Plan Areas
--S12--CurrentCouncil Areas
W10S17-CurrentWelsh Assembly; Scottish Parliament Electoral Region
--S19--CurrentLocalities
--S20--CurrentSettlements
--S24--CurrentHighlands and Islands Enterprise
--S25--CurrentCommunity Justice Authorities
--S26--ArchivedCommunity Health Partnerships sub-areas
--S27--CurrentISD Health Board of Treatment
--S28--CurrentCensus Detailed Characteristics
--S29--CurrentCensus Local Characteristics
--S30--CurrentLocal Administrative Units 1
--S31--CurrentLocal Administrative Units 2
--S32--CurrentScottish Police Divisions
--S33--CurrentBroad Rental Market Areas
--S35--CurrentCivil Parish
--S36--CurrentIsland Groups
--S37--CurrentIntegration Authorities
--S39--CurrentScottish Fire and Rescue Local Senior Officer Areas
--S40--CurrentScottish Fire and Rescue Service Delivery Areas
--S41--CurrentScottish Marine Regions
--S42--CurrentScottish Local Resilience Partnerships
--S43--CurrentScottish Regional Resilience Partnerships
-W03--CurrentUpper layer Super Output Area
-W04--CurrentCommunities
-W11--CurrentLocal Health Boards
-W16--CurrentDepartment for Children, Education, Lifelong Learning and Skills
-W19--CurrentNational Assembly Economic Regions
-W23--CurrentSpatial Plan Areas
-W24--CurrentSpatial Plan Sub-areas
-W26--CurrentStrategic Regeneration Areas
-W27--CurrentStrategic Regeneration Sub-areas
-W28--CurrentTransport Consortia Areas
-W29--CurrentAgricultural Regions
-W30--CurrentAgricultural Small Areas
-W31--CurrentNon-National Park Area
-W32--CurrentNon-Strategic Regeneration Area
-W33--CurrentCommunities First Areas
-W34--CurrentNon-Communities First Areas
-W36--CurrentFootprint Regions for Public Service Collaboration
-W42--CurrentCity Regions

In 2019, the House of Commons Library proposed names instead of numeric codes for MSOAs to make them easier to use.

Nine-character GSS codes

For a full and up-to-date listing of GSS names and codes, please follow the link to ONS Geography's Code History Database, below.