Map Extract
Free tool

Random country generator

Say how many countries you want and press the button. Each one comes with its flag and ISO code, and a batch never repeats a country.

Runs in your browser. Nothing you enter is uploaded.

Getting a random country

  1. Choose how many

    Type a number in How many countries, anything from 1 up to the full list.

  2. Pick

    Press the button. One country fills the panel with its flag and code underneath; several are laid out in a grid.

  3. Copy the names

    For more than one, the copy button puts the country names on your clipboard, one per line.

Example: a geography round for a team social

A quiz host wants ten flags nobody has prepared for. Setting the count to 10 and pressing the button gives ten different countries with their flags. The host hides the names, shows the flags one by one, and reveals the answers at the end.

Developers testing a sign-up or checkout form use the same tool to pick realistic country codes for test records, which catches forms that quietly assume every address is in the UK.

Input
How many countries: 10
Result
Ten different countries or territories, each with flag and two-letter code

Ideas for using it

Each pick in a batch is drawn without replacement, so asking for all 249 gives the whole list in a random order.

  • A cuisine of the week for a team lunch or a café special.
  • Travel inspiration, or a country to research for a school project.
  • Picking test data for international address, phone and postcode fields.
  • A starting letter for a geography game, combined with the random letter generator.

Questions people ask

How many countries are there in the world?

It depends who is counting. The United Nations has 193 member states, plus two observer states. ISO 3166-1, used here, has 249 entries because it also gives codes to territories such as Bermuda and Greenland. Picking from this list therefore includes some places that are not independent countries.

What do the two-letter codes mean?

They are ISO 3166-1 alpha-2 codes, used for internet country domains, international forms and many databases. Most match the domain, such as FR for France, but the United Kingdom is GB in the standard even though its domain is .uk.

Can I pick countries from one continent only?

Not in this tool, which always draws from the full list. For a region, paste the countries you want into the list randomiser or the random name picker, which will shuffle or choose from exactly the set you provide.

Where your data goes

Countries are chosen in your browser from a list built into the page. Nothing about your picks leaves your device.

Checked against the tool on

Top