Random Country Generator
: Pick one or many random countries with flag, capital, continent and population: UN member states, observers or every ISO country and territory, from any continent, no repeats, in your browserRandom Country Generator
This random country generator picks one country or a list of them, with each one's flag, capital, continent, population and two-letter ISO code. Draw from the 193 UN member states, add the two observer states, or take all 249 countries and territories in the ISO 3166-1 list, from any continent or just one. A list never repeats a country, and it is drawn in your browser.
How to generate a random country
- Set
How many countries(1, 5, 10 or 25 from the chips, or any number up to the size of the list). - Choose a
Continent, or keepAny continent. - Under
Which countries, keepUN member states (193), or include the observers or every ISO country and territory. - Press
Generate newfor another draw, then copy one country, copy them all, or download the list as text or CSV.
Example
Five random countries from Europe. Each press of Generate new gives a different five; this list comes from a fixed seed.
How many countries: 5
Continent: Europe
Which countries: UN member states (193)🇺🇦 Ukraine: Kyiv, about 38 million
🇲🇩 Moldova: Chișinău, about 2.5 million
🇩🇰 Denmark: Copenhagen, about 5.9 million
🇸🇰 Slovakia: Bratislava, about 5.4 million
🇲🇹 Malta: Valletta, about 550,000Details
- Continents follow the UN's M49 regions. The UN puts the Americas in one region; here they are split, with Northern America, Central America and the Caribbean as North America and the rest as South America. That gives 54 UN member states in Africa, 47 in Asia, 43 in Europe, 23 in North America, 12 in South America and 14 in Oceania. Russia counts as Europe, and Türkiye (Turkey), Cyprus and the Caucasus countries as Asia, as the UN lists them.
UN members and observers (195)adds the Holy See (Vatican City) and Palestine, the two non-member observer states.All ISO 3166-1 countries and territories (249)adds 54 more places with their own ISO country code, such as Taiwan, Hong Kong, Greenland, Puerto Rico, Western Sahara and Antarctica, which is the only entry on that continent.- Capitals come from the World Bank's country list, with a few kept up to date by hand: Kyiv, Gitega for Burundi and Ngerulmud for Palau. Where a country has more than one capital, all are shown, as with South Africa (Pretoria, Cape Town, Bloemfontein) and Bolivia (Sucre, La Paz). Places with none, such as Antarctica, Hong Kong and Macao, show a dash.
- Populations are World Bank 2023 figures (UN World Population Prospects for places the World Bank leaves out), rounded so they read easily: "about 83 million", "about 5,300". Names are the short English ones, such as Czechia, Côte d'Ivoire and Türkiye. The table was read on 2026-12-05.
- The flag is the emoji made from the country's ISO code, so no image is downloaded. Turn off
Show flag, capital, continent and populationto get the names alone, one a line, ready for a quiz, a game or a list.
Limits
- You can ask for as many countries as the list holds and no more: 43 for UN members in Europe, for example. Asking for more shows how many there are instead of repeating any.
- It does not invent countries: no made-up names for a story or game. For a wheel to spin in front of a class, paste the names into Spin the Wheel.
- Disputed places are shown with their status in a few words (Israel's capital Jerusalem, Western Sahara's Laayoune), not with a political position.
FAQ
How many countries are there in the world?
The UN has 193 member states and 2 observer states (the Holy See and Palestine), so most counts say 195. The ISO 3166-1 list of country codes has 249 entries, because it also gives codes to territories such as Greenland, Puerto Rico and Hong Kong, and to Taiwan.
Does it include territories like Puerto Rico or Greenland?
Only when you choose All ISO 3166-1 countries and territories under Which countries. The default draws UN member states alone.
Is the pick really random and fair?
Yes. Every country in the chosen list has the same chance, drawn with your browser's secure random numbers (crypto.getRandomValues), and no country appears twice in one list.
Why does the flag show as two letters?
Windows does not draw flag emoji, so it shows the two letters of the country code instead (AU for Australia). On a phone, a Mac or Linux the flags appear.
Can I pick a random country from one continent?
Yes. Choose it under Continent: there are 43 UN member states in Europe, 54 in Africa and 47 in Asia. Antarctica has no countries, so it works only with All ISO 3166-1 countries and territories.
Runs entirely in your browser. Nothing is uploaded.