Skip to content

Glossary

Area code: what the first digits of a number mean

An area code is the prefix that routes a call to a region inside a country. How area codes work, why mobile numbers lose them and how validators use them.

Updated 2026-11-23

An area code is the first group of digits of a national phone number that points to a geographic region or a service type. In the North American plan it is three digits, as in 415 for San Francisco. Elsewhere it can be one to five digits, and in some countries it is part of every number, with no separate field at all.

How it works

Telephone networks route calls hierarchically: country first, then area, then exchange, then line. The area code is the second step. Callers inside the same area can sometimes omit it, but the full number always contains it.

Country Example Area code Notes
United States (415) 555-0123 415 Three digits, NANP
United Kingdom 020 7946 0000 20 Dialed as 020 nationally, leading 0 is a trunk prefix
France 01 23 45 67 89 1 Region 1 for Paris area, leading 0 trunk
Germany 030 1234567 30 Berlin, variable length

Area codes have three important limits:

  1. Not all numbers have one. Mobile numbers in most countries use prefixes tied to the operator or the service, not to a place. Toll-free and premium-rate numbers are non-geographic.
  2. They do not follow people. A number keeps its area code after a move, and mobile portability moves it between operators.
  3. They change. Regulators split and overlay codes when numbers run out, and countries restructure their plans.

In the E.164 form the area code is simply part of the national significant number after the country calling code.

Why it matters for validation

Validation does not need the area code as a separate field, but it uses it in two places.

First, to decide validity: for fixed lines, the prefix and length must match a range of the national plan. A number with an unassigned area code in the US or an impossible prefix in the UK fails.

Second, to describe the number. The region field of the phone API holds the area of the number range, such as a US state, and the timezones array the matching IANA zones. Both are null when the plan does not tie the number to an area, as for most mobiles. Do not use them to override where the user says they live.

Good practice: show the region as context ("Looks like a California number") rather than as a rule, and never block a signup because the area code differs from the billing address.

Browse every code in the area codes directory or use the area code lookup.

Frequently asked questions

What is an area code?
An area code is a group of digits at the start of a national phone number that identifies a geographic region or a service. In the North American plan it is the first three digits. Other countries use area codes of different lengths, and some, like Singapore, have none at all.
Does an area code tell me where someone is?
Not reliably. It tells you where the number was first assigned. People keep their numbers when they move, and mobile numbers are often not tied to a region. Use it as a weak hint about the origin of a number, never as proof of present location.
Is the area code part of the E.164 number?
Yes. In E.164 the area code sits inside the national number, directly after the country calling code. For +14155550123, 1 is the country code and 415 is the area code. In many countries a leading 0 written before the area code is a trunk prefix and is dropped.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time