World’s largest virtual agentic engineering & quality conference
Free online tool to generate random countries with detailed information about each nation.
A random country generator picks one or more countries at random and shows useful information about each pick: capital, region, continent, population, area, currency, official languages, ISO code, UN member status, and the country's flag. Reference data is sourced from the public restcountries.com API, which aggregates from open sources such as the CIA World Factbook and Wikidata.
The generator's two filters let you shape the pool before you pick. The Region dropdown covers five regions (Africa, Americas, Asia, Europe, and Oceania), with Americas spanning both North and South America. The UN Members Only checkbox narrows the pool in a different dimension, and the two filters combine.
For example, set Region to Europe and tick UN Members Only to draw exclusively from European UN member states: a clean pool for classroom draws or locale test matrices.
Because every pick arrives with its capital, flag, population rank, currency, and languages, the generator doubles as a ready-made quiz master. Five activities that work with the features on this page:
For people-focused prompts, pair this tool with the free Nationality Generator, or zoom in a level with the Random City Generator.
A random country generator picks one or more countries at random and shows useful information about each pick: capital, region, continent, population, area, currency, official languages, ISO code, UN member status, and the country's flag. It is handy for quizzes, geography games, test data seeding, and warm-up icebreakers.
Yes. Choose a region from the dropdown to restrict picks to Africa, Americas, Asia, Europe, or Oceania. Tick the UN Members Only box to limit picks to United Nations member states. The two filters combine: pick European UN members, Asian UN members, and so on.
The tool fetches country reference data from the public restcountries.com API, which aggregates from open sources including the CIA World Factbook and Wikidata. Each generation returns the country's official name, capital, population, currency, official languages, ISO 3166-1 code, and the SVG flag image. The page fetches reference data only; your inputs are not uploaded.
Each result shows the country name and official name, capital, region, continent, population with a global rank, area in square kilometers, currency name and symbol, official languages, ISO 3166-1 alpha-2 code, UN member status, the country's flag, and a Google Maps link.
Yes. Use the Quantity selector to pick 1 to 5 countries per generation. Multiple results appear as thumbnails above the main card; click any thumbnail to view its full profile.
Yes. Use the format selector to choose JSON or CSV, then click Download All to save every generated country to a file, or Copy All to put them on your clipboard.
The United Nations currently has 193 member states. Larger totals you see elsewhere include territories, dependencies, and partially recognized states, which is why counts vary by source. Tick UN Members Only in this generator to restrict picks to the 193 UN member states.
Generate a country above and put it to work: quiz a friend, run a classroom round, or seed a localization test matrix. Everything you generate leaves with you as JSON or CSV, and for full synthetic identities to go with the country, the free Random Address Generator builds the street-level details.
Did you find this page helpful?
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance