How do country calling codes work?

Every country in the world is assigned a unique calling code, also known as an international dialing code or country phone prefix. These codes are defined by the International Telecommunication Union (ITU) under the E.164 standard. When you dial a phone number internationally, the calling code tells the telephone network which country the call should be routed to.

Calling codes range from one to three digits. For example, the United States and Canada share +1, the United Kingdom uses +44, and Japan uses +81. Some regions share a single calling code while individual countries within that region have their own sub-codes. Understanding these prefixes is essential for international communication, verifying contacts, and identifying the origin of incoming calls.

Tool description

This tool identifies the country associated with a phone number by analyzing its calling code and number structure. Enter any international phone number and instantly see the country flag, country name, ISO country code, calling code prefix, number type, international format, and validation status. The number is parsed in real time as you type, with results updating instantly.

Examples

Input Country Code Calling Code Type
+1 212 555 1234 United States US +1 FIXED_LINE_OR_MOBILE
+44 7911 123456 United Kingdom GB +44 MOBILE
+49 30 12345678 Germany DE +49 FIXED_LINE
+81 90 1234 5678 Japan JP +81 MOBILE
+33 6 12 34 56 78 France FR +33 MOBILE
+55 11 91234 5678 Brazil BR +55 MOBILE

Features

  • Displays the country flag as a high-quality SVG image for instant visual identification
  • Shows the ISO 3166-1 alpha-2 country code and localized country name
  • Detects number type: mobile, fixed line, toll-free, premium rate, and more
  • Formats the number in standard international E.164 format automatically
  • Validates whether the phone number is a real, possible number for the detected country

Use cases

  • Identifying unknown callers: Quickly determine the country of origin for missed calls or unfamiliar numbers in your call log
  • Verifying customer data: Validate phone numbers collected through sign-up forms to ensure they belong to the expected country
  • International communication: Look up the correct calling code and format before dialing a contact abroad

How it works

The tool uses Google's libphonenumber library to parse the phone number against known numbering plans for every country. It extracts the country calling code, matches it to a specific country using number length and pattern rules, and then determines the number type based on subscriber number ranges. The country code is used to display the corresponding national flag.

Tips

  • Always include the + prefix or the tool will add it automatically — entering just digits works too
  • You can paste numbers in any format: with spaces, dashes, parentheses, or dots
  • The number type field distinguishes between mobile, fixed-line, toll-free, VoIP, and other categories
  • If a number shows as valid but no country is detected, it may belong to a non-geographic numbering plan (e.g., satellite phones)