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 browser
Countries
Observers: the Holy See and Palestine. All ISO adds Taiwan, Hong Kong, Greenland, Puerto Rico and other territories.
Off: the names alone, so Copy all gives one country a line.
Countries
Your countries appear here.

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.

  1. Set How many countries (1, 5, 10 or 25 from the chips, or any number up to the size of the list).
  2. Choose a Continent, or keep Any continent.
  3. Under Which countries, keep UN member states (193), or include the observers or every ISO country and territory.
  4. Press Generate new for another draw, then copy one country, copy them all, or download the list as text or CSV.

Five random countries from Europe. Each press of Generate new gives a different five; this list comes from a fixed seed.

Input
How many countries: 5
Continent: Europe
Which countries: UN member states (193)
Output
🇺🇦 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,000

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.