Every international telephone country calling code mapped to its country name and ISO 3166-1 identifiers. Use this dataset to build phone number validation, format international numbers in your CRM, or populate country selector dropdowns with dialing prefixes.
Pro tip: Combine the ISO alpha-2 code with a flag emoji library to display country flags next to phone number inputs in your registration forms.
Select which columns to include in your download.
About the Country Phone Codes Dataset
This dataset provides a complete mapping of international telephone country calling codes as assigned by the International Telecommunication Union (ITU) in Recommendation E.164. Each entry pairs the numeric dialing prefix with the country or territory name, the ISO 3166-1 alpha-2 code, and the ISO 3166-1 alpha-3 code. The data covers all sovereign nations, dependent territories, and special-purpose codes currently in active use.
Common Use Cases
International dialing codes are essential reference data for any application that handles phone numbers across borders:
- Phone number validation: Verify that user-submitted phone numbers begin with a valid country code before storing them in your database or sending SMS messages.
- Country selector dropdowns: Build phone input fields that let users pick their country code from a structured list, reducing errors compared to free-text entry.
- CRM and contact management: Normalize phone numbers across your customer database by parsing and storing the country code separately from the local number.
- Telecom analytics: Classify call records by destination country to generate routing reports, cost breakdowns, and traffic volume dashboards.
Column Reference
Each record in the dataset includes the following fields:
- country — The full English name of the country or territory (e.g. "United States", "United Kingdom", "Japan").
- phone_code — The international dialing prefix without the leading plus sign (e.g.
1,44,81). Some codes are shared by multiple territories. - iso_alpha2 — The two-letter ISO 3166-1 alpha-2 country code (e.g.
US,GB,JP). Widely used in APIs, URLs, and locale identifiers. - iso_alpha3 — The three-letter ISO 3166-1 alpha-3 country code (e.g.
USA,GBR,JPN). Common in international trade and shipping systems.
Shared Calling Codes
Several country calling codes are shared across multiple nations and territories. The most notable example is +1, which covers the United States, Canada, and numerous Caribbean nations under the North American Numbering Plan (NANP). Similarly, +7 is shared between Russia and Kazakhstan. When building phone validation logic, account for these shared codes by using the ISO country code as the disambiguator rather than relying on the dialing prefix alone.
Integration with Phone Libraries
This dataset pairs well with phone number parsing libraries such as Google libphonenumber. Use the country code list to populate your UI while delegating number formatting and validation to the library. The ISO alpha-2 codes in this dataset match the region codes expected by libphonenumber, making integration straightforward. For backend systems, import the JSON format as a lookup table to quickly resolve a dialing prefix to its country name and ISO identifiers without requiring an external API call.