Random Country Generator
Random country with capital and flag.
Built and maintained by Paul Clark, Redmoon Software · Last checked
Every click draws one of 191 countries and shows its flag, capital, and region. Quiz mode hides everything but the flag until you hit reveal, which makes it a ready-made flag quiz for geography class; it also works for travel bucket lists or cook-around-the-world nights. With no-repeats on, the tool remembers past draws in your browser until all 191 countries have appeared.
Choose. Turn on quiz mode if you want to guess before the answer is revealed.
Click Pick a country to see a result.
Options
Recent results
- No history yet.
How it works
- Choose. Turn on quiz mode if you want to guess before the answer is revealed.
- Pick. Click "Pick a country" to draw one at random.
- Repeat. Turn on no-repeats to cycle through every country before any repeat.
- Revisit. Check the history list to see which countries have already come up.
About the Random Country Generator
Every country comes with its capital and flag
A draw returns the country name, its capital city, its region and its flag — the flag being generated from the country's two-letter code rather than stored as an image, which is why it renders as an emoji and why its appearance depends on your device's font.
The pool holds a comprehensive list of sovereign countries. That is a meaningfully large draw space, so a session of geography practice will not start repeating quickly even without the no-repeat option.
Quiz mode hides the answer
Ticking Quiz mode shows the country and withholds the capital until you reveal it. That single change turns the tool from a reference into a practice drill, and it is the difference between reading a list and actually learning it.
Used with No repeats, it becomes a way to work through the entire world exactly once — the tool tracks what it has shown and only resets when you have seen everything. That is a genuinely useful revision structure and it is the intended combination.
Ways to use it
- Geography practice: draw, name the capital, reveal.
- A daily country for a classroom display or a form-time routine.
- Choosing a cuisine to cook or a country to research for a project.
- Language practice: name the country in the language you are learning before revealing.
Why the capital is the thing worth testing
Country names are largely familiar; capitals are not, and they are where the genuine gaps sit. Several are famously counter-intuitive — the largest city is frequently not the seat of government — and those are precisely the ones a quiz should surface rather than avoid.
The region attached to each draw is a broad grouping rather than a formal classification, and reasonable people place some countries differently. Treat it as a rough sort for filtering a lesson rather than as an answer to be marked.
Frequently asked questions
How many countries are in the dataset?
191 countries, each stored with its capital city, world region, and country code, which the tool uses to render the flag emoji you see with every draw.
What exactly does quiz mode hide?
Everything except the flag. You guess the country and its capital, then press Reveal to check yourself — a ready-made format for flag quizzes and geography bell-ringers.
Does no-repeats remember countries after I close the tab?
Yes. Drawn countries are stored in your browser, so the cycle continues across visits. After all 191 have appeared, the list clears automatically and starts again.
Which regions are covered and how evenly?
Six regions: Africa (52 countries), Asia (47), Europe (46), North America (20), Oceania (14), and South America (12). Draws are uniform, so Africa and Asia come up most often.
Is there a US-only version of this quiz?
Yes — the random state generator uses the same quiz-and-reveal format for the 50 states plus Washington, D.C., hiding the capital instead of the country name.
Related randomizers
Further reading
- Where should I live? Turning "anywhere in the country" into a shortlist
An unfiltered search for 'where should I live' is a spiral, not a decision. Here's how filtering by region, climate, and city size before randomizing turns hundreds of possibilities into a handful of genuinely comparable options worth researching.
- A random animal is a better drawing prompt than 'draw anything'
"Draw anything you want" is the hardest assignment there is. Here's how handing yourself a random animal — plus its one-line fact — breaks blank-page paralysis for sketching, journaling, and classroom warm-ups alike.
- Turning a state-capitals drill into an actual quiz instead of a flashcard stack
Re-reading a list of states and capitals feels like studying, but it barely sticks. Here's how to turn the same list into an active-recall quiz — with drill routines for regions, timed rounds, and a no-repeats mode for a whole classroom — plus a pairing with the state-report assignment.
- Using a random country generator to actually learn geography
Flag-matching apps make recognition feel easy, then real recall falls apart. Here's how quiz mode on a random country generator forces active recall instead — plus drill routines for solo study and classrooms.