GSS coding system
The Office for National Statistics coding system is a hierarchical code used in the United Kingdom for tabulating census and other statistical data. The code is constructed top down from a 4 character code representing a unitary authority or county & district, eg:
00EC | Middlesbrough (unitary) |
or | |
---|---|
12 | Cambridgeshire county |
12UB | Cambridge district |
Local Government wards have a two-letter code within their district, and census Output Areas an additional 4 digits within a ward. Output Areas are the smallest unit for which census data is published - they contain at least 40 households (preferably 100), and are built up from postcode blocks AFTER the census data is available with a view to being socially as homogeneous as possible. A new set of Output Areas is created for each decennial census.
12UB | Cambridge district |
12UBGA | Petersfield Ward |
12UBGA0001 | Output Area: Gwydir Street (north of junction with Hooper St) |
An overlapping system encodes Civil Parish areas. Parishes are represented by an additional 3 digits within their district:
12UD | Fenland district |
12UD010 | Tydd St. Giles parish |
ONS codes for counties & districts
Single-tier districts
- Special area
- 00AA City of London
- London boroughs
- 00AB Barking and Dagenham
- 00AC Barnet
- 00AD Bexley
- 00AE Brent
- 00AF Bromley
- 00AG Camden
- 00AH Croydon
- 00AJ Ealing
- 00AK Enfield
- 00AL Greenwich
- 00AM Hackney
- 00AN Hammersmith and Fulham
- 00AP Haringey
- 00AQ Harrow
- 00AR Havering
- 00AS Hillingdon
- 00AT Hounslow
- 00AU Islington
- 00AW Kensington and Chelsea
- 00AX Kingston upon Thames
- 00AY Lambeth
- 00AZ Lewisham
- 00BA Merton
- 00BB Newham
- 00BC Redbridge
- 00BD Richmond upon Thames
- 00BE Southwark
- 00BF Sutton
- 00BG Tower Hamlets
- 00BH Waltham Forest
- 00BJ Wandsworth
- 00BK Westminster
- Great Manchester districts
- Merseyside districts
- 00BX Knowsley
- 00BY Liverpool
- 00BZ St. Helens
- 00CA Sefton
- 00CB Wirral
- South Yorkshire districts
- Tyne & Wear districts
- 00CH Gateshead
- 00CJ Newcastle upon Tyne
- 00CK North Tyneside
- 00CL South Tyneside
- 00CM Sunderland
- West Midlands districts
- 00CN Birmingham
- 00CQ Coventry
- 00CR Dudley
- 00CS Sandwell
- 00CT Solihull
- 00CU Walsall
- 00CW Wolverhampton
- West Yorkshire districts
- 00CX Bradford
- 00CY Calderdale
- 00CZ Kirklees
- 00DA Leeds
- 00DB Wakefield
- Unitary authorities
- 00EB Hartlepool
- 00EC Middlesbrough
- 00EE Redcar and Cleveland
- 00EF Stockton-on-Tees
- 00EH Darlington
- 00ET Halton
- 00EU Warrington
- 00EX Blackburn with Darwen
- 00EY Blackpool
- 00FA Kingston upon Hull
- 00FB East Riding of Yorkshire
- 00FC North East Lincolnshire
- 00FD North Lincolnshire
- 00FF York
- 00FK Derby
- 00FN Leicester
- 00FP Rutland
- 00FY Nottingham
- 00GA Herefordshire
- 00GF Telford and Wrekin
- 00GL Stoke-on-Trent
- 00HA Bath and North East Somerset
- 00HB Bristol
- 00HC North Somerset
- 00HD South Gloucestershire
- 00HG Plymouth
- 00HH Torbay
- 00HN Bournemouth
- 00HP Poole
- 00HX Swindon
- 00JA Peterborough
- 00KA Luton
- 00KF Southend-on-Sea
- 00KG Thurrock
- 00LC Medway
- 00MA Bracknell Forest
- 00MB West Berkshire
- 00MC Reading
- 00MD Slough
- 00ME Windsor and Maidenhead
- 00MF Wokingham
- 00MG Milton Keynes
- 00ML Brighton and Hove
- 00MR Portsmouth
- 00MS Southampton
- 00MW Isle of Wight
- Welsh authorities
- 00NA Isle of Anglesey
- 00NC Gwynedd
- 00NE Conwy
- 00NG Denbighshire
- 00NJ Flintshire
- 00NL Wrexham
- 00NN Powys
- 00NQ Ceredigion
- 00NS Pembrokeshire
- 00NU Carmarthenshire
- 00NX Swansea
- 00NZ Neath Port Talbot
- 00PB Bridgend
- 00PD Vale of Glamorgan
- 00PF Rhondda Cynon Taff
- 00PH Merthyr Tydfil
- 00PK Caerphilly
- 00PL Blaenau Gwent
- 00PM Torfaen
- 00PP Monmouthshire
- 00PR Newport
- 00PT Cardiff
- Scottish districts
- 00QA Aberdeen City
- 00QB Aberdeenshire
- 00QC Angus
- 00QD Argyll and Bute
- 00QE Scottish Borders
- 00QF Clackmannanshire
- 00QG West Dunbartonshire
- 00QH Dumfries and Galloway
- 00QJ Dundee City
- 00QK East Ayrshire
- 00QL East Dunbartonshire
- 00QM East Lothian
- 00QN East Renfrewshire
- 00QP Edinburgh
- 00QQ Falkirk
- 00QR Fife
- 00QS Glasgow City
- 00QT Highland
- 00QU Inverclyde
- 00QW Midlothian
- 00QX Moray
- 00QY North Ayrshire
- 00QZ North Lanarkshire
- 00RA Orkney Islands
- 00RB Perth and Kinross
- 00RC Renfrewshire
- 00RD Shetland Islands
- 00RE South Ayrshire
- 00RF South Lanarkshire
- 00RG Stirling
- 00RH West Lothian
- 00RJ Eilean Siar
Two-tier counties & districts
- 01-07 obsolete, were London & the Metropolitan Counties
- 08 obsolete, was Avon
- 09 Bedfordshire
- 09UC Mid Bedfordshire
- 09UD Bedford
- 09UE South Bedfordshire
- 10 obsolete, was Berkshire
- 11 Buckinghamshire
- 11UB Aylesbury Vale
- 11UC Chiltern
- 11UE South Buckinghamshire
- 11UF Wycombe
- 12 Cambridgeshire
- 12UB Cambridge
- 12UC East Cambridgeshire
- 12UD Fenland
- 12UE Huntingdonshire
- 12UG South Cambridgeshire
- 13 Cheshire
- 13UB Chester
- 13UC Congleton
- 13UD Crewe and Nantwich
- 13UE Ellesmere Port & Neston
- 13UG Macclesfield
- 13UH Vale Royal
- 14 obsolete, was Cleveland
- 15 Cornwall and Scilly
- 15UB Caradon
- 15UC Carrick
- 15UD Kerrier
- 15UE North Cornwall
- 15UF Penwith
- 15UG Restormel
- 15UH Isles of Scilly
- 16 Cumbria
- 16UB Allerdale
- 16UC Barrow-in-Furness
- 16UD Carlisle
- 16UE Copeland
- 16UF Eden
- 16UG South Lakeland
- 17 Derbyshire
- 17UB Amber Valley
- 17UC Bolsover
- 17UD Chesterfield
- 17UF Derbyshire Dales
- 17UG Erewash
- 17UH High Peak
- 17UJ North East Derbyshire
- 17UK South Derbyshire
- 18 Devon
- 18UB East Devon
- 18UC Exeter
- 18UD Mid Devon
- 18UE North Devon
- 18UG South Hams
- 18UH Teignbridge
- 18UK Torridge
- 18UL West Devon
- 19 Dorset
- 19UC Christchurch
- 19UD East Dorset
- 19UE North Dorset
- 19UG Purbeck
- 19UH West Dorset
- 19UJ Weymouth and Portland
- 20 County Durham
- 20UB Chester-le-Street
- 20UD Derwentside
- 20UE Durham
- 20UF Easington
- 20UG Sedgefield
- 20UH Teesdale
- 20UJ Wear Valley
- 21 East Sussex
- 21UC Eastbourne
- 21UD Hastings
- 21UF Lewes
- 21UG Rother
- 21UH Wealden
- 22 Essex
- 22UB Basildon
- 22UC Braintree
- 22UD Brentwood
- 22UE Castle Point
- 22UF Chelmsford
- 22UG Colchester
- 22UH Epping Forest
- 22UJ Harlow
- 22UK Maldon
- 22UL Rochford
- 22UN Tendring
- 22UQ Uttlesford
- 23 Gloucestershire
- 23UB Cheltenham
- 23UC Cotswold
- 23UD Forest of Dean
- 23UE Gloucester
- 23UF Stroud
- 23UG Tewkesbury
- 24 Hampshire
- 24UB Basingstoke and Deane
- 24UC East Hampshire
- 24UD Eastleigh
- 24UE Fareham
- 24UF Gosport
- 24UG Hart
- 24UH Havant
- 24UJ New Forest
- 24UL Rushmoor
- 24UN Test Valley
- 24UP Winchester
- 25 abolished, was Herefordshire
- 26 Hertfordshire
- 26UB Broxbourne
- 26UC Dacorum
- 26UD East Hertfordshire
- 26UE Hertsmere
- 26UF North Hertfordshire
- 26UG St Albans
- 26UH Stevenage
- 26UJ Three Rivers
- 26UK Watford
- 26UL Welwyn Hatfield
- 27 abolished, was Humberside
- 28 abolished, was Isle of Wight county
- 29 Kent
- 29UB Ashford
- 29UC Canterbury
- 29UD Dartford
- 29UE Dover
- 29UG Gravesham
- 29UH Maidstone
- 29UK Sevenoaks
- 29UL Shepway
- 29UM Swale
- 29UN Thanet
- 29UP Tonbridge and Malling
- 29UQ Tunbridge Wells
- 30 Lancashire
- 30UD Burnley
- 30UE Chorley
- 30UF Fylde
- 30UG Hyndburn
- 30UH Lancaster
- 30UJ Pendle
- 30UK Preston
- 30UL Ribble Valley
- 30UM Rossendale
- 30UN South Ribble
- 30UP West Lancashire
- 30UQ Wyre
- 31 Leicestershire
- 31UB Blaby
- 31UC Charnwood
- 31UD Harborough
- 31UE Hinckley and Bosworth
- 31UG Melton
- 31UH North West Leicestershire
- 31UJ Oadby and Wigston
- 32 Lincolnshire
- 32UB Boston
- 32UC East Lindsey
- 32UD Lincoln
- 32UE North Kesteven
- 32UF South Holland
- 32UG South Kesteven
- 32UH West Lindsey
- 33 Norfolk
- 33UB Breckland
- 33UC Broadland
- 33UD Great Yarmouth
- 33UE King`s Lynn and West Norfolk
- 33UF North Norfolk
- 33UG Norwich
- 33UH South Norfolk
- 34 Northamptonshire
- 34UB Corby
- 34UC Daventry
- 34UD East Northamptonshire
- 34UE Kettering
- 34UF Northampton
- 34UG South Northamptonshire
- 34UH Wellingborough
- 35 Northumberland
- 35UB Alnwick
- 35UC Berwick-upon-Tweed
- 35UD Blyth Valley
- 35UE Castle Morpeth
- 35UF Tynedale
- 35UG Wansbeck
- 36 North Yorkshire
- 36UB Craven
- 36UC Hambleton
- 36UD Harrogate
- 36UE Richmondshire
- 36UF Ryedale
- 36UG Scarborough
- 36UH Selby
- 37 Nottinghamshire
- 37UB Ashfield
- 37UC Bassetlaw
- 37UD Broxtowe
- 37UE Gedling
- 37UF Mansfield
- 37UG Newark and Sherwood
- 37UJ Rushcliffe
- 38 Oxfordshire
- 38UB Cherwell
- 38UC Oxford
- 38UD South Oxfordshire
- 38UE Vale of White Horse
- 38UF West Oxfordshire
- 39 Shropshire
- 39UB Bridgnorth
- 39UC North Shropshire
- 39UD Oswestry
- 39UE Shrewsbury and Atcham
- 39UF South Shropshire
- 40 Somerset
- 40UB Mendip
- 40UC Sedgemoor
- 40UD South Somerset
- 40UE Taunton Deane
- 40UF West Somerset
- 41 Staffordshire
- 41UB Cannock Chase
- 41UC East Staffordshire
- 41UD Lichfield
- 41UE Newcastle-under-Lyme
- 41UF South Staffordshire
- 41UG Stafford
- 41UH Staffordshire Moorlands
- 41UK Tamworth
- 42 Suffolk
- 42UB Babergh
- 42UC Forest Heath
- 42UD Ipswich
- 42UE Mid Suffolk
- 42UF St. Edmundsbury
- 42UG Suffolk Coastal
- 42UH Waveney
- 43 Surrey
- 43UB Elmbridge
- 43UC Epsom and Ewell
- 43UD Guildford
- 43UE Mole Valley
- 43UF Reigate and Banstead
- 43UG Runnymede
- 43UH Spelthorne
- 43UJ Surrey Heath
- 43UK Tandridge
- 43UL Waverley
- 43UM Woking
- 44 Warwickshire
- 44UB North Warwickshire
- 44UC Nuneaton and Bedworth
- 44UD Rugby
- 44UE Stratford-on-Avon
- 44UF Warwick
- 45 West Sussex
- 45UB Adur
- 45UC Arun
- 45UD Chichester
- 45UE Crawley
- 45UF Horsham
- 45UG Mid Sussex
- 45UH Worthing
- 46 Wiltshire
- 46UB Kennet
- 46UC North Wiltshire
- 46UD Salisbury
- 46UF West Wiltshire
- 47 Worcestershire
- 47UB Bromsgrove
- 47UC Malvern Hills
- 47UD Redditch
- 47UE Worcester
- 47UF Wychavon
- 47UG Wyre Forest
Northern Ireland districts
- 95A Derry
- 95B Limavady
- 95C Coleraine
- 95D Ballymoney
- 95E Moyle
- 95F Larne
- 95G Ballymena
- 95H Magherafelt
- 95I Cookstown
- 95J Strabane
- 95K Omagh
- 95L Fermanagh
- 95M Dungannon
- 95N Craigavon
- 95O Armagh
- 95P Newry and Mourne
- 95Q Banbridge
- 95R Down
- 95S Lisburn
- 95T Antrim
- 95U Newtownabbey
- 95V Carrickfergus
- 95W North Down
- 95X Ards
- 95Y Castlereagh
- 95Z Belfast
Non-hierarchical codes for summary data in metropolitan areas
- 1B Inner London
- 1C Outer London
- 2A Greater Manchester
- 2B Merseyside
- 2C South Yorkshire
- 2D Tyne and Wear
- 2E West Midlands
- 2F West Yorkshire