Country codes and lists
Lists of the 252 countries and territories in GeoNames: ISO codes, calling codes, currencies, domains, postal code formats and languages, plus one list per continent. Every list is a free CSV, Excel and JSON file under CC BY 4.0.
Code lists
ISO country codes list: alpha-2, alpha-3 and numeric
Three ISO 3166-1 codes for every country and territory: the two-letter code used for domains and most software, the three-letter code used by the UN, World Bank and IMF, and the three-digit numeric code, which does not depend on the alphabet.
listCountry calling codes list
The international dialling code for each country and territory, the number you dial after the international prefix (+).
listCurrency codes by country
The ISO 4217 code of the main currency used in each country and territory, with the currency name as GeoNames gives it.
listCountry code top-level domains (ccTLD) list
The country code top-level domain for each country and territory.
listPostal code formats by country
The shape of a postal code in each country and a regular expression that matches it, for validating address forms.
listLanguages spoken by country (language codes)
The languages GeoNames lists for each country, as language tags such as en-US or fr-CA (an ISO 639 language code, optionally with the country).
By continent
Countries of Africa
ISO codes, capital, area, currency and neighbours.
continentCountries of Asia
ISO codes, capital, area, currency and neighbours.
continentCountries of Europe
ISO codes, capital, area, currency and neighbours.
continentCountries of North America
ISO codes, capital, area, currency and neighbours.
continentCountries of South America
ISO codes, capital, area, currency and neighbours.
continentCountries of Oceania
ISO codes, capital, area, currency and neighbours.
Source: GeoNames countryInfo (CC BY 4.0), retrieved 19 November 2026. GeoNames includes territories such as Greenland and Puerto Rico as separate entries, and keeps some older ones such as the Netherlands Antilles for compatibility.