Random City Generator

Pick a random real city from 321 places in 163 countries, filter by continent, country or capitals only, and copy or share the list.

    Embed this tool on your site
    321Real cities
    163Countries
    158National capitals
    41US cities
    FreePrice
    Last updated · By IdeaShuffle Editorial Team
    On this page
    1. What does a random city generator do?
    2. How do you use the Random City Generator?
    3. Which cities can you get?
    4. How do you get a random US city?
    5. Why are some capitals not the biggest city?
    6. How can you use a random city?
    7. How are cities sorted by continent?
    8. How does the Random City Generator pick a city?
    9. Frequently asked questions

    What does a random city generator do?

    A random city generator picks a real city for you at random, giving you a travel idea, a story setting or a geography question in one click. Our Random City Generator draws from 321 real cities in 163 countries, and each card shows the city with its country, continent and whether it is a national capital.

    Every result is a real city you can find on a world map, from Reykjavík in the far north to Wellington in the far south. Use the city picker for a quick travel idea, a story setting for a writing exercise, or a fair way to choose a topic for a class. Ask for one city or up to fifty, and they arrive in one click with no account needed.

    How do you use the Random City Generator?

    You use the Random City Generator by setting how many cities you want, choosing a country, continent or type if you like, and pressing Generate.

    1. Set the number. Type 1 to 50 in the How many box; the default is 3.
    2. Pick filters. Choose a country or a continent, and set Type to National capital for capitals only. Leave them on "Any" to draw from all 321 cities.
    3. Generate. Each card shows the city with its country, continent and type.
    4. Save or share. Copy one city or the whole list, download a CSV, or copy a share link that reopens the same settings.

    The filters work together. If you pick a country and a continent that do not match, the tool tells you nothing fits rather than ignoring a filter; set one back to "Any" and try again.

    Which cities can you get?

    You can get well-known cities from six continents: the capital of most countries in the list plus famous large cities. The table shows how the 321 cities are spread.

    ContinentCitiesNational capitalsExamples
    Europe6739London, Barcelona, Kraków
    Asia8041Tokyo, Mumbai, Samarkand
    Africa6042Cairo, Nairobi, Marrakesh
    North America6917Mexico City, Toronto, Chicago
    South America2711Lima, São Paulo, Cusco
    Oceania188Canberra, Auckland, Suva

    Large countries have several entries: the United States has 41, Canada 9, Australia 8, and China and India 7 each. Smaller countries usually appear only through their capital. The list is curated, so it holds places most people can look up easily rather than every town on Earth.

    How do you get a random US city?

    You get a random US city by setting the Country filter to United States. That gives you 41 entries: the capital, Washington, D.C., plus 40 cities written with their state, such as Austin, Texas or Boise, Idaho.

    The US list mixes the biggest names, like New York City, Los Angeles and Chicago, with smaller favourites such as Albuquerque, Omaha and Anchorage. Writing each one as "city, state" avoids confusion, since there is a Portland in Oregon and another in Maine, and our list means the one in Oregon.

    Drawing three or four US cities is a simple way to sketch a road trip: put them in order on a map and see how far apart they are. If you want whole states instead, try our Random State Generator.

    Why are some capitals not the biggest city?

    Some capitals are not the largest city because many countries chose or built a capital for political reasons, such as a central location or a compromise between rivals.

    Several are a planned capital, built for the job. Brasília opened in 1960 to move government inland from Rio de Janeiro. Canberra was chosen as a compromise between Sydney and Melbourne. Abuja replaced Lagos as Nigeria's capital in 1991, and Islamabad was built in the 1960s next to Rawalpindi.

    That is why a random capital can surprise players who guess the most famous city first. Turkey's capital is Ankara, not Istanbul, and Canada's is Ottawa, not Toronto. Filtering to National capital and covering the country name makes a quick capitals quiz.

    How can you use a random city?

    You can use a random city for armchair travel, games, lessons and writing. These ideas suit most ages.

    • Virtual trip: try armchair travel by drawing a city and looking up its weather, its local food and one famous landmark.
    • Map quiz: in a geography game, show a city and ask players to name its country and continent.
    • School task: give each student a city for a short research project with three facts.
    • Letter writing: imagine a pen pal in the city you draw and write about your day to them.
    • Quiz night: a trivia host reads a city and the room guesses which country it is in.

    Writers can use a random result as a story setting, and families can turn a weekly draw into a cooking night themed on that city's dishes.

    How are cities sorted by continent?

    Cities are sorted by a common convention, usually the continent that holds the country's capital and most of its people, because some countries cross borders between continents. A country that spans two continents is called transcontinental.

    Istanbul sits on both sides of the Bosphorus strait, so part of it is in Europe and part in Asia. We follow a common convention and list Turkey, with Istanbul, Ankara and Izmir, under Asia. Russia is the opposite case: its land stretches across northern Asia, but Moscow and Saint Petersburg sit in Europe, so we list them there.

    Egypt's cities are in Africa, and Central American and Caribbean capitals such as Panama City and Havana are under North America.

    How does the Random City Generator pick a city?

    The Random City Generator picks a city by filtering the 321 cities to those that match your settings and then drawing from that filtered pool with your browser's cryptographic random source, so every matching city has the same chance. Nothing is sent to a server.

    The draw uses the Web Crypto API (crypto.getRandomValues, documented on MDN Web Docs) with rejection sampling, then a Fisher–Yates shuffle. Each press is independent, and one list never shows the same city twice unless you switch on "Allow repeats"; repeats across separate presses are normal.

    Frequently asked questions

    Is the Random City Generator free?

    Yes, the Random City Generator is free, with no account and unlimited use on phones, tablets and computers.

    Can I get only US cities?

    Yes. Set Country to United States to draw only from the 41 US entries, each shown with its state.

    Are these real cities?

    Yes, every result is one of the real places you can find on a map. For invented names for a story or game world, a fictional name tool suits better.

    Why are some capitals listed as major cities?

    Where a capital is disputed, shared between cities or being moved, we list the city as a major city instead. Some countries also split the seat of government from the official capital, and we avoid taking a political position.

    IdeaShuffle Editorial Team
    We build and test every generator by hand and check our data against public references. How we work

    More tools in this category: Place & Name Generators.