Random Country Generator
Generate random countries for quizzes, travel bucket lists, and games. Filter by continent, show the capital and flag, and pick with no repeats.
- Free, no account
- No watermark
- No usage limit
About the Random Country Generator
Ask anyone to name a random country and you'll get France. Or Japan, or Brazil, maybe Egypt if they're feeling adventurous. The same six or seven names sit near the front of everyone's brain, and that predictability is exactly what this tool fixes. Pick how many countries you want, press Regenerate, and you get a fresh batch pulled evenly from all 195 of them, including the 180-odd nations like Kiribati, Eswatini, and Suriname that your memory quietly skips. Free, no sign-up, and every pick happens right in your browser, so it's instant and nothing gets uploaded. Filter to a single continent, switch on the capital and flag, and each result reads 🇯🇵 Japan (Tokyo) instead of a bare name.
The real job is settling arguments
Most of the time you just want a country you wouldn't have thought of, and any surprising pick does the job. But the reason teachers and organizers keep this open is fairness. Assign one country per student for a research project, hand out delegations for a Model UN session, split up the topics for a flag round, and somebody always suspects the draw was fixed. That you gave the big powers to your friends, or kept the easy one for yourself. A machine pick answers that suspicion cold. It has no idea which countries are famous and it doesn't care, so nobody can argue you weighted it, the browser did the picking.
Under that promise sits a real detail, and I'll be straight about it. Every pick uses your browser's cryptographic random generator paired with a method called rejection sampling, which means every country in the pool has an exactly equal chance, no rounding bias, no nation quietly favored. Plenty of country pickers reach for plain old Math.random() instead, which carries a small, well-documented lean when its output gets mapped onto a fixed-size list. You'd never feel that difference at game night, and I won't pretend you would. But being actually even costs nothing, so that's what runs, and when a fair assignment is genuinely on the line you can call the draw provably uniform and mean it.
Flip on No repeats and the tool runs a Fisher-Yates shuffle across the whole matching pool, so a class of thirty walks away with thirty different countries and zero doubling up. That's the setup that makes "everyone got a random one, I didn't choose" actually true, no arguing later.
How to use
- Pick a continent, or leave it on All for the full 195-country list. The line under the buttons tells you how many countries that filter holds.
- Set how many you want, anywhere from 1 to 50, using the minus and plus buttons or by typing a number straight in.
- Choose what to show. Tick Show flag for the emoji, Show capital for the city, Show continent to label the region. Untick all three and you get plain country names.
- Leave No repeats on so every country in a batch is unique, or turn it off to allow duplicates and draw more than a small continent actually holds.
- Press Regenerate for a new batch. Click any single result to copy just that one, or Copy all to grab the whole list at once, one country per line, formatted the way your toggles show it.
The continents are more lopsided than you think
Flip the filter and the counts jump out, because the continents are wildly uneven and most people guess them wrong. On the common six-continent model this tool uses:
- Africa has 54, the most of any continent and the one people lowball hardest. Ask someone to name ten African countries and watch them stall out around six.
- Asia, 48. The giants like China, India, and Indonesia, plus a long tail of Central Asian and Gulf states that slip everyone's mind, Kyrgyzstan, Bhutan, Brunei.
- Europe comes in at 44 once you count the microstates nobody can produce on demand, San Marino, Liechtenstein, Andorra, Monaco.
- 23 for North America, which sounds low until you remember it swallows all of Central America and the Caribbean, every island from Barbados to Saint Kitts.
- South America has just 12, it surprises people every single time.
- Oceania, 14, Australia and New Zealand alongside a scatter of Pacific nations like Tuvalu, Nauru, and Palau.
For a teacher that unevenness is a feature. Studying Africa this week? Set the filter to Africa with No repeats on. Every student then draws from those 54, and nobody in the class ends up researching Canada during the Africa unit. The counts are half the lesson on their own, a kid who sees South America hold twelve while Africa holds fifty-four stops treating the map as an abstraction.
Is it 193, 195, or 197 countries?
Short version, 195 is the number most people mean and it's what this tool uses. You'll still see 193, 195, and even 197 quoted all over the place, and none of them are typos. They're just different definitions, and it pays to know which is which so a student can't "correct" your quiz with a number pulled from a different source.
193 is the count of full member states of the United Nations, the strictest possible line. 195 adds the two UN observer states, the Holy See (Vatican City) and Palestine, recognized enough to sit in the room but not full members. That 195 is the pool this tool draws from. The figure climbs to 197 or higher once you count places that run themselves and are recognized by some nations but hold no UN seat, Taiwan and Kosovo most often. Taiwan runs itself completely, government and passport and all, but has no seat because of the standoff with China. Kosovo declared independence in 2008 and roughly a hundred countries recognize it, short of what a seat requires.
We stop at 195 and leave the contested cases off. Not a political statement, just the cleanest line for a game or a classroom. If your quiz counts Taiwan, add it in your own head, the tool won't stop you.
Same caveat for the continent buckets. The transcontinental countries sit right on a line and you can file them either way. We put Russia in Europe, Turkey and the Caucasus in Asia, Egypt in Africa. Common convention, not a law of nature.
Frequently asked questions
Can I get just one country instead of a whole list?
Set the count to 1 with the minus button or by typing "1," then press Regenerate. You get a single country, one flag, one capital, which is the setup for a game-show style reveal or picking one destination to commit to. Every press is a fresh draw, and because the pick is uniform it's a genuinely fair one-off, not a soft nudge toward somewhere famous.
Why did I get fewer countries than I asked for?
No repeats can't hand you more distinct countries than the continent actually contains. Ask for 50 from South America, which only has 12, and you'll get all 12 plus a note explaining why. If you truly need 50 rows, turn No repeats off and the same country can appear more than once, so the tool fills the full count. Either way it stays clamped, there's no input that makes it crash or hang.
Are the capitals and flags accurate?
Yes, and they're baked into the page rather than looked up live. Each entry pairs a country with its recognized capital, Tokyo for Japan, Canberra rather than Sydney for Australia, Ottawa rather than Toronto for Canada. Where a country has a split or multiple capitals we list the official or constitutional one, which is the answer a quiz expects, so South Africa is Pretoria and Bolivia is Sucre. Worth knowing that a couple of those are not where the government actually sits, La Paz for Bolivia and The Hague for the Netherlands, so a student who says either of those is not wrong so much as differently right.
A flag showed up as two letters in a box. What happened?
That's an old device or browser that can't render the flag emoji, so it falls back to the two-letter country code instead of the picture. The name and capital always display regardless, so nothing is broken, you're just seeing JP where a newer device would draw the Japanese flag. It doesn't affect the pick at all.
Does it work if my internet drops?
Once the page has loaded, yes. The whole country list ships inside the page, so there's no server to call when you press Regenerate. That's the privacy story too, nothing gets uploaded, logged, or saved, no account and no history. Refresh or close the tab and the batch is gone.
How is this different from a random word, letter, or team generator?
Different tools for different jobs. The random word generator hands you individual English words for games and writing prompts, the random letter generator gives you single letters A to Z for alphabet games, and the random team generator splits a list of names into fair groups. This one deals in whole countries, with capitals, flags, and continent filters, built for geography lessons, travel ideas, and anything world-themed.