🌐 Country Code Lookup
Find ISO alpha-2, alpha-3, dialing codes, country TLDs, and currency codes for 250 countries. Search, sort, and copy with one click.
| Name▲ | Alpha-2▲ | Alpha-3▲ | Dial Code▲ | TLD▲ | Currency▲ |
|---|
📋 When to Use Country Code Lookup
- API and localization development — Map country names to ISO 3166-1 alpha-2 and alpha-3 codes for payment gateways, shipping APIs, and locale detection.
- International phone number formatting — Look up dialing codes (+1, +44, +90, +81, etc.) for E.164 phone number validation and formatting.
- Domain registration and research — Check country code top-level domains (ccTLDs) like .us, .uk, .de, .jp, .tr for domain availability and SEO targeting.
- Currency code validation — Find ISO 4217 currency codes (USD, EUR, JPY, TRY, etc.) for e-commerce, accounting, and financial API integrations.
- Travel and logistics planning — Quickly reference dial codes and currency information when traveling internationally or shipping across borders.
⚙️ How the Country Code Lookup Works
The Country Code Lookup is a fully client-side reference tool. A built-in dataset of 250 countries and territories is loaded as a JavaScript array when the page opens. As you type in the search box, the tool filters the dataset in real time — matching against the country name, alpha-2 code, alpha-3 code, dialing code, TLD, and currency code. The search is case-insensitive and uses substring matching, so typing "Unit" finds both "United States" and "United Arab Emirates", while typing "+1" finds all countries sharing the North American dialing plan. Click any column header to sort the data by that column, toggling between ascending and descending order. Click any code value in the table to copy it to your clipboard — a brief "Copied!" toast confirms the action. All processing happens in your browser — no data is sent to any server.
How to Use the Country Code Lookup
- Search — Type a country name, ISO code, dialing code, TLD, or currency in the search box. The table updates instantly as you type, matching across all columns.
- Sort — Click any column header to sort the entire table by that field. Click again to reverse the sort direction. The active sort column is highlighted with the cyan arrow.
- Copy codes — Click any ISO code, dialing code, TLD, or currency value in the table. It is copied to your clipboard and a "Copied!" confirmation appears above the value.
- Scroll — Browse the full 250-country dataset by scrolling through the table. The table header stays visible as you scroll (sticky header).
Frequently Asked Questions
What are ISO alpha-2 and alpha-3 country codes?
ISO 3166-1 defines two-letter (alpha-2) and three-letter (alpha-3) country codes. Alpha-2 codes (e.g., US, GB, DE, TR) are the most widely used standard — they appear in URLs, payment gateways, and shipping forms. Alpha-3 codes (e.g., USA, GBR, DEU, TUR) provide more mnemonic clarity and are commonly used in passports and international organizations. Both are maintained by the International Organization for Standardization.
What is a country code top-level domain (ccTLD)?
A ccTLD is a two-letter domain extension assigned to a country or territory, based on its ISO 3166-1 alpha-2 code. Examples include .us (United States), .uk (United Kingdom), .de (Germany), .jp (Japan), and .tr (Turkey). ccTLDs are managed by each country's designated registry and are used for websites targeting specific geographic audiences.
How do international dialing codes work?
International dialing codes (country calling codes) are prefixes used to call a phone number in another country. They range from 1 to 4 digits and are preceded by the international access code (00 or +). The North American Numbering Plan (+1) covers the US, Canada, and many Caribbean nations. Most European countries use +3xx or +4xx codes, while Asian countries use various prefixes from +60 to +99.
What are ISO 4217 currency codes?
ISO 4217 is the international standard for three-letter currency codes. The first two letters identify the country or economic region, and the third letter identifies the currency unit. For example, USD = United States Dollar, EUR = Euro, JPY = Japanese Yen, TRY = Turkish Lira, GBP = British Pound. These codes are essential for financial transactions, e-commerce platforms, and currency exchange systems.
Can I copy multiple codes at once?
Yes. While clicking individual code cells copies that single value, you can also select multiple rows and cells using your browser's native selection (click and drag, or shift-click), then press Ctrl+C (Cmd+C on Mac) to copy the selected text. The tool does not interfere with standard browser text selection behavior.
Does the tool work offline?
Yes — once the page loads, the entire country dataset is stored in memory. All filtering, sorting, and copy operations happen client-side. No internet connection is needed after the initial page load. The tool works in airplane mode or with intermittent connectivity.
How often is the country data updated?
The dataset is based on the latest ISO 3166-1 and ISO 4217 standards. Country codes rarely change — when they do (e.g., a country changes its name or splits), this tool is updated to reflect the current standard. The most recent addition was South Sudan (SS/SDS, +211) in 2011.
Why are some territories included in the list?
The tool includes both sovereign UN member states and several non-sovereign territories that have their own ISO codes, dialing codes, TLDs, or currencies — such as Hong Kong (.hk, +852, HKD), Puerto Rico (+1-787, USD), and the British Virgin Islands (.vg, +1-284, USD). These entities are commonly needed in business, travel, and development contexts.