LocalExcelTool
Get started

International Phone Code Checker

Identify the country code and E.164 format of an international phone number.

Runs in your browserNo account neededFree

What is International Phone Code Checker

This phone code checker identifies the country or region code of an international phone number (variable length, 1–3 digits) using longest-prefix matching and formats it as E.164.

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

Three parallel code sets, one country

ISO 3166-1 defines alpha-2 (two letters, US), alpha-3 (three letters, USA) and numeric (three digits, 840) codes for each country, plus the officially assigned country names. They are all in use simultaneously: alpha-2 in domains and forms, alpha-3 in finance and passports, numeric in statistical datasets.

The three are not derived from each other by a rule — you cannot compute alpha-3 from alpha-2 — so a lookup table is the only correct implementation. Mixing the sets in one column produces data that looks consistent and is not.

The codes that are not quite countries

ISO 3166-1 includes territories and dependencies (PR Puerto Rico, GG Guernsey, AX Åland), which behave as countries in some systems and as subdivisions in others. Kosovo uses XK, which is user-assigned and not an official ISO code, yet appears in IBAN and payment data everywhere.

There are also reserved and deprecated codes: UK is reserved because GB is the official alpha-2 for the United Kingdom, and several codes have been withdrawn after political change (CS for Serbia and Montenegro, AN for the Netherlands Antilles). Old records keep the withdrawn codes forever, so a validator that only accepts current ones rejects valid historical data.

Dialling codes are a separate system

Telephone country codes follow ITU E.164 and do not align with ISO: +1 covers the US, Canada and a set of Caribbean territories, +7 covers Russia and Kazakhstan, and +44 covers the UK plus Crown dependencies with their own ISO codes. Deriving a phone prefix from an ISO code is wrong in both directions.

The same mismatch appears with currency and language. A country can use several currencies (or none of its own), and a language spans countries with different variants. Country, currency, language and dialling code are four independent axes, and a table that collapses them into one row will be wrong for dozens of entries.

How to use it

  1. 1.Enter a number starting with +
  2. 2.Click Run
  3. 3.Review the code and format

How International Phone Code Checker works under the hood

Life and utility tools combine a calculator with reference data: dates, holidays, postal-code formats, unit conversions. The arithmetic is local; the reference tables are bundled with the page and dated.

  1. 1

    Read the input

    Dates are parsed in your local time zone; numbers are parsed with explicit units rather than assumed.

  2. 2

    Look up the rule

    Holiday and format rules come from a bundled table, so the answer does not depend on a network call.

  3. 3

    Compute and show assumptions

    The result is shown together with the rule applied, because most disputes are about the assumption, not the arithmetic.

  4. Processing pipeline

Reference data has a date

Holiday calendars and administrative formats change. Each page states the year or version it was built from; if the rule changed after that date, the answer is out of date by definition. Check the official source for anything with legal or financial consequences.

Time zones are the usual bug

A date without a time zone is ambiguous. This site interprets dates in your device's zone and says so; two people in different zones can legitimately get different answers for the same input string.

Verify it yourself

The rule applied is printed with the result, so it can be checked against the official source.

  1. 1.Open DevTools on this page and switch to the Network tab
  2. 2.Keep the filter on Fetch/XHR and run the tool
  3. 3.Confirm no request carries your file — you should see only page assets and fonts

Frequently asked questions

How long is a country code?

1 to 3 digits (e.g. +1, +44, +852). This tool uses longest-prefix matching.

What is E.164?

The international standard format for phone numbers: plus sign, country code, subscriber number.

Does it show location?

It identifies the country/region only; it does not provide precise location data.

More in Life & Utility