A random country generator picks countries from a list of all 195 states in the United Nations system, with capitals, flags and ISO codes. Filter by continent or choose only EU member states, draw up to 20 at a time, and use no repeats to see each country once.
Last updated: 26 October 2026
🇨🇩 Democratic Republic of the Congo (capital: Kinshasa, CD)🇬🇦 Gabon (capital: Libreville, GA)🇧🇹 Bhutan (capital: Thimphu, BT)🇦🇱 Albania (capital: Tirana, AL)🇳🇴 Norway (capital: Oslo, NO)
Sample countries shown from 195 in the list. Press Generate for a new set with flags.
How to use the random country generator
Choose a continent, or leave it on any continent for the whole world. Tick EU member states only to draw from the 27 countries of the European Union. Set how many countries you want, from 1 to 20, and decide whether to show the flag and the capital. With no repeats on, a country is not shown again until every matching country has appeared.
Copy one country, copy the whole list, or download it as CSV or JSON with the country, capital, ISO code, continent and EU status in separate columns. Picks are made in your browser and nothing is sent to a server.

Random country picker by continent
The list follows the United Nations regional groupings, which place each country on one continent even when it spans two. Turkey, Georgia, Armenia, Azerbaijan, Kazakhstan and Cyprus are listed under Asia, and Russia under Europe. The table shows how many countries each continent has in the list, and how many of them belong to the EU.
| Continent | Countries in the list | EU member states |
|---|---|---|
| Africa | 54 | 0 |
| Asia | 48 | 1 |
| Europe | 44 | 26 |
| North America | 23 | 0 |
| South America | 12 | 0 |
| Oceania | 14 | 0 |
| World | 195 | 27 |
Random EU country generator
The EU option limits the draw to the 27 member states. It suits geography quizzes, trip ideas and school projects about the union. Here is the full list of EU members in the generator, with their capitals and two-letter ISO codes.
| EU member state | Capital | ISO code |
|---|---|---|
| 🇨🇾 Cyprus | Nicosia | CY |
| 🇦🇹 Austria | Vienna | AT |
| 🇧🇪 Belgium | Brussels | BE |
| 🇧🇬 Bulgaria | Sofia | BG |
| 🇭🇷 Croatia | Zagreb | HR |
| 🇨🇿 Czechia | Prague | CZ |
| 🇩🇰 Denmark | Copenhagen | DK |
| 🇪🇪 Estonia | Tallinn | EE |
| 🇫🇮 Finland | Helsinki | FI |
| 🇫🇷 France | Paris | FR |
| 🇩🇪 Germany | Berlin | DE |
| 🇬🇷 Greece | Athens | GR |
| 🇭🇺 Hungary | Budapest | HU |
| 🇮🇪 Ireland | Dublin | IE |
| 🇮🇹 Italy | Rome | IT |
| 🇱🇻 Latvia | Riga | LV |
| 🇱🇹 Lithuania | Vilnius | LT |
| 🇱🇺 Luxembourg | Luxembourg | LU |
| 🇲🇹 Malta | Valletta | MT |
| 🇳🇱 Netherlands | Amsterdam | NL |
| 🇵🇱 Poland | Warsaw | PL |
| 🇵🇹 Portugal | Lisbon | PT |
| 🇷🇴 Romania | Bucharest | RO |
| 🇸🇰 Slovakia | Bratislava | SK |
| 🇸🇮 Slovenia | Ljubljana | SI |
| 🇪🇸 Spain | Madrid | ES |
| 🇸🇪 Sweden | Stockholm | SE |
Random country with flag, capital and ISO code
Each country comes with its capital and its ISO 3166-1 alpha-2 code, the two-letter code used on flags, internet domains and shipping forms. The flag is drawn from that code. On some devices, notably Windows computers, flag emoji appear as two letters; switch the flag option off if you prefer plain text. A few capitals are matters of dispute or have more than one seat of government, and the list shows the name most commonly given.
Ways to use a random country
Teachers use the picker for geography warm-ups: draw a country and ask the class for its capital, continent or neighbours. Travellers use it to choose a destination for a coin-flip holiday, and writers use it to place a story somewhere unexpected. For a quiz night, draw five countries without repeats and give a point for each correct capital. Explore more free utilities on the SoShareIT Tools home page.

Random country generator FAQ
How many countries are in the list?
The list has 195 countries: the 193 member states of the United Nations plus the two observer states, the Holy See (Vatican City) and Palestine. Each entry has a capital, a two-letter ISO 3166-1 code and a continent.
How do I get a random EU country?
Tick EU member states only. The tool then chooses from the 27 countries that belong to the European Union. You can combine it with a count and no repeats to draw several different EU countries.
Which continent is a country on if it spans two?
Each country is placed on one continent following the United Nations regional groupings. Turkey, Georgia, Armenia, Azerbaijan, Kazakhstan and Cyprus are listed under Asia, and Russia is listed under Europe.
Why does a flag show as two letters on my device?
Flags are emoji made from the two-letter country code. Some systems, notably Windows, draw them as letters instead of a flag. Turn off the flag option if you prefer plain text.