Country Code Reference

Search and browse ISO 3166-1 country codes including alpha-2, alpha-3, numeric codes, calling codes, TLDs, and flag emojis.

About This Tool

The Country Code Reference is a comprehensive, searchable directory of ISO 3166-1 country codes used across the internet, telecommunications, international trade, and software development. Whether you are building a country selector for a web form, configuring international phone number validation, or setting up domain routing by country, this tool gives you instant access to all standard country identifiers.

ISO 3166-1 defines three sets of codes: Alpha-2 (two-letter codes like US, GB, JP) are the most widely used in domain names, HTML lang attributes, and browser locale settings. Alpha-3 codes (USA, GBR, JPN) appear in international shipping, banking (SWIFT), and some API standards. Numeric codes (840, 826, 392) are used where language-independent identifiers are needed, such as customs forms and UN statistics.

Beyond ISO codes, this reference includes phone calling codes (+1, +44, +81), country code top-level domains (.us, .uk, .jp), and flag emojis generated from Regional Indicator Symbols. You can filter by region (Africa, Americas, Asia, Europe, Oceania) and search by any field. Click any code to copy it to your clipboard.

For related lookups, pair this tool with the Port Number Reference for networking details, or use the URL Encoder when building internationalized URLs. If you are working with IP geolocation, the IP Address Analyzer can help identify the country associated with an IP range.

All data is embedded directly in the page. No network requests are made and no data ever leaves your browser. This tool works completely offline once loaded.

How to Use

  1. Search by typing a country name (e.g., "Japan"), code (e.g., "JP"), phone code (e.g., "+81"), or TLD (e.g., ".jp") in the search box.
  2. Filter by region using the region buttons: Africa, Americas, Asia, Europe, or Oceania.
  3. Browse the table to see flag emoji, country name, alpha-2, alpha-3, numeric code, phone code, TLD, and region for each entry.
  4. Copy a code by clicking the code directly in the table, or hover over a row and click the Copy button.
  5. Press Ctrl+Shift+C to copy the alpha-2 code of the first visible country.
  6. Combine search and filter — for example, filter to "Europe" and search "land" to find Finland, Iceland, Ireland, Netherlands, Poland, and Switzerland.
  7. Look up a specific country by entering its name or any of its codes to instantly see all associated identifiers.

Popular Country Code Guides

View all country code guides →

FAQ

What is ISO 3166-1?

ISO 3166-1 is an international standard published by the International Organization for Standardization (ISO) that defines codes for the names of countries, dependent territories, and special areas of geographical interest. It includes three code sets: alpha-2 (two-letter), alpha-3 (three-letter), and numeric (three-digit) codes.

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

Alpha-2 codes are two-letter codes (e.g., US, GB, JP) and are the most commonly used in web development, domain names, and locale settings. Alpha-3 codes are three-letter codes (e.g., USA, GBR, JPN) that offer better readability and are used in international trade, shipping, and banking standards like SWIFT/BIC codes.

How are flag emojis generated from country codes?

Flag emojis are derived from ISO 3166-1 alpha-2 codes using Unicode Regional Indicator Symbols. Each letter A–Z maps to a code point in the range U+1F1E6 to U+1F1FF. Combining two regional indicator symbols (e.g., U+1F1FA U+1F1F8 for 'US') produces the corresponding flag emoji. This is a Unicode standard, so rendering depends on the operating system and font.

What are country code top-level domains (ccTLDs)?

Country code top-level domains are two-letter domain extensions assigned to countries and territories based on their ISO 3166-1 alpha-2 codes (e.g., .us for United States, .uk for United Kingdom, .jp for Japan). Some ccTLDs like .tv (Tuvalu) and .io (British Indian Ocean Territory) are widely used for non-geographic purposes.

Why do some countries share calling codes?

The International Telecommunication Union (ITU) assigns calling codes based on geographic zones, not strictly per country. For example, the United States and Canada both use +1 as part of the North American Numbering Plan (NANP). Caribbean nations also share +1 with different area codes. Russia and Kazakhstan both use +7.

Is my data safe?

Yes. All country data is embedded in the page and processed entirely in your browser. No network requests are made, no search queries are tracked, and nothing is sent to any server. The tool works fully offline once loaded.

How often do country codes change?

Country code changes are rare but do occur. The ISO 3166 Maintenance Agency reviews changes when countries rename, merge, split, or gain independence. Recent examples include South Sudan (SS, SSD, 728) added in 2011 and Eswatini (SZ) which was previously Swaziland. Code changes can affect domain names, phone systems, and databases worldwide.

Related Tools