Pick a country.
Any of 195.
All sovereign nations, with capitals, flags, population, and area. Filter by continent, size, or population — get a single pick or a batch of ten.
Filters & count
About this generator
There are 195 widely recognized sovereign countries on Earth — 193 UN member states plus Vatican City and Palestine, both UN observer states. Most "random country" tools cap out at the 50 or so household names. This one includes every one of them, including Tuvalu (population about 11,000), San Marino, and the four other countries you probably can't find on a blank map.
The pick uses crypto.getRandomValues with rejection sampling, the same source banks use for key generation. Every country in your filtered set has an exactly equal chance — Russia and Nauru both come up 1/N of the time, where N is whatever's left after your filters. Multi-pick batches use Fisher-Yates without replacement, so you'll never see the same country twice in one round.
Filters do the obvious thing: continent, population bracket, area bracket. Combine them and you can do "pick a small Asian country I've never heard of" in three clicks. Population and area figures are round, widely-cited approximations — UN Population Division and CIA World Factbook order of magnitude — and they're updated periodically. For a trivia round or geography quiz they're plenty; don't quote them in a thesis.
Names follow current English usage: Czechia rather than Czech Republic, Eswatini rather than Swaziland, North Macedonia rather than just Macedonia. The continent split uses the seven-continent model taught in most US and UK schools, with Russia in Europe and Turkey in Asia — the standard convention for this kind of tool. If you want to narrow down to US states or pick a city instead, those are one click away.
What people use it for
Mostly classrooms and trivia, but the long tail is more interesting.
Geography homework
Teachers assign each student a random country to research, present, or build a flag for. The continent filter keeps a unit on Asia tightly scoped without manual draft.
Pub trivia rounds
Pick five countries with the population filter set to "over 100M" — instant hard mode for the geography round. Or set it to "under 1M" for genuinely brutal questions.
Travel daydreaming
Spin the globe without the globe. People run this when they want their next trip suggested for them, then go down the Wikipedia rabbit hole on whatever lands.
"Where should I move" games
Filter by continent and population, hit generate, see what comes up. A surprisingly common end-of-Friday office activity, judging by referral patterns.
Classroom flash cards
Generate ten countries, project the screen, see who can name the capital first. Refresh for a new round — no slide deck required.
Worldbuilding seeds
Tabletop GMs and writers pull two random countries to base a fictional alliance, conflict, or culture mash-up on. Real geography beats invented lore most of the time.
How it works
The picking
We start from the full list of 195 countries, filter it down by your continent, population, and area selections, then draw one or more entries using crypto.getRandomValues with rejection sampling. The naïve random % N trick is biased when N doesn't divide evenly into 2³² — we discard out-of-range draws and re-roll, so every remaining country is exactly 1/N probable. For multi-pick, we use Fisher-Yates so each batch is sampled without replacement.
The data
All 195 entries ship inline with the page — no API call, no network round-trip. Population and area come from public-domain sources (UN, CIA World Factbook), rounded to readable figures. The dataset is small enough (a few KB) that the whole thing loads in under a second on a 3G connection.
State & sharing
Filter selections live in the URL query string and mirror to localStorage. Loading the URL on a different device, or as an embed, recreates the exact same filter state. Recent picks are kept locally for the last ten generations.
Common questions
How many countries does this include?
All 195 sovereign nations — the 193 UN member states plus Vatican City and Palestine, which the UN recognizes as observer states. Disputed territories and dependencies (Taiwan, Kosovo, Hong Kong, Greenland, etc.) are not in the pool, since the goal is a clean random pick of recognized countries.
Where do the population and area figures come from?
Round, widely-cited figures from public sources like the UN Population Division and the CIA World Factbook. They're approximate, rounded to a sensible precision, and updated periodically. Don't quote them in a thesis — but they're plenty accurate for trivia or filtering.
Can I get more than one country at a time?
Yes. Set count up to 10. Each pick is drawn without replacement, so you'll never get the same country twice in one batch — useful for assigning students different countries to research, or building a trivia round.
How are the continents defined?
The seven-continent model used in most US and UK geography curricula: Africa, Asia, Europe, North America, South America, Oceania, and Antarctica (no countries). Russia is grouped with Europe, Turkey with Asia, and Central American countries with North America.
Does the result link work as a permanent share?
Your filter settings live in the URL. Sharing the link recreates the exact filters for whoever opens it, but the random pick itself is fresh each time. If you want a single permanent country, just write its name into the page you're sharing.
Can I use this for a classroom or homework?
Yes — that's most of what it gets used for. Teachers assign each student a random country to research, run trivia rounds with the continent filter, or use it as a warm-up for geography units. The embed lets you drop it directly into a class site, Google Classroom announcement, or LMS page.
Why is country X missing or labeled the way it is?
Names and capitals follow the most common English usage — Czechia rather than Czech Republic, Eswatini rather than Swaziland, Türkiye listed as Turkey for searchability. If you spot a real error, email [email protected] and it'll be fixed in the next data refresh.
Related generators
Same neighborhood — different question.