Country Codes Reference
Look up ISO 3166 country codes - alpha-2 (two-letter), alpha-3 (three-letter), and numeric codes for 53 countries. Includes capitals, continents, and international phone dialing prefixes. Search by name, code, or region. Click any code to copy.
FAQ
ISO 3166 is the international standard for country codes. Alpha-2 (e.g., US) is used for top-level domains and locale tags. Alpha-3 (e.g., USA) is used in machine-readable documents. Numeric codes (e.g., 840) are language-independent.
Yes, click any alpha-2, alpha-3, or numeric code to copy it to your clipboard instantly. The code briefly highlights green to confirm the copy.
Geopolitical changes, disputed territories, and special administrative regions create edge cases. For example, Taiwan is TW/TWN/158. The United Kingdom is GB/GBR/826. Some dependencies and territories (like Puerto Rico, PR/PRI/630) have their own codes distinct from their sovereign state.
For locale detection and content localization, HTML lang attribute (lang='en-US'), hreflang tags for multilingual SEO, currency formatting, address forms, phone number validation, and geo-targeting in analytics and advertising platforms.
Search by country name, any ISO code, capital city, continent, or phone prefix. Results filter instantly as you type. The table shows all matching countries sorted alphabetically.
More tools
JSON Formatter
Pretty-print, validate, and minify JSON with syntax highlighting.
RegEx Tester
Write and test regular expressions with real-time match highlighting.
CSS Minifier
Compress stylesheets by stripping whitespace, comments, and redundant declarations.
JavaScript Minifier
Shrink JS payloads with intelligent minification.
Diff Checker
Compare two text blocks side-by-side and see exactly what changed.
Markdown Preview
Write Markdown and see the rendered HTML preview update in real time.