Random country generator
A random country or territory from the ISO 3166-1 list
Press the button for a random country. Tick the box to use only entries marked independent.
Ready
Press Pick a country.
| Name in ISO 3166-1 | Alpha-2 | Alpha-3 | Numeric |
|---|
How it is drawn: your browser's crypto.getRandomValues supplies random 32-bit numbers, and any value that would make one result more likely than another is thrown away and drawn again, so every entry in the list has the same chance.
Recent results
Nothing yet. Results from this visit show here; they are not saved.
Where the list comes from
The list is the set of country codes in ISO 3166-1, the international standard used for things like web addresses and shipping forms. It was copied from the table of officially assigned codes on Wikipedia's ISO 3166-1 page, read on 17 Nov 2026 (the page was last edited on 16 Nov 2026). The table holds 249 entries, each with an English short name, a two-letter code, a three-letter code and a number.
Not only countries
ISO 3166-1 covers territories as well as sovereign states, for example Greenland, Puerto Rico and Antarctica. The names are written the way the standard writes them, so some read in an unusual order, such as "Korea, Republic of". The list is not a statement about which places are countries. Tick "Only entries marked independent" to use the 194 entries that the same table marks as independent.
How a country is picked
Each entry has the same chance, drawn with your browser's crypto.getRandomValues. Large countries are no more likely than small ones. When you pick several, no entry comes up twice in one go. The names that flash past first are only for show.
Ideas
- Geography quizzes and flag games.
- A country for a cooking night, a school report or a pen pal theme.
- Travel daydreaming.
Keeping it current
Country codes change from time to time, when a country changes its name or a new code is assigned. This page is checked against its source when the site is updated, not every day.