Random Flag Generator
See a random flag, guess the country, then reveal the answer.
Loading the random flag generator… If nothing appears, please turn on JavaScript.
This random flag generator shows the flag of one of the world’s 195 countries. Try to name the country, then press Show answer to check. You can practise one continent at a time or test yourself on the whole world.
How to use the flag generator
- Press Show a flag (or the spacebar).
- Guess the country, then press Show answer.
- Choose continents under Options to focus on Africa, Europe or anywhere else.
- Turn on “Exclude already shown” so you go through every flag once.
Ideas for using random flags
- Flag quizzes: play with friends and keep score.
- Geography lessons: after each flag, find the country on a map.
- Learning a continent: filter to one continent and repeat until you know every flag.
- Drawing practice: draw the flag from memory, then compare.
Keep, copy and share your flags
Every result has a lock button. Locked results stay put when you generate again, so you can keep the flags you like and reroll the rest. The history panel keeps your earlier results, and the back arrow takes you to the previous set if you generated one time too many.
Use Copy to copy the results as a plain list, CSV or JSON, or download them as a file. Share copies a link that shows exactly the same results to whoever opens it, which is handy for games, classes and group chats.
Tips for learning flags
Many flags share colors, so look for the details: Chad and Romania are almost identical, as are Indonesia and Monaco. Colors often follow regions: red, yellow and green are common in Africa, and many Arab countries use red, white, black and green. Nordic countries share the off-center cross. Learning groups like these is faster than learning each flag on its own.
Flags are shown as emoji, so they look slightly different on each device. Some versions of Windows show two letters instead of the flag; on those devices, use a phone or another browser. For capitals and more detail, try the random country generator.
How the randomness works
Every result comes from your browser’s built-in cryptographic random number generator (crypto.getRandomValues). We use rejection sampling, so every item has exactly the same chance of being picked, with no bias toward the start or end of the list. Nothing is sent to a server, and share links store the exact results so the person you send them to sees the same thing.
Frequently asked questions
How many flags are included?
The flags of all 195 countries: the 193 UN member states plus Vatican City and Palestine.
Can I practise one continent?
Yes. Tick one or more continents under Options.
Why do I see letters instead of a flag?
Some versions of Windows don't draw flag emoji. Try a phone or another device.
Can I avoid repeats?
Yes. Turn on "Exclude already shown" and each flag appears once.
Are territories like Greenland included?
No. Only independent countries are included.
Is the flag generator free?
Yes. It is free, with no sign-up.