Random Country Generator
Pick a random country with its flag and capital.
Loading the random country generator… If nothing appears, please turn on JavaScript.
This random country generator picks from all 195 countries in the world: the 193 member states of the United Nations plus the two observer states, Vatican City and Palestine. Each result shows the country’s flag, capital and continent, with links to read more or see it on a map.
How to use the random country generator
- Press Pick a country (or the spacebar).
- Choose continents under Options to limit the list, for example Africa or South America.
- Filter by first letter for word games like Name, Place, Animal, Thing.
- Generate several at once, or press Wheel to spin for a country.
Ideas for using random countries
- Geography practice: name the capital before you look, or find the country on a map.
- Flag quizzes: show only the flag and ask friends to guess the country.
- Travel inspiration: pick your next holiday destination, or a country to learn about.
- Cooking challenges: cook a dish from a random country each week.
- Classroom projects: give each student a random country to research and present.
- World Cup and sports sweepstakes: draw countries for each player.
Keep, copy and share your countries
Every result has a lock button. Locked results stay put when you generate again, so you can keep the countries you like and reroll the rest. The history panel keeps your earlier results, and the back arrow takes you to the previous set if you generated one time too many. Press Wheel to put the current results on a spinning wheel and pick one with a bit of drama.
Use Copy to copy the results as a plain list, CSV or JSON, or download them as a file. Share copies a link that shows exactly the same results to whoever opens it, which is handy for games, classes and group chats.
About the list
Some countries cross two continents. We list each country under the continent where most people usually place it: Russia in Europe, Turkey and Kazakhstan in Asia, and Egypt in Africa. Central America and the Caribbean count as North America. A few countries have more than one capital or a disputed capital. In those cases we show the most commonly used one and add a note, such as Pretoria (executive) for South Africa. Territories like Greenland, Puerto Rico and Hong Kong are not included because they are not independent countries.
Flags are shown as emoji, so they look different depending on your device. Some versions of Windows show two letters instead of a flag.
How the randomness works
Every result comes from your browser’s built-in cryptographic random number generator (crypto.getRandomValues). We use rejection sampling, so every item has exactly the same chance of being picked, with no bias toward the start or end of the list. Nothing is sent to a server, and share links store the exact results so the person you send them to sees the same thing.
Frequently asked questions
How many countries are there?
The generator includes 195: the 193 UN member states plus Vatican City and Palestine.
Can I pick a random country in Europe or Africa?
Yes. Tick one or more continents under Options.
Why do some flags show as letters?
Flags are emoji. Some versions of Windows don't draw flag emoji and show the two-letter country code instead.
Are territories like Greenland included?
No. Only independent countries are included.
Can I avoid repeating countries in a game?
Yes. Turn on "Exclude already shown" and each country appears once until all 195 have come up.
Is the random country generator free?
Yes. It is free, with no sign-up.