Random Country Generator
Enter a number from 1 to 20 and get random countries with their flag and two-letter code, drawn from 261 countries and territories.The Random Country Generator picks between 1 and 20 countries at random and shows each one as a card with its flag and its two-letter ISO code, so you get "Tonga (TO)" with the red-and-white flag above it rather than just a name. The pool is 261 entries: the 193 UN member states plus dependent territories and special regions like Guam, Curaçao, the Isle of Man and Åland. It's a country picker for geography quizzes, travel bucket lists, classroom projects and any game where "spin the globe" is the mechanic.
How it works
Type how many countries you want (1 to 20, the box starts at 1) and press Generate Country. The whole list is shuffled and the first N are shown, so a batch never contains the same country twice. Press again for a new draw. There are no continent or region filters on this page; if you only want one part of the world, the Random European Country Generator, Random Asian Country Generator and Random Africa Country Generator are the same tool restricted to those continents.
What each card shows
- Flag – an SVG image of the national flag, so it stays sharp on any screen.
- Country name – in English, using the common short form (Czechia, not the Czech Republic; Bosnia & Herzegovina; St. Kitts & Nevis).
- Two-letter code – the ISO 3166-1 alpha-2 code in parentheses: DE for Germany, VN for Vietnam, TD for Chad. These are the same codes used in internet domains (.de, .vn) and on shipping labels.
That's the full output. No capital, population or map; if you need capitals, run the Random Capital City Generator instead, and if you only care about the flag itself the Random Flag Generator shows the same 261 flags at a larger size.
What counts as a "country" here
The list is broader than a UN roll call, which matters if you're using it for a quiz. Alongside sovereign states it includes:
- US territories: Guam, American Samoa, the U.S. Virgin Islands, Puerto Rico.
- British overseas territories and crown dependencies: Anguilla, Bermuda, Montserrat, Turks & Caicos, the Isle of Man, St. Helena, Tristan da Cunha, Diego Garcia.
- French overseas regions and collectivities: French Guiana, French Polynesia, Mayotte, St. Barthélemy, St. Martin, St. Pierre & Miquelon, Wallis & Futuna.
- Dutch Caribbean: Curaçao, the Caribbean Netherlands.
- Others: Åland Islands, Christmas Island, Cocos Islands, Norfolk Island, Tokelau, Ceuta & Melilla, Western Sahara, Kosovo, South Georgia & the South Sandwich Islands.
So if a quiz rule is "sovereign states only", agree up front to redraw when a territory comes up. Roughly one card in four will be a territory rather than an independent country.
Ways people use a random country
- Geography practice – generate ten, cover the names, and identify the flags. Then do the reverse: name the capital and continent for each. The territories are where most people slip.
- "Cook a dish from…" challenges – pick one country a week and cook something from there. Territories like Curaçao and French Polynesia make it more interesting than a plain list of nations would.
- Model UN and debate assignments – assigning delegations at random avoids everyone lobbying for France.
- Travel roulette – draw three and research which one you could actually visit next year. Pair with the Random City Generator to narrow it down.
- GeoGuessr and map-game warmups – draw a country, then try to place it on a blank map before the round.
- Story settings – writers use it to pick a location they'd never have chosen deliberately. For the US equivalent, there's the Random US State Generator.
Sample draw
Here's what a batch of ten looked like on one run, with the code you'd see on each card and a note on the flag:
| Country (code) | Flag |
|---|---|
| Tonga (TO) | Red field with a white canton bearing a red cross. |
| Palau (PW) | Light blue field with a yellow disc slightly left of center. |
| Mali (ML) | Vertical green, yellow and red bands. |
| Indonesia (ID) | Red over white. Monaco's is the same colors in a different ratio. |
| Yemen (YE) | Horizontal red, white and black bands. |
| Sweden (SE) | Blue field with a yellow Nordic cross. |
| Vietnam (VN) | Red field with a yellow five-pointed star. |
| Chad (TD) | Vertical blue, yellow and red bands. Nearly identical to Romania's. |
| Singapore (SG) | Red over white, with a crescent and five stars in the red half. |
| Curaçao (CW) | Blue field, a yellow horizontal stripe, two white stars in the canton. |
More place pickers, including cities, states and ethnicities, are under all country, city and place generators.
Frequently asked questions
- How many countries are in the random country generator?
261. That's the 193 UN member states plus observer states, dependent territories and special regions such as Guam, Bermuda, Curaçao, Åland and Kosovo. You can draw up to 20 per click.
- Does it show the flag of each country?
Yes. Every card shows the country's flag as an SVG image, the country name and its two-letter ISO code. It doesn't show the capital or population.
- Can I get a random country from just one continent?
Not on this page, but there are separate pickers for Europe, Asia and Africa that use the same flag cards.
- Why did I get a territory instead of a country?
The list includes dependent territories and overseas regions because they have their own flags and ISO codes. About a quarter of the entries are territories, so if your game needs sovereign states only, just redraw when one appears.
- Will the same country come up twice in one batch?
No. The full list is shuffled and the first N are shown, so each country appears at most once per draw. Separate draws can repeat, of course.



