← All tools

Country Codes: ISO and Dialing

Understand ISO 3166 country codes (alpha-2, alpha-3 and numeric) and international phone dialing codes, what they are used for, and common examples.
CountryISO2ISO3PhoneCurrency

Country Codes Explained: ISO 3166 and International Dialing

A country code is a short identifier that stands in for a nation so that machines, networks and telephone systems do not have to agree on a spelling. Behind the simple two-letter labels you see every day sit two distinct families of codes that are easy to confuse: the ISO 3166 standard maintained by the International Organization for Standardization, and the telephone calling codes coordinated by the International Telecommunication Union. They look similar, they often share names, but they are governed separately and used for entirely different things.

Glowing globe ringed by national flag color accents and dialing signal arcs
ISO codes and dialing codes are two separate systems that describe the same countries.

ISO 3166: alpha-2, alpha-3 and numeric

ISO 3166-1 defines three parallel codes for every country and many dependent territories. The alpha-2 code is two letters and is the general-purpose default: US for the United States, GB for the United Kingdom, DE for Germany, JP for Japan, BR for Brazil. The alpha-3 code is three letters and reads more like the country name, which makes it easier for humans to recognise: USA, GBR, DEU, JPN, BRA. The numeric-3 code is a three-digit number such as 840 for the US, 826 for the UK or 276 for Germany. These numeric values are aligned with the United Nations Statistics Division and have one quiet advantage: they carry no Latin letters, so they work identically in Arabic, Chinese or Cyrillic systems where a writing-system-independent identifier is needed.

The three forms are not interchangeable by convention so much as by context. A web address uses alpha-2, a passport machine-readable zone uses alpha-3, and a statistical dataset crossing many languages may prefer numeric. Knowing which family a code belongs to usually tells you what produced it.

Where ISO country codes show up

Once you start looking, alpha-2 codes are everywhere. Country-code top-level domains (ccTLDs) such as .fr, .ca, .de and .jp are drawn directly from ISO 3166-1 alpha-2, which is why .uk is one of the rare exceptions, since the ISO code is technically GB. Locale identifiers used by software and websites combine a language with a region the same way, as in en-US, en-GB, pt-BR or fr-CA, so an application can pick the right date format, spelling and currency.

Currency standards lean on the codes too. ISO 4217 currency codes are usually built from the alpha-2 country code plus a letter for the currency, so US plus D gives USD, GB plus P gives GBP, and JP plus Y gives JPY. That tidy relationship is exactly what powers a currency converter when it maps a flag or a country to the right exchange rate. Banks rely on alpha-2 as well: the first two characters of any IBAN are the country code, so DE indicates a German account and FR a French one. You will also find these codes on shipping labels, customs forms and aircraft registration prefixes.

International dialing codes (the + numbers)

Telephone country codes are a completely different system. They are the number prefixes you dial to reach a phone in another country, written with a leading plus sign that stands in for whatever international access prefix your local network uses, commonly 00 in much of the world or 011 in North America. The codes are roughly grouped by region. North America shares a single code, +1, covering the United States, Canada and several Caribbean nations. Most of Africa begins with 2, much of Europe with 3 and 4, and so on. Larger countries received short two-digit codes early on, such as +44 for the United Kingdom, +49 for Germany, +33 for France and +81 for Japan, while smaller territories were later assigned three-digit codes.

Interconnected country nodes on a world map joined by glowing links
Dialing codes route a call across borders; ISO codes route data across systems.

A full international number is built in order: the access prefix, then the country calling code, then the area or city code where applicable, then the subscriber number. Because +1 is shared by many countries and +44 is unique to the UK, the calling code does not map one-to-one onto an ISO code. That mismatch is the single most common source of confusion, so it is worth checking both columns in our reference tables rather than assuming the letters and the dial-in number line up.

A few worth memorising

If you only remember a handful, make them the busy ones: United States US / USA / 840 and +1; United Kingdom GB / GBR / 826 and +44; Germany DE / DEU / 276 and +49; France FR / FRA / 250 and +33; Japan JP / JPN / 392 and +81; China CN / CHN / 156 and +86; Brazil BR / BRA / 076 and +55. With those in hand, most of the patterns in the rest of the world start to feel familiar.

Frequently asked questions

What is the difference between alpha-2 and alpha-3 codes?

Both come from ISO 3166-1. Alpha-2 is a two-letter code (US, GB, DE) used as the general-purpose default for domains, locales and IBANs. Alpha-3 is a three-letter code (USA, GBR, DEU) that reads closer to the country name and is favoured in passports, banking and aviation.

Is a phone country code the same as an ISO code?

No. Phone calling codes such as +1 or +44 are managed by the International Telecommunication Union for routing calls, while ISO 3166 codes identify countries for data. They are separate systems and do not always line up, since +1 covers many countries at once.

Why is the United Kingdom code GB and not UK?

ISO 3166-1 assigns GB to the United Kingdom because the code historically references Great Britain. The .uk domain is an exception that predates strict alignment, so the web address and the official ISO code differ.

What is a numeric country code used for?

The three-digit numeric code, such as 840 for the US, is aligned with United Nations statistics. Because it contains no Latin letters, it is script-independent and useful in systems that do not use the Latin alphabet.

How do ISO codes relate to currencies?

ISO 4217 currency codes are usually the alpha-2 country code plus a currency letter, so USD, GBP and JPY all start with their country code. This link is what lets tools map a country to the correct currency and rate.

How do I dial an international number?

Dial your international access prefix (00 in much of the world, 011 in North America), then the country calling code, then any area or city code, then the local subscriber number.