RandomBasis

Country to explore

Random Country Generator

Generate a random country from anywhere — or filter by continent.

Runs locally in your browser. Nothing you generate is ever sent to a server.

Press "Generate Country" to see a result here.

Continent

About this random country generator

Press "Generate Country" for a fair, unbiased pick from 197 countries spanning all six inhabited continents. Narrow the pool with the continent filter, toggle the flag on or off, and set a quantity to generate a whole batch at once.

Filtering by continent

Sometimes you want a country from anywhere in the world; other times you specifically want one from Europe, Asia, or another single continent \u2014 for a geography lesson focused on one region, a travel shortlist, or a themed trivia round. The continent filter narrows the pool before picking, so every country within your chosen region still has an equal chance.

Using it as a flag quiz

Turn off "Show flag" to generate just the country name for straightforward random selection. Or keep the flag on, generate a country, and cover the name with your hand or a piece of paper before revealing it \u2014 an easy way to turn this into a self-quiz on flags without needing a separate quiz tool.

Common uses

How many countries are included?

197 countries across all six inhabited continents, each with its flag.

Can I generate countries from just one continent?

Yes. Choose a continent from the dropdown — Africa, Asia, Europe, North America, South America, or Oceania — or leave it on "Any continent" to draw from all 197.

How can I use this as a flag quiz?

Turn off "Show flag" to see just the country name, or generate a country and cover the name to quiz yourself on the flag alone before revealing the answer.

Is the selection actually random?

Yes. Every country is chosen using your browser's cryptographically secure random number generator, so every country in the current filter has an equal chance.

Is this tool free to use?

Yes, completely free, with no sign-up and no limit on how many times you can generate.