Telecommunications

International Calling Codes: How E.164 Phone Numbers Work

A full international phone number never has more than 15 digits, and its first one to three digits are a country code assigned by the ITU. The rest depends on where you dial from.

The three parts of an international number

Every public phone number in the world fits one pattern, set out in ITU-T Recommendation E.164, the international numbering plan maintained by the International Telecommunication Union. First published in 1988 and last revised in June 2020, it says that a full international number has at most 15 digits, not counting the exit code you dial before it. Those digits split into up to three parts:

  • Country code (CC): 1 to 3 digits, such as 1 for the United States, 44 for the United Kingdom or 977 for Nepal. Never 4.
  • National destination code (NDC): optional. Often an area code or a mobile network prefix. Some countries with small "closed" numbering plans have no separate NDC at all.
  • Subscriber number (SN): the line itself.
Diagram splitting +44 20 7946 0958 into country code 44, area code 20 and subscriber number, with the exit codes used from New York (011), Paris (00) and Tokyo (010)
Diagram: the same London number as stored in E.164 form and as dialed from three cities and from inside the UK.

The plus sign is not a digit. It is shorthand for "insert your country's exit code here", which is why a number written as +44 20 7946 0958 works from any mobile phone in any country. Mobile networks translate the plus for you; on many landlines you still have to dial the exit code yourself.

Nine world numbering zones

Country codes are grouped by their first digit into nine "world numbering zones", a scheme that dates from the 1960s, before E.164 itself. The first digit tells you roughly where a number was issued. Zone 1 and zone 7 are unusual: each holds a single one-digit code shared by more than one country. Most other zones are full of 2- and 3-digit codes, and short codes went to the countries that were large telephone markets when the plan was drawn up (France 33, Germany 49, Japan 81).

ZoneMain areaExamplesGeographic codes in use
1North American Numbering Plan+1 United States, Canada, Jamaica, Puerto Rico1
2Africa, plus a few Atlantic and Indian Ocean islands+20 Egypt, +27 South Africa, +254 Kenya, +297 Aruba, +299 Greenland61
3Europe (mostly southern and western)+33 France, +34 Spain, +39 Italy, +351 Portugal34
4Europe (mostly northern and central)+44 United Kingdom, +46 Sweden, +49 Germany, +420 Czechia12
5Latin America, non-NANP Caribbean, Falklands+52 Mexico, +53 Cuba, +55 Brazil, +500 Falklands, +509 Haiti28
6Southeast Asia and Oceania+61 Australia, +62 Indonesia, +64 New Zealand, +679 Fiji28
7Russia and Kazakhstan+7 (shared)1
8East Asia, Bangladesh, global services+81 Japan, +86 China, +880 Bangladesh, +886 Taiwan11
9Western, Southern and Central Asia, Turkey+90 Turkey, +91 India, +966 Saudi Arabia, +977 Nepal30

Counts are geographic country codes in Google's libphonenumber metadata (version 9.0.42), which tracks the ITU's assignments; spare and reserved codes are not counted.

Bar chart of geographic calling codes per world numbering zone: zone 2 has 61, zone 3 has 34, zone 9 has 30, zones 1 and 7 one each
Chart: geographic country codes per zone. Africa needed the most codes because it has the most countries (source: libphonenumber metadata).

Codes that belong to no country

Not every country code points at a place. The ITU also assigns 3-digit codes to global services, and for these the rest of the number is limited to 12 digits. The main ones are +800 (international freephone), +808 (international shared-cost numbers), +870 (Inmarsat satellite phones), +881 (global mobile satellite systems such as Iridium), +882 and +883 (international networks) and +979 (international premium rate). A number starting with one of these tells you nothing about a location.

Shared codes: +1 and +7

+1, the North American Numbering Plan

The United States, Canada and much of the Caribbean share one country code. The North American Numbering Plan (NANP) began with AT&T's nationwide plan of October 1947, and every NANP number has 10 digits after the 1: a 3-digit area code, a 3-digit exchange code and 4 digits. The area code, not the country code, is what tells the members apart. Jamaica is +1 876 and the Bahamas +1 242, so a call from New York to Kingston is dialed like a US long-distance call.

Two lists of the 25 members of the North American Numbering Plan: 13 sovereign states including the United States, Canada and Jamaica, and 12 territories such as Puerto Rico and Bermuda
Diagram: the 25 countries and territories that use +1, as listed in libphonenumber's region data.

On Beelad, the 13 sovereign NANP members show their area code next to the shared code, for example Jamaica's page shows +1-876, and each page lists the other countries that share +1.

+7, Russia and Kazakhstan

Code 7 belonged to the Soviet Union. After the USSR dissolved in 1991, Russia and Kazakhstan kept sharing it. The networks tell them apart by the digits right after the 7: Kazakh numbers begin +7 6 or +7 7 (a mobile number might be +7 701 …), while Russian numbers start with other digits such as 3, 4, 8 and 9 (Moscow landlines are +7 495 …).

Kazakhstan did plan to leave. The ITU reserved code +997 for it in 2021, and the switch was scheduled to start on 1 January 2023 with a period in which both codes would work. In November 2023 the plan was dropped, and as of October 2026 Kazakh numbers still use +7; +997 is not in service. Both the Kazakhstan and Russia pages on Beelad show +7.

Odd but true: the Vatican has a code it doesn't use

The ITU assigned +379 to Vatican City, but it has never been put into service. Vatican phones sit inside Rome's numbering, in the range 06 698…, so from abroad you dial them through Italy as +39 06 698…. That is why the Vatican City page shows +39, the same code as Italy.

Exit codes: what you dial first

The exit code (also called the international call prefix) belongs to the country you are calling from. The ITU recommends 00, and most of Europe, Africa, the Middle East and South Asia use it. The exceptions are the ones that catch travelers.

Calling fromExit codeNote
United Kingdom, France, Germany, India, Mexico00The ITU-recommended prefix (the UK formerly used 010)
United States, Canada and other NANP members011Not needed between NANP members: dial 1 + 10 digits
Japan010
Australia0011Optional 00xx carrier codes
Russia and Kazakhstan8~10Dial 8, then 10; mobiles accept +
Nigeria009
Brazil00 + carrier codeThe caller picks a long-distance carrier with two digits
Indonesia001, 007 or 008Depends on the carrier

The trunk prefix trap

Inside most countries, national numbers start with a trunk prefix, usually 0 (1 in the NANP, 8 in Russia and Kazakhstan). It is part of domestic dialing, not of the number, so it disappears when you add the country code. A UK number written 020 7946 0958 becomes +44 20 7946 0958, never +44 020….

Italy is the well-known exception. Its landline numbers keep the leading 0 after the country code, so a Rome number 06 4567 8901 is dialed from abroad as +39 06 4567 8901. San Marino and the Vatican follow the same rule. A simple "strip the first zero" script breaks Italian numbers.

Worked example: calling a London number from three countries

The number on a London hotel's website is 020 7946 0958. Drop the trunk 0, add 44, and you get 2 + 10 = 12 digits: +44 20 7946 0958, well under the 15-digit limit.

  • From a New York landline: 011 44 20 7946 0958 (3-digit exit code, so 15 keypresses).
  • From a Paris landline: 00 44 20 7946 0958 (14 keypresses).
  • From a Sydney landline: 0011 44 20 7946 0958 (16 keypresses).
  • From any mobile, anywhere: +44 20 7946 0958.

Now reverse it for Rome: 06 4567 8901 from New York is 011 39 06 4567 8901. The 0 stays, and the E.164 form +390645678901 has 2 + 10 = 12 digits.

What a calling code does not tell you

A calling code shows where a number was issued, not where its owner is. A Kenyan +254 mobile keeps that code while roaming in Germany. Virtual numbers can be bought in one country and used anywhere online, and global service codes such as +882 have no country at all. Number portability blurs things further: even Google's libphonenumber says its carrier lookup gives "only the original carrier" of a number range, not the current one.

For developers, that means a phone prefix is fine for pre-filling a country picker or choosing a display format, but it is a poor basis for tax, fraud or legal decisions about where a person is.

Storing numbers in software

  • Store numbers in E.164 form: a plus sign followed by digits only, such as +442079460958.
  • Parse user input with a maintained library such as libphonenumber (Java, C++, JavaScript, with ports such as Python's phonenumbers). It knows each country's trunk prefix, the Italian leading zero and valid number lengths.
  • Ask for the country separately when users type national numbers. 020 7946 0958 means nothing without knowing it is British.
  • Format for display at the last moment, in national or international style depending on the reader.

Calling codes are one of several code systems on each country page. The ISO country codes guide covers the two- and three-letter codes, and the ccTLD guide covers internet domains like .kz. If you are calling across borders, also check the local time with the time zone guide.

Quick checklist

  • Country codes have 1 to 3 digits; a full international number has at most 15.
  • Write numbers as +CC plus the national number without its trunk prefix, except in Italy, San Marino and the Vatican, where the 0 stays.
  • Your exit code depends on where you are: 00 in most countries, 011 in North America, 010 in Japan, 0011 in Australia.
  • +1 covers 25 countries and territories, and +7 covers Russia and Kazakhstan; Kazakhstan's planned +997 was dropped in 2023.
  • A calling code tells you where a number was issued, not where the caller is.

Frequently asked questions

How many digits can a country calling code have?

One to three. Examples are +1 (North America), +44 (United Kingdom) and +977 (Nepal). Numbers such as +1 876 for Jamaica are the 1-digit code +1 followed by a 3-digit area code, not a 4-digit country code.

Does Kazakhstan still use +7?

Yes. The ITU reserved +997 for Kazakhstan in 2021 and a switch was planned from January 2023, but the plan was dropped in November 2023. As of October 2026 Kazakh numbers use +7, shared with Russia, and start with 6 or 7 after the country code.

What is the difference between 00, 011 and the plus sign?

00 and 011 are exit codes: 00 is the ITU-recommended prefix used in most countries, and 011 is used in the United States, Canada and other +1 countries. The plus sign stands for whatever exit code applies where you are, and mobile phones fill it in automatically.

Can a phone number show where someone is?

No. The country code shows where the number was issued. Mobiles keep their code when roaming, virtual numbers can be used from anywhere, and codes such as +882 belong to international networks rather than countries.

Sources

  1. E.164, Wikipedia
  2. List of Recommendation ITU-T E.164 assigned country codes, International Telecommunication Union
  3. List of telephone country codes, Wikipedia
  4. North American Numbering Plan, Wikipedia
  5. Telephone numbers in Kazakhstan, Wikipedia
  6. libphonenumber, Google (GitHub)

Look up a country's calling code

Each Beelad country page shows the calling code and lists any other countries that share it, alongside ISO codes, currency and internet domain.

Search countries →
Cecile Ancieux
Creator · Senior Web Developer & Data Privacy Advocate

Cecile is a software engineer with over a decade of experience building client-side JavaScript applications and open-source utilities. She writes and edits Beelad's articles and country data, checking figures against ISO, UN and national statistics sources.

More about Cecile →

Related articles