Random Country Generator

Random country generator — pick 1–20 countries with flags, capitals, and currencies. Filter by continent for quizzes and classrooms. Free, no sign-up.

  • ✓ Free forever
  • ✓ No sign-up
  • ✓ Private — runs in your browser

Loading tool…

About this random country generator

Planning your next trip, running a geography quiz, or settling the eternal “where should we go?” debate? A random country generator picks destinations for you — with zero bias and zero arguments.

This free tool draws from a database of 128 countries across all six continents. Every pick arrives as a card showing the country’s flag, capital, continent, and currency — a mini geography lesson in each result. Narrow the pool with the Continent filter (Africa, Asia, Europe, North America, South America, or Oceania), choose anywhere from 1 to 20 countries per draw, and decide whether repeats are allowed — “No repeats” is switched on by default, so every country in a batch is unique.

Teachers use it to quiz students on capitals and flags; travelers use it to pick their next adventure; party hosts use it for trivia nights and around-the-world themed dinners. Every draw uses cryptographic randomness, so each country in the pool has exactly the same chance of being picked — no weighting, no patterns, no favorites.

Everything runs entirely in your browser — no sign-up, no data stored, and nothing sent to any server. Your picks stay completely private to you.

How to use it

  1. Set "How many countries" (1 to 20).
  2. Choose a "Continent": All continents, Africa, Asia, Europe, North America, South America, or Oceania.
  3. Keep "No repeats" ticked so every pick is unique (untick it to allow the same country twice).
  4. Click "Generate countries" to draw your cards.
  5. Click "Copy countries" to copy the list with capitals and currencies to your clipboard.

The method behind it

The database holds 128 countries, each with its ISO country code, capital, continent, and currency. Flags are rendered straight from the ISO codes using Unicode regional indicator symbols — no images are downloaded and nothing is requested from any server, so the tool works fully offline once the page loads. Your continent choice defines the candidate pool: "All continents" uses the full 128-country database, while a specific continent narrows it to just that region's countries. When "No repeats" is on, the tool draws without replacement — each picked country is removed from the pool for that draw, which guarantees every card in the batch is different. If you ask for more countries than the pool holds, the count is clamped. When "No repeats" is off, each draw is independent and the same country can appear more than once. All randomness comes from crypto.getRandomValues(), the browser's cryptographic random number generator, with rejection sampling so every country in the pool has exactly equal probability. Each draw is independent of the last — no history, no weighting toward particular regions.

Frequently asked questions

Is this random country generator really free?

Yes — completely free, with no sign-up and no limits. Generate 1 to 20 countries per click, unlimited. There are no accounts, no paywalls, and no watermarks on anything you copy.

How many countries are in the database?

128 countries across all six continents — Africa, Asia, Europe, North America, South America, and Oceania. Each entry carries its capital, continent, and currency, and its flag is rendered from its ISO country code.

Is the country pick truly random?

Yes. Picks are drawn with crypto.getRandomValues(), the browser's cryptographic random number generator, using rejection sampling so every country in the pool has exactly the same probability. Nothing about your previous draws influences the next one.

Can I get the same country twice in one draw?

Only if you untick "No repeats". With it ticked (the default), the tool draws without replacement, so every country in your batch is different. If you need repeats — for example, simulating weighted-style practice rounds — untick the box and each pick becomes fully independent.

Worked example

A teacher is preparing a Friday geography quiz on Europe. She sets "How many countries" to 10, chooses "Continent" Europe, and leaves "No repeats" ticked. She clicks "Generate countries" and gets 10 unique European country cards — each showing its flag, capital, and currency. Because the draw is without replacement, no country appears twice, and because it is cryptographically random, the quiz covers a genuinely unpredictable spread of the continent instead of the usual suspects. She clicks "Copy countries" to paste the list into the quiz handout.

Related tools