Country Code Lookup

Search every ISO 3166-1 country code, with alpha-3, numeric, dialling code and ccTLD side by side.

The Country Code Lookup ships the whole table with the page, so every search and conversion happens on your device.

Built and maintained by Udit Agarwal

Convert coordinates

About Country Code Lookup

Country codes come in at least four flavours and no two systems agree on which to use. An HTML lang attribute and a ccTLD want the two-letter alpha-2, a passport or a football scoreboard uses alpha-3, a UN dataset uses the three-digit numeric code, and a phone field wants the ITU dialling code. This table carries all of them for every officially assigned ISO 3166-1 entry, searchable by any one of them or by name. Paste a column of codes from a spreadsheet and it converts the lot in one pass, flagging anything it cannot match, and the whole table exports as CSV or JSON.

Features

  • Every officially assigned ISO 3166-1 entry, all 249 of them
  • Alpha-2, alpha-3, numeric, dialling code, ccTLD and region in one row
  • Search by name or by any code system, including a dialling code
  • Filter by region: Africa, Americas, Asia, Europe, Oceania or Antarctica
  • Bulk convert a pasted list of codes, with unmatched entries called out
  • Country names shown in your own language where your browser can supply them
  • Export the matching rows as CSV or JSON

How to use the Country Code Lookup

  1. Type a country name or any of its codes into the search box
  2. Or switch to the convert tab and paste a list of codes
  3. Filter by region to narrow a long table
  4. Copy the rows you need, or download them as CSV or JSON

Example

Input

DE

Output

DE · DEU · 276 · +49 · .de · Germany

One row carries every identifier a form, an API or a dataset is likely to ask for.

Common errors & troubleshooting

  • A code from an old dataset is not in the table. — It may have been withdrawn. Codes such as AN for the Netherlands Antilles and CS for Serbia and Montenegro were retired when the countries changed, and ISO does not reassign them for fifty years.
  • The United Kingdom's ccTLD does not match its alpha-2 code. — It is the well-known exception. The ISO code is GB but the domain is .uk, because the domain was assigned before the standard settled. Both are shown so neither surprises you.
  • Several countries share the same dialling code. — That is correct for the North American Numbering Plan, where more than twenty countries share +1 and are separated by area code. Those area codes are shown after the plus-one.
  • A name in the table does not match the one used locally. — The table carries the short English name from the standard, which is sometimes formal — Korea, Republic of rather than South Korea. Search matches on fragments, so either spelling finds it.

Frequently asked questions

What is the difference between alpha-2 and alpha-3 country codes?
Alpha-2 is the two-letter code used by ccTLDs, HTML lang attributes and most web APIs. Alpha-3 is the three-letter form, which is more readable to a person and is used by the UN, FIFA, ICAO and many financial file formats.
What are the numeric country codes for?
They are language-independent, so they survive translation and script changes, and they suit systems that store codes as numbers. UN statistical datasets and several customs formats use them as the primary key.
Is XK a valid code for Kosovo?
Not officially. Kosovo has no ISO 3166-1 assignment, so XK is a user-assigned code that the European Commission and several payment networks adopted by convention. It is not in this table for that reason.
Why is the ccTLD usually the same as the alpha-2 code?
Because ccTLDs were assigned from the ISO list in the first place. The handful of exceptions come from domains that predate the assignment or from territories with no delegated domain at all.
Do these codes cover territories as well as countries?
Yes. ISO 3166-1 covers dependent territories and areas of special interest, which is why Guernsey, Réunion, Antarctica and the British Indian Ocean Territory all have their own entries.

Related tools

  • Coordinate Converter (DMS & Decimal) — Convert coordinates between decimal degrees, DMS and degrees-decimal-minutes, both ways, in your browser.
  • Geographic Midpoint Calculator — Find the true midpoint of two or more coordinates, with optional weights.
  • Distance Between Coordinates — Measure the great-circle distance between two latitude/longitude points in km, miles and nautical miles, with bearing and a map.
  • Plus Codes Converter — Convert between latitude/longitude and a Plus Code (Open Location Code) both ways, with the covered bounding box and cell size.
  • UTM Converter — Convert between latitude/longitude and UTM coordinates (zone, hemisphere, easting, northing) on the WGS84 ellipsoid.
  • Coordinate Map Viewer — Plot a latitude/longitude on an OpenStreetMap map, or click the map to read coordinates back out.

Guides

More Geo / Maps tools

  • Coordinate Map Viewer — Plot a latitude/longitude on an OpenStreetMap map, or click the map to read coordinates back out.
  • GPX to GeoJSON — Convert GPX to GeoJSON and back — GPS tracks, routes and waypoints to GeoJSON features, or GeoJSON back to a GPX file.
  • KML to GeoJSON — Convert KML ⇄ GeoJSON — turn Google Earth KML into GeoJSON for web maps, or GeoJSON back into KML.
  • WKT to GeoJSON — Convert WKT (Well-Known Text) to GeoJSON and back, in your browser.
  • GeoJSON to CSV — Convert a GeoJSON FeatureCollection to CSV and back — Point features become latitude/longitude columns with their properties.
  • Plus Codes Converter — Convert between latitude/longitude and a Plus Code (Open Location Code) both ways, with the covered bounding box and cell size.
  • MGRS Converter — Convert between latitude/longitude and MGRS (Military Grid Reference System) coordinates, both ways, in your browser.
  • Distance Between Coordinates — Measure the great-circle distance between two latitude/longitude points in km, miles and nautical miles, with bearing and a map.
  • GPX Viewer — Open a GPX file and see its tracks, routes and waypoints on a map, with distance, elevation and bounds.
  • Coordinate Converter (DMS & Decimal) — Convert coordinates between decimal degrees, DMS and degrees-decimal-minutes, both ways, in your browser.
  • Geohash Converter — Encode latitude/longitude to a geohash and decode a geohash back to coordinates, with bounding box and neighbors.
  • Polyline Encoder & Decoder — Encode coordinates to a Google encoded polyline string and decode polylines back to coordinates or GeoJSON.

See all Geo / Maps tools (23) · All tools