UK Dialling Code Lookup

A UK dialling code lookup resolves an area code such as 01603 to the post towns it serves, and a town name back to the code used there.

Enter a code in any form — 01603, 1603, +441603 or "01603 area code" — and the lookup normalises it before matching. A full telephone number is split into its code and subscriber number. Non-geographic prefixes are named as such rather than reported as not found, so 07, 080 and 09 return an explanation instead of a dead end. The 0207 and 0208 mistake is answered directly: London’s code is 020, and the 7 or 8 is the first digit of the subscriber number, left over from the 0171 and 0181 codes withdrawn in 2000.

Use cases

  • Identifying where a call came from: Resolve the code on a missed call or an invoice to the post towns it serves, along with the county and country.
  • Filling a phone field in test data: Find the right code for a town before generating a matching number, so the address and the telephone number agree.
  • Checking a number is the length it should be: See how many digits follow the code, and therefore how long a valid national number on it is.

Frequently asked questions

Is 0207 a London dialling code?

No. London’s dialling code is 020 and the subscriber number is eight digits, so a London number is 020 followed by 7946 0123, not 0207 followed by 946 0123. The 0207 and 0208 forms are left over from the 0171 and 0181 codes that were withdrawn in 2000, and writing them that way is the most common error in UK number formatting.

Why does one code cover several towns?

Because a dialling code identifies a numbering area, not a town. 0191 covers Newcastle upon Tyne, Gateshead, Sunderland and Durham; 023 covers both Portsmouth and Southampton. The lookup lists every post town in this registry that uses the code.

Does this cover every UK dialling code?

No. It holds the codes recorded against the post towns in this site’s registry, which is a curated set rather than the complete Ofcom list. A code that is absent is not necessarily invalid, and the result says so rather than implying the code does not exist.

Can I generate a phone number for a code?

Use the UK phone number generator. It only ever produces numbers from the blocks Ofcom reserves for drama, so a generated number can never reach a real subscriber — which is also why a generated number will not match every code in this lookup.

How UK dialling codes are structured

Why the code is three, four or five digits, and why 0207 is not one · 650 words

1. The code and the subscriber number add up to a fixed length

A UK geographic telephone number is ten digits after the leading zero, split between an area code and a subscriber number. The split moves; the total does not.

That single rule explains most of what looks arbitrary about UK numbers. London's code is three digits (020), so the subscriber number is eight: 020 7946 0123. Manchester's is four (0161), so the subscriber number is seven: 0161 496 0123. Norwich's is five (01603), so the subscriber number is six: 01603 960123. All three are eleven digits with the zero.

A short code means a big numbering area, because a shorter code leaves more digits for subscribers. The five cities on three-digit codes — London (020), Southampton and Portsmouth (023), Coventry (024), Northern Ireland (028) and Cardiff (029) — between them hold a large share of the country's numbers.

2. 0207 and 0208 are not dialling codes

This is the most common error in UK number formatting, and it has a specific cause. Until April 2000, London had two codes: 0171 for the inner area and 0181 for the outer. The Big Number Change merged them into a single 020 code and pushed the distinguishing digit into the subscriber number, so an old 0171 946 0123 became 020 7946 0123.

The habit of writing "0207 946 0123" survived the change. It is wrong in a way that matters: it implies a code that does not exist, it breaks the eight-digit grouping, and it makes numbers within London look like they need the code when they do not. A Londoner dialling another London number dials the eight digits alone.

The lookup on this page answers 0207 and 0208 directly rather than reporting them as not found, because someone typing them has a real question.

3. A code is an area, not a town

Dialling codes were laid out for telephone exchanges, so they follow neither post towns nor council boundaries. 0191 covers Newcastle upon Tyne, Gateshead, Sunderland and Durham. 023 covers Southampton and Portsmouth, two cities that share nothing administratively. 028 covers the whole of Northern Ireland.

This is why the lookup lists post towns rather than claiming to describe a boundary: the registry behind this site records which code each post town uses, which is a fact, and not where the numbering area ends, which it does not hold.

It also means a dialling code is weak evidence of location. It tells you roughly where a line was installed, not where the person is — and with number portability and voice-over-IP, sometimes not even that.

4. Everything that is not 01 or 02

Only 01 and 02 prefixes are geographic. The rest of the plan is organised by how a call is charged or routed rather than by where it lands.

03 numbers are charged at geographic rates and used by public bodies and charities. 055 is corporate numbering and 056 is voice over IP, deliberately location-independent. 07 is mobile and pager. 080 is freephone, while 084 and 087 are service numbers carrying a per-minute charge. 09 is premium rate.

Asking "where is 0800?" therefore has no answer, and the lookup says so rather than returning nothing. Generated numbers on this site come only from the blocks Ofcom reserves for drama within these ranges, so no number produced here can reach a real subscriber.

More questions

How long is a UK landline number?

Eleven digits including the leading zero, for almost every geographic number: the area code plus a subscriber number that makes the total up to ten digits after the zero. A small number of areas with longer codes take shorter subscriber numbers and total ten digits.

Do I need the dialling code to call locally?

Not for most areas — dialling the subscriber number alone connects a local call. A few areas require the code even locally because subscriber numbers there are short enough to collide with service codes.

Can I tell where someone is from their dialling code?

Only roughly, and decreasingly. The code reflects where the line was provisioned. Number portability, voice-over-IP and businesses keeping a city code after moving all break the link between the code and the caller’s actual location.

Related tools