UK postal codes are known as postcodes.
UK postcodes are alphanumeric. These codes were introduced by the Royal Mail over a fifteen year period from 1959 to 1974 the full list is now available electronically from the Royal Mail as the Postcode Address File. They have been widely adopted not just for their original purpose of automating the sorting of mail but for many other purposes see Postcode lottery below.
However, as the format of the codes does not achieve its objective of primarily identifying the main sorting office and sub-office they have been supplemented by a newer system of five digit codes called Mailsort. Mail users who can deliver mail to the post office sorted by mailsort code receive discounts, whilst delivery by postcode provides no such incentive.
Format
The format of UK postcodes is generally:
- A9 9AA
- A99 9AA
- AA9 9AA
- AA99 9AA
- A9A 9AA
- AA9A 9AA
where A signifies a letter and 9 a digit. It is a hierarchical system, working from left to right the first letter or pair of letters represents the area, the following digit or digits represent the district within that area, and so on. Each postcode generally represents a street, part of a street, or a single premises.
The part of the code before the space is the outward code (aka. out code) used to direct mail from one sorting office to the destination sorting office, while the part after the space is the inward code (aka. in code) used to sort the mail into individual postmen's delivery rounds, each separate code usually identifying the address to within 80 properties (with an average of 14 properties per postal code), although large businesses may have a unique code. The outward code can be split further into the area part (letters identifying one of 124 postal areas) and the district part (usually numbers); similarly, the inward code is split into the sector part (number) and the unit part (letters).
| Name |
Location |
Component Format |
Number |
| area |
out code |
A or AA |
124 |
| district |
out code |
9, 99 or 9A |
3,064 |
| sector |
in code |
9, 99 or 9A |
11,598 |
| unit |
in code |
9, 99 or 9A |
1,780,000 |
| Postcode Addresses |
27,000,000 |
The letters in the outward code may be only one of a set of known combinations which usually gives some clue to its geographical location (but see London below). For example, BS indicates Bristol and G indicates Glasgow; see List of postal codes in the United Kingdom for a full list. Although BT indicates Belfast, it covers the whole of Northern Ireland. The letters in the inward code, however, are restricted to the set ABDEFGHJLNPQRSTUWXYZ (so cannot be one of CIKMOV), which generally do not resemble digits or each other when hand-written.
There is one exception (other than the overseas territories) to this format; the postcode for the formerly Post Office-owned Girobank is GIR 0AA.
London postcodes
Main article: London postal district.
In the London area postcodes are slightly different, being based on the old system of 163 London postal districts and predating by many years the introduction of postcodes in the 1960s:
- In central London, WC and EC (West Central and East Central)
- In the rest of London, N, NW, SW, SE, W and E.
The London postal districts rarely coincide with the boundaries of the London boroughs (even the older, smaller metropolitan boroughs). The numbering system also appears arbitrary on the map: for example, NW1 is close to central London, but NW2 is a long way out. This is because (after starting with 1 for the area containing the main sorting office) they were numbered alphabetically by the name of the main sorting office.
The area covered by the London postal districts was somewhat larger than the County of London and included parts of Kent, Essex, Surrey, Middlesex and Hertfordshire. In 1965 the creation of Greater London caused this situation to be reversed as the boundaries of Greater London went far beyond the existing London postal districts.
Those places not covered by the existing districts received postcodes as part of the national coding plan such that the postcode areas of "EN" Enfield, "KT" Kingston upon Thames, "HA" Harrow, "UB" Uxbridge", "TW" Twickenham, "SM" Sutton, "CR" Croydon, "TN" Tonbridge, "DA" Dartford, "BR" Bromley, "RM" Romford and "IG" Ilford cross administrative boundaries and cover parts of neighbouring counties as well as parts of London.
A further complication is that in some of the most central London areas, a further gradation has been necessary to produce enough postcodes, giving unusual codes like EC1A 1AA.
While most postcodes are allocated by administrative convenience, a few are deliberately chosen. For example in Westminster:
- SW1A 0AA - House of Commons
- SW1A 0PW - House of Lords, Palace of Westminster
- SW1A 1AA - Buckingham Palace
- SW1A 2AA - 10 Downing Street, Prime Minister and First Lord of the Treasury
- SW1A 2AB - 11 Downing Street, Chancellor of the Exchequer
- SW1A 2HQ - HM Treasury headquarters
Postcode lottery
Postcodes were devised solely for the purposes of sorting and directing mail and rarely coincide with political boundaries. However, over time they have become a geographical reference in their own right with postcodes and postcode groups becoming synonymous with certain towns and districts. Further to this, the postcode has been used by organisations for other applications including government statistics, marketing, calculation of car and household insurance premiums and credit referencing.
There are several groups, mostly on the fringes of major population centres, who are affected in one way or another by the associations of their postcode. There is a movement in the Royal Borough of Windsor and Maidenhead to change the first two characters of their postcodes from "SL" to "WM" for vanity as it is associated with Slough. A business man in Ilford wishes to have the postcode of IG1 changed to E19 as he claims customers do not realise his business is based in London.
Residents of West Heath in SE2 wish to have their postcodes changed to that of adjacent Bexleyheath citing higher insurance premiums as reason to change. Some residents of Kingston Vale in London SW15 wish to have their postcodes changed to adjacent Kingston upon Thames for the same reasons. Residents of Denham, Buckinghamshire have postcodes associated with Uxbridge which causes confusion to delivery drivers.
In all these cases Royal Mail has said that there is "virtually no hope" of changing their postcode referring to their policy of only changing postcodes to match changes in their operations. [1] However, under this policy residents of the Wirral Peninsula had their postcodes changed from the "L" (Liverpool) to "CH" (Chester) group when a new sorting office was opened. [2]
Some postcode areas straddle England's borders with Wales and Scotland. Examples of such postcodes include CH4, HR3, SY10, NP16 and TD15. This has led to British Sky Broadcasting subscribers receiving the wrong BBC and ITV regions, and newly-licensed radio amateurs being given incorrect callsigns.
Other cities' postcodes
Until the 1960s, cities such as Belfast, Birmingham, Edinburgh, Glasgow, Leeds, Liverpool, Manchester, Newcastle upon Tyne and Sheffield were divided into different postal districts, each with a number, e.g. Toxteth in Liverpool was Liverpool 8. When the national postcode system was introduced, these were incorporated into it, so that postcodes in Toxteth would start with L8, followed by the rest of the postcode. A similar system is still used in the Republic of Ireland for Dublin's postal districts.
Validation
The consequence of the complexity outlined above is that for almost every rule concerning UK postcodes, an exception can be found which breaks that rule. Automatic validation of postcodes on the basis of pattern feasibility is therefore almost impossible to design, and the system contains no self-validating feature such as a check digit. Validation is usually performed against a copy of the "Postcode Address File" (PAF), which is generated by the Royal Mail and contains about 27 million UK commercial and residential addresses. However, even the PAF can not be relied on as it contains errors and because new postcodes are occasionally created and used before copies of the PAF can be distributed to users.
It is possible to validate the format of a postcode using the following rules:
- The postcode must be of 6, 7, or 8 characters in length (including the space)
- The outward code (the set of characters to the left of the space) must be 2, 3 or 4 characters in length
- The first character of the outward code must be alphabetic.
- The inward code (the set of characters to the right of the space) must always be 3 characters in length.
- The first character of the inward code must be numeric.
- The second and third characters of the inward code must be alphabetic.
A regular expression that validates the format rather loosely is
- /^[A-Z]{1,2}[0-9]{1,2}[A-Z]? ?[0-9][ABDEFGHJLNPQRSTUWXYZ]{2}$/i
(this assumes that you have removed the space between the outward code and inward code, e.g. SW50QF)
All valid postcodes (except GIR 0AA and some of the Overseas Territories postcodes) will match this, but several invalid postcodes will also match.
Whilst, a more complete regular expression is:
- ^([A-PR-UWYZ][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)$
(this assumes that you have included the space between the outward code and inward code, e.g. SW5 0QF)
However, this too is not completely accurate and will match a few invalid postcodes. The definitive regular expression to use is:
- /^([A-PR-UWYZ]\d\d?\d[ABD-HJLNP-UW-Z]{2}|[A-PR-UWYZ][A-HK-Y]\d\d?\d[ABD-HJLNP-UW-Z]{2}|[A-PR-UWYZ]\d[A-HJKSTUW]\d[ABD-HJLNP-UW-Z]{2}|[A-PR-UWYZ][A-HK-Y]\d[A-HJKRSTUW]\d[ABD-HJLNP-UW-Z]{2}|GIR0AA)$/
(this assumes that you have removed the space between the outward code and inward code, e.g. SW50QF)
Application
The PAF is commercially licenseable and is often incorporated in address management software packages. The capabilities of such packages allow an address to be constructed solely from the postcode and house number for most addresses. By including the map references of postcodes in the address database, the postcode can be used automatically to pinpoint a postcode area on a map. See http://www.streetmap.co.uk for an example of this in practice.
Northern Ireland
Northern Ireland was the last part of the UK to be postcoded, between 1970 and 1974. While Belfast was already divided into postal districts, rural areas, known as townlands, posed an additional problem, as many roads were not named, and houses were, similarly, not numbered. Consequently, many people living in such areas shared the same postal address, which still occurs in the Republic of Ireland.
Crown Dependencies
The Channel Islands (Jersey and Guernsey) and the Isle of Man established their own separate postal administrations from the UK in 1969, and did not adopt postcodes until the early 1990s. Their postcodes follow the UK format, with Jersey being postcode area JE, Guernsey GY, and Isle of Man IM.
Overseas Territories
Some of the UK's overseas territories have their own postcodes:
- Ascension Island: ASCN 1ZZ
- British Antarctic Territory: BIQQ 1ZZ
- British Indian Ocean Territory: BBND 1ZZ
- Falkland Islands: FIQQ 1ZZ
- Pitcairn Islands: PCRN 1ZZ
- Saint Helena: STHL 1ZZ
- South Georgia and the South Sandwich Islands: SIQQ 1ZZ
- Tristan da Cunha: TDCU 1ZZ [3]
- Turks and Caicos Islands: TKCA 1ZZ
Unlike UK postcodes, these are used for all addresses in those territories. The reason why they were introduced is because mail was often sent to the wrong place, e.g: St Helena to St Helens, Merseyside, and even Ascension Island to Asunción, Paraguay. In addition, many online companies would not accept addresses without a postcode. Mail from the UK continues to be treated as international, not inland, and sufficient postage must be used.
Postcode history
A Royal Mail Information Sheet (see External links below) describes how postcode trials were conducted in Norwich and Croydon. (It is possible that these two towns were selected because they had the letter O in their names at positions where the designers were thinking of using a digit. For example they may have had in mind for Norwich the Canadian format of LDL DLD.) Norwich was completely re-coded but the scheme tested in Croydon was sufficiently close to the final design for it to be retained.
Another early adopter of postcodes was Newport. Here, Newport itself was allocated NPT, in a similar way to Norwich and Croydon, with the surrounding towns allocated NP1-NP8. This lasted into the mid '80s when for operational reasons (NPT being non-standard, and too similar to NP7) it was finally recoded.
The legacy of the Croydon trial can still be seen today:
- CR0 was the only postal district with a zero in that position when all others started at 1. This caused one of the PAF (see above) software products produced by the Royal Mail themselves to misbehave slightly! Subsequently, the "zeroth" district has been used in some other postcode areas, such as Blackburn and Harrow.
- A separate postal "district", CR9 is used for large users and PO Box holders. This policy has been used elsewhere, with normal postcodes "growing" upwards from district 1 and large user postcodes "growing" downwards from district 99.
- The CR0 district contains far more addresses than any other postal district in the country.
- CR1 has never been used possibly left spare for rationalisation. (The other CR districts, CR2, etc. were coded later and conform to the general standards.)
- There was at one point a movement to change all CR0 postcodes to CR1, but this was rejected.
- CR0 is often incorrectly written as CRO, although in some type faces the digit '0' and letter 'O' are often identical.
See also
- ACORN (geodemography)
- ADDRESS-POINT
- Australia Post
- British Forces Post Office
- P² People & Places (geodemography)
- Post town
- Postcode Address File
- Royal Mail
- UK topics
- ZIP Codes - The US version
- List of postal codes for worldwide postal code definitions.
Category: Postal system of the United Kingdom