Random Country Picker
Instantly pick random countries with flags, capitals, continents, and population info
Continent Filters
CONTINENT DISTRIBUTION
Excluded countries will not appear in random picks. Click the X button on any country card to exclude it.
Pick a random country from all 195 UN-recognized nations — each result includes the flag, capital, continent, and population. Filter by continent, grab up to 10 at once, or jump into quiz mode to test yourself on flags. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool loads a local database of every sovereign nation — flags, capitals, populations, ISO codes, the works. When you hit the button, JavaScript's Math.random() picks from whatever pool your filters leave. Excluded countries and continent filters narrow the pool before selection, so every eligible country has an equal shot. Results show up instantly because nothing leaves your browser.
Examples
Geography Quiz Night
You're hosting a pub quiz and need 5 random countries for a flag round.
Pick count: 5
Continent: All
Exclusions: None
🇧🇹 Bhutan — Thimphu
🇲🇿 Mozambique — Maputo
🇵🇦 Panama — Panama City
🇫🇮 Finland — Helsinki
🇹🇬 Togo — Lomé
African Countries Only for a School Project
A student needs 3 African nations to research for a world cultures assignment.
Pick count: 3
Continent: Africa
🇪🇷 Eritrea — Asmara (Africa, ~3.6M)
🇬🇭 Ghana — Accra (Africa, ~33M)
🇳🇦 Namibia — Windhoek (Africa, ~2.6M)
Travel Bucket List Challenge
You want one surprise destination but you've already been to most of Europe, so you exclude that continent and the countries you've marked as visited.
Pick count: 1
Continent: All except Europe
Excluded: 12 visited countries
🇱🇦 Laos — Vientiane
Asia, ~7.5M population
Who Uses This
Generate random countries for classroom quizzes, geography bees, and cultural research assignments without repeating favorites.
Pick a surprise destination for bucket list challenges or "spin the globe" decisions when you can't choose where to go next.
Grab random nations for trivia games, board game prototypes, or geography-themed app content.
Pick countries for "guess the flag" videos, travel vlogs, or social media challenges that need unpredictable variety.
Common Mistakes
You keep getting the same handful of countries and think the randomizer is broken. Check the continent chips at the top — if only "Europe" is active, you're picking from ~44 countries instead of 195. Turn on all continents or reset filters.
Every country you X out shrinks the pool permanently (until you clear the list). If you've excluded 50+ nations over time, results start feeling repetitive. Check the Excluded tab and clear old entries you don't need blocked anymore.
Random means random — sometimes you'll get the same country twice in a row. That's not a bug. True randomness includes repeats. If you need unique picks each time, use the multi-pick slider and grab several at once.
Technical Details
- Processing: 100% client-side — no server requests
- Country Database: 195 UN-recognized sovereign states
- Data per Country: Flag, name, ISO code, capital, continent, population
- Storage: Visited list, exclusions, and history saved in localStorage
- Browser Support: Chrome, Firefox, Safari, Edge
- Offline: Works without internet after first load
Frequently Asked Questions
How many countries are in this random picker?
All 195 UN-recognized sovereign states are included. Each entry comes with the country's flag emoji, official name, ISO code, capital city, continent, and approximate population. That covers every independent nation on Earth as of the current UN member list.
Is the country selection actually random?
Yes. The picker uses JavaScript's Math.random() to select from whatever countries pass your current filters. Every eligible country has an equal chance of being picked — no weighting by population or size. If the same country shows up twice in a row, that's normal randomness, not a glitch.
Can I filter countries by continent?
Absolutely. Toggle the continent chips at the top of the tool to limit picks to Africa, Asia, Europe, North America, South America, or Oceania. You can activate multiple continents at once or turn them all on for the full 195-country pool.
Does this tool save my visited countries?
It does. Your visited countries, exclusion list, and pick history are all stored in your browser's localStorage. They'll still be there when you come back tomorrow. Nothing gets sent to a server — clearing your browser data is the only way to lose it.
What is the quiz mode for?
Quiz mode shows you a flag and four country names. Pick the right one. It's a fast way to learn flags without flashcards — your score tracks across the session so you can see if you're actually improving or just guessing well.