Random Country Generator

Pick a random country from all 195, spin a country wheel, or guess a random flag. Every country in the filter has exactly the same chance.

Continent
Space = generate
Press GenerateYour random countries appear here with flag, capital, area, languages and neighbours.
History

    What is a random country generator?

    A random country generator picks a country for you at random, the same way a dice roll picks a number. Press Generate and the tool draws one country – or up to 50 at once – from the 195 countries of the world, then shows its flag, capital, area, languages, currency and land neighbours. You can narrow the draw to one continent, to landlocked countries, to big or small countries, or to countries that start with a certain letter.

    The same page also works as a random country picker wheel and as a random flag generator. The Country wheel tab puts a set of countries on a spinning wheel, which is handy for classrooms, streams and party games where everyone wants to watch the result. The Flag quiz tab shows a random flag and four answers, and keeps your score and best streak, so it doubles as geography practice.

    People use a random country picker for all kinds of reasons: choosing a country for a school project, deciding where to travel next, picking a cuisine to cook tonight, setting a challenge in games like GeoGuessr or Civilization, starting a world-building or writing prompt, or simply learning one new country a day. Whatever the reason, the point is the same – the choice is made fairly and you are not stuck with the five countries everyone always thinks of first.

    How to use the random country picker

    1. Choose your filters (optional). All six continents are on by default. Tap a continent to switch it off, or tap “All” to clear them and pick just one. Use Coastline, Size, Starts with and Neighbours to narrow it further. The box under the filters tells you how many countries match and the exact chance each one has.
    2. Pick how many. In the Generator tab, choose 1 to 50 countries. When you ask for more than one, every country in the result is different.
    3. Press Generate (or the Space bar on a computer). Each result card shows the flag, capital, sub-region, area in km² and square miles, main languages, currency, whether the country is landlocked, and its land neighbours, plus links to a map and to Wikipedia.
    4. Try the other modes. Spin the Country wheel, or switch to the Flag quiz and guess the country from its flag. Both modes use the same filters, so you can, for example, practise only African flags or spin a wheel of South American countries.
    5. Use the extras. “No repeats” works through your list without picking anything twice, “Hide names” turns the generator into a guessing game, and the History list keeps your last 50 picks with a Copy button.
    Tip: for a “country of the day”, switch on No repeats and generate one country each day. With 195 countries, one full round takes just over six months.

    How many countries are there, and which ones are included?

    There is no single official count, which is why random country lists online give different numbers. This tool uses the most widely used answer: 195 countries – the 193 member states of the United Nations plus the two observer states, Vatican City and Palestine.

    Turning on Add territories brings in 55 more places that have their own ISO country code but are not UN members, such as Bermuda, Faroe Islands, French Guiana, Greenland, Hong Kong, Kosovo, New Caledonia, Puerto Rico, Taiwan, Western Sahara. These are marked “territory” on the result card so you always know which is which. Antarctica and a few uninhabited islands are in this group too, so a wider draw can surprise you.

    Here is how the 195 countries split across the continents. Because every country has the same chance, the share of the list is also the chance that a single pick lands on that continent.

    ContinentCountriesChance per pickLandlocked
    Africa5427.7%16
    Asia4724.1%12
    Europe4523.1%14
    North America2311.8%0
    Oceania147.2%0
    South America126.2%2

    North America here includes Central America and the Caribbean. Continents follow the UN geoscheme.

    How the randomness works (and the real odds)

    The tool does not use the basic Math.random() function. It uses crypto.getRandomValues, the random number source browsers use for security keys, and then a Fisher–Yates shuffle to draw several countries without bias. That gives every country in your filter an exactly equal chance. With no filters, that chance is 1 in 195 (0.51%).

    Equal chances for countries do not mean equal chances for continents. Africa and Asia together hold 101 of the 195 countries, so 51.8% of all single picks land on one of those two continents, while South America comes up only 6.2% of the time. If you want a fair draw between continents, pick the continent first (use the chips), then generate.

    A few more numbers that are worked out from the same list the tool uses:

    • If you generate 5 different countries, the chance that at least one is landlocked is 72.6%, because 44 of the 195 countries have no coastline.
    • If you generate 10 different countries, the chance that at least one is African is 96.4%.
    • Two separate single picks land on the same continent 21.1% of the time.
    • Without “No repeats”, it takes about 1,141 single picks on average before you have seen every one of the 195 countries (the coupon-collector problem). With “No repeats” on, it takes exactly 195.

    Streaks, such as three European countries in a row, feel suspicious but are normal. The History list is there so you can check the results over time yourself.

    Using the filters well

    Continent

    Pick one continent for a regional quiz, or several to exclude the ones you already know. The pool counter updates instantly.

    Coastline: landlocked countries

    44 countries have no coastline at all. Africa has the most (16), followed by Europe (14) and Asia (12). The landlocked countries of Europe are Andorra, Austria, Belarus, Czechia, Hungary, Liechtenstein, Luxembourg, Moldova, North Macedonia, San Marino, Serbia, Slovakia, Switzerland, Vatican City. Landlocked filters are popular in geography trivia because people rarely remember them all.

    Size

    Areas are total areas in square kilometres. “Small” means under 25,000 km² (50 countries – smaller than Rwanda), “Medium” is 25,000 to 500,000 km² (94 countries) and “Large” is over 500,000 km² (51 countries). Picking only large countries is a quick way to get places that are easy to find on a map; picking small ones gives you micro-states and island nations.

    Starts with a letter

    Useful for games like Scattergories, Name-Place-Animal-Thing or alphabet challenges. The most common first letters are S (26), M (18), B (17), C (16), A (11). No country in the main list starts with W, X.

    Neighbours

    “No land borders” returns the 38 countries that are islands or otherwise share no land border with another country, such as Japan, Iceland and Australia. “5+ land borders” returns the 60 countries with five or more neighbours. The countries with the most land neighbours are China (16), Russia (14), Brazil (10), DR Congo (9), Germany (9), Austria (8).

    The biggest and smallest countries you can get

    The size gap between countries is huge, and a random pick is just as likely to give you Russia as Monaco. These are the ten largest and ten smallest of the 195 countries by total area, from the data the tool uses.

    #Largest countriesContinentArea (km²)
    1RussiaEurope17,098,242
    2CanadaNorth America9,984,670
    3ChinaAsia9,706,961
    4United StatesNorth America9,372,610
    5BrazilSouth America8,515,767
    6AustraliaOceania7,692,024
    7IndiaAsia3,287,590
    8ArgentinaSouth America2,780,400
    9KazakhstanAsia2,724,900
    10AlgeriaAfrica2,381,741
    #Smallest countriesContinentArea (km²)
    1Vatican CityEurope0.44
    2MonacoEurope2.02
    3NauruOceania21
    4TuvaluOceania26
    5San MarinoEurope61
    6LiechtensteinEurope160
    7Marshall IslandsOceania181
    8Saint Kitts and NevisNorth America261
    9MaldivesAsia300
    10MaltaEurope316

    Russia alone is about 38,859,641 times the size of Vatican City.

    The country wheel

    A wheel is the most fun way to pick a random country when other people are watching. Open the Country wheel tab, choose how many countries go on the wheel and press Spin (or tap the wheel). The winner is decided the moment you press Spin, using the same cryptographic random numbers, and the animation then lands on it – so the wheel is fair even though it looks dramatic.

    Twelve or 24 countries make the easiest wheel to read on a phone. Forty works well on a laptop or projector. “All in filter” puts every matching country on the wheel; with 195 countries the slices get thin and the names are shortened, but every slice is still exactly the same size. “New countries” reloads the wheel with a fresh random set from your filter.

    Wheel ideas: spin a country for a classroom presentation, a “mystery dinner” night where you cook a dish from the winner, a travel bucket list, a fantasy-football style draft of countries, or a stream challenge where chat watches the spin.

    Random flag generator and flag quiz

    The Flag quiz tab turns the generator into a random flag game. It shows a random flag from your filter and four country names. Wrong answers are taken from the same continent where possible, so you cannot just guess by region. Lookalike flags are the real test: Chad and Romania, Indonesia and Monaco, or Ireland and Côte d'Ivoire are almost identical. Your score, accuracy, current streak and best streak are saved on your device.

    If you only want random flags without the quiz, switch on Hide names in the Generator tab. You will get flag-only cards; tap a card to reveal the country and its details.

    Ways to learn flags faster with the tool:

    • Study one continent at a time. Europe and South America are the easiest starts because their flags are well known.
    • Group similar flags. Many flags share the pan-African colours (green, yellow, red), the pan-Arab colours (red, white, black, green) or the Nordic cross.
    • Use No repeats with Hide names to work through every flag once, like a deck of flashcards.
    • Aim for a streak of 20 before moving on to the next continent.

    Ideas for using a random country

    • School and homework: assign each student a random country for a report, or use the wheel to choose the next country the class studies.
    • Travel planning: filter by continent and size, generate five options and research flight times and visas for each.
    • Cooking: spin a country and cook one of its national dishes. Use No repeats to work around the world.
    • Games: set a starting country for GeoGuessr, Civilization, Hearts of Iron or Europa Universalis runs, or use “Starts with” for word games.
    • Writing and art: spin a setting for a short story, a character's home country or a drawing prompt.
    • Language learning: the Languages line shows the main official languages, so you can pick a random country and learn how to say hello in its language.
    • Sports and quizzes: draw random countries for a mock World Cup, a pub-quiz round or a trivia night.

    What each result card shows

    Every country card is built from open data, not from guesses:

    • Flag – the current national flag.
    • Capital – the official capital. Where a country has more than one, the first listed is shown (for example Pretoria for South Africa).
    • Region – the UN sub-region, such as Western Africa or South-Eastern Asia.
    • Area – total area in square kilometres and square miles (1 km² = 0.386102 mi²).
    • Languages – up to three official or main languages.
    • Currency – the official currency and its symbol.
    • Coast and Neighbours – whether the country is landlocked and which countries share a land border with it.

    Data: mledoze/countries (Open Database License), ISO 3166-1 codes; flags via flagcdn.com. Country borders and names can be politically sensitive – the tool follows ISO and UN usage and does not take a position on disputes.

    Frequently asked questions

    How many countries are in the random country generator?

    By default it picks from 195 countries: the 193 member states of the United Nations plus the two UN observer states, Vatican City and Palestine. Turn on “Add territories” to add 55 more places such as Greenland, Puerto Rico, Taiwan and Kosovo, for 250 in total.

    Is the random country really random?

    Yes. Each pick uses your browser's cryptographic random number generator (crypto.getRandomValues), and every country that passes your filters has the same chance. With all 195 countries that is 1 in 195, or 0.51%. When you ask for several countries at once they are drawn without replacement, so the same country never appears twice in one result.

    Can I pick a random country from one continent only?

    Yes. Tap the continent chips to choose one or more continents. Africa has 54 countries, Asia 47, Europe 45, North America 23 (including Central America and the Caribbean), Oceania 14 and South America 12.

    How do I stop the same country coming up again?

    Switch on “No repeats”. The tool remembers what it has already picked (in your own browser) and only draws from the countries that are left. When every country in your filter has come up once, a new round starts automatically.

    Which continent is Russia or Turkey in?

    The tool follows the UN geoscheme used by most atlases: Russia, which spans Europe and Asia, is listed in Europe (Eastern Europe), and Turkey, Cyprus, Georgia, Armenia and Azerbaijan are listed in Asia (Western Asia). Egypt is in Africa. Mexico and the Caribbean count as North America.

    Does the country wheel work with every country?

    Yes. Choose 12, 24 or 40 countries for a wheel that is easy to read, or “All in filter” to put every matching country on the wheel. Press “New countries” to load a different random set. Each country on the wheel has an equal slice and an equal chance.

    Where does the country data come from?

    Names, capitals, regions, areas, languages, currencies and land borders come from the open mledoze/countries dataset (ODbL licence), which is based on official ISO 3166 codes. Flags are loaded from flagcdn.com. Areas are total areas in square kilometres, including inland water.

    Can I use it on my phone or in class?

    Yes. It works in any modern browser on phones, tablets and computers, needs no sign-up, and keeps your filters, history and quiz score on your own device. On a computer, press the Space bar to generate, spin or move to the next flag.

    Related tools