ONS coding system

The ONS coding system is a system used in the United Kingdom for dealing with census and other statistical data. It is used by the Office for National Statistics as a way to label each area of England and Wales. It is also used for parts of Northern Ireland.  The system uses a code for the larger census areas, counties and districts. It then breaks those areas down into smaller areas within the larger areas. Each of the smaller areas get a code that is based on the larger area. Areas are divided in this way until they get to the smallest size used for census data. An area must have at least 40 households, but they try to not divide an area into a size smaller than 100 households. 

Example
12Cambridgeshire county12UBCambridge district12UBGAPetersfield Ward12UBGA0001Gwydir Street (north of junction with Hooper St)

 Other websites 
ONS Open Geography Portal
ONS Census 2021 Geographies

Category:Geography of the United Kingdom
Category:Geocodes