Home › Fun & Games › Random Location Generator

Random Location Generator

Generate random latitude and longitude coordinates anywhere on land, inside a chosen country, within a radius of you or anywhere on Earth. Each spot is shown on a map with the country, the nearest major city and a place name, ready to copy or open in your favorite map app.

Last updated:

Random location

–

Country / area
–
Nearest major city
–
Place name
–
Advertisement
Advertisement

How to use the Random Location Generator

  1. Choose a mode: On land, In a country, Near me or Anywhere on Earth.
  2. Set the options: pick a country, or enter a center (Use my location or click the map) and a radius for Near me.
  3. Press Generate random location (or the G key). Choose How many to create several points.
  4. Read the result: coordinates, country or ocean, nearest major city and place name, with the point on the map.
  5. Use it: Copy coordinates, open it in Google Maps or OpenStreetMap, or download all points as CSV or GeoJSON.

Why uniform-by-area sampling matters

A naive generator picks latitude evenly between −90° and 90°. That puts as many points in the thin band between 80° and 90° as in the wide band around the equator, so polar areas get far too many points. This tool uses the standard fix: latitude = arcsin(2u − 1) and longitude = 360v − 180, where u and v are random numbers from 0 to 1. Every square kilometer of the globe then has the same chance of being picked.

Latitude bandShare of Earth's surfaceNaive uniform latitude would give
0° to ±30° (tropics and subtropics)50%33%
±30° to ±60° (mid-latitudes)36.6%33%
±60° to ±90° (polar regions)13.4%33%

Reading the coordinates

  • Latitude runs from −90° (South Pole) to +90° (North Pole). Positive is north of the equator.
  • Longitude runs from −180° to +180°. Positive is east of the Prime Meridian in Greenwich, London.
  • Decimal degrees (e.g. 48.85837, 2.29448) are what most apps and GPS devices accept. Paste them straight into a map search box.
  • Degrees, minutes, seconds (48° 51′ 30.1″ N) are common on paper maps and in aviation; 1° = 60 minutes and 1 minute = 60 seconds.
  • One degree of latitude is about 111 km (69 miles). One degree of longitude is 111 km at the equator and shrinks to zero at the poles.

Fun ways to use a random location

  • Geography challenge: generate a point, hide the map and let friends guess the country from the coordinates.
  • Virtual travel: open the spot in a street-level imagery service and explore what is there.
  • Local adventure: use Near me with a 10–20 km radius to find a place for a walk or bike ride (always check that the spot is public and safe to visit).
  • Writing prompt: set your next story wherever the random pin lands.
  • Testing: export 25 points as GeoJSON or CSV to test mapping or location features in an app.

Frequently asked questions

How are the random coordinates generated?

Longitude is picked uniformly between −180° and 180°, and latitude as arcsin(2u − 1) for a uniform random number u between 0 and 1. This spreads points evenly by area on the globe. Picking latitude uniformly instead would crowd points near the poles, where lines of longitude converge.

How does the tool know a point is on land or in a country?

It loads country outlines from the world-atlas dataset (Natural Earth, 1:50 million scale) and runs a point-in-polygon test. In land and country modes it keeps drawing random points until one falls inside a country shape. Because outlines are simplified, points within a few kilometers of a coastline or border can occasionally be on the wrong side.

How does Near me work?

You give a center, either from your browser's location (with your permission), typed coordinates or a click on the map, and a radius up to 1,000 km or miles. Points are spread evenly by area inside that circle on the sphere. Your location is used only in your browser and is never stored on a server.

What is the nearest city based on?

The tool compares the point with a built-in list of about 300 major cities and remote towns worldwide using the haversine great-circle distance, and shows the distance and compass direction. A more detailed place name, such as a village or region, is looked up from OpenStreetMap's Nominatim service when you are online.

What fraction of random points land in the ocean?

About 71% of Earth's surface is water, so in Anywhere on Earth mode roughly 7 out of 10 points fall in an ocean or sea. That is why the On land mode exists; it also leaves out Antarctica unless you tick Include Antarctica.

How precise are the coordinates?

Choose 4, 5 or 6 decimal places. At the equator, 4 decimals is about 11 meters, 5 decimals about 1.1 meters and 6 decimals about 11 centimeters. The point itself is random, so extra decimals only matter if you need an exact spot.

What can I use random locations for?

Popular uses include geography games, travel and road-trip inspiration, writing and art prompts, testing apps that use maps or GPS, picking a spot to explore in Street View, and classroom activities about latitude, longitude and climate.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Random Country GeneratorPick random countries with flags, capitals, population and area.Countries Visited MapClick the countries you have been to on a world map, see your % of the world and save a PNG.Map QuizFind countries on a clickable world map or name the highlighted one, by continent.What Are My GPS CoordinatesSee your latitude and longitude in decimal and DMS, with accuracy and maps.Map Radius ToolDraw circles of any radius around points on a map, with multiple rings and a share link.Coin FlipFlip a coin online: heads or tails, multiple coins and stats.Yes or No WheelSpin the wheel for a yes or no answer to any question.Random Name GeneratorGenerate random first and last names by gender and origin.Random Team GeneratorSplit a list of names into random, balanced teams.Dice RollerRoll a D6 or any RPG dice (D4 to D100) with totals and history.Random Number GeneratorPick random numbers in any range, unique or lottery-style.Random Letter GeneratorPick random letters from the alphabet, with vowel, case and no-repeat options.Random Date GeneratorGenerate random dates between two dates, with weekday and format options.Picker WheelSpin a wheel to pick a random name or choice.Random Dog PicturesRandom dog photos and fun dog facts.Random Cat PicturesRandom cat photos and fun cat facts.Random Parrot PicturesRandom parrot photos and bird trivia.Dog Web StumbleJump to a random dog website.Cat Web StumbleJump to a random cat website.Parrot Web StumbleJump to a random parrot website.Random Animal GeneratorGet a random animal with its class, habitat and a fun fact, with filters.Random Movie PickerCan't decide what to watch? Pick a random film by genre, decade and runtime.Random Food PickerCan't decide what to eat? Spin a cuisine wheel and get a dish that fits your diet.Truth or Dare GeneratorDraw clean truth or dare questions for family, teens or parties, with player turns.Baby Name GeneratorDiscover 1,700+ baby names filtered by gender, origin and letter, and save favorites.Would You Rather QuestionsRandom would you rather dilemmas in five categories. Vote and see your A/B split.Pet Name GeneratorFind the perfect name for a dog, cat, bird or bunny by species, style and coat color.Fantasy Name GeneratorCreate elf, dwarf, orc, dragon and other fantasy names from race-specific syllable rules.Random Question GeneratorRandom conversation starters: icebreakers, deep, funny, work-friendly and kids questions.Band Name GeneratorInvent band names for 14 music genres, or blend two genres, with album titles too.Writing Prompt GeneratorRandom story starters, first lines, characters, settings, twists and poem prompts in 11 genres.Drag Name GeneratorFind your drag queen or drag king name: puns built from your own name in seven styles.Rapper Name GeneratorTurn your name into a rap name in seven styles, from Lil and MC to trap, drill and emo rap.Lottery Number GeneratorSecure random quick picks for Powerball, Mega Millions, EuroMillions, Lotto and custom games.Superhero Name GeneratorInvent original superhero names with powers, an origin story and a weakness.Secret Santa GeneratorDraw Secret Santa names with exclusions and send everyone a private reveal link, no sign-up.Pirate Name GeneratorGet swashbuckling pirate names from your first name, plus ship names, in four styles.Raffle DrawPaste names, add extra tickets and draw one or many random raffle winners with confetti.Charades GeneratorRandom charades words by category and difficulty, with a round timer, team scores and kids mode.Pictionary Word GeneratorRandom family-friendly drawing words by difficulty, with a round timer and team scores.Random Emoji GeneratorGenerate random emojis by category, copy them in one click, or roll an emoji story prompt.Halloween Costume Idea GeneratorRandom Halloween costume ideas for kids, adults, couples, groups and pets, with DIY lists.Random Activity GeneratorBored? Get a random thing to do from 300+ ideas, filtered by place, budget, age and time.Random Drawing Idea GeneratorGet random drawing prompts by difficulty and theme, with a color palette and sketch timer.Random Seating Chart GeneratorPaste a class or guest list and get a random seating chart with keep-apart rules.Spirograph GeneratorDraw spirograph patterns online with gear sliders, layers, animation and PNG/SVG export.Tongue Twister GeneratorRandom tongue twisters by difficulty and sound, plus a maker for any letter, read aloud.Random Quote GeneratorGet random inspirational, funny and famous quotes with author and source; copy or share as an image.Random Website GeneratorJump to a random fun, useful or interesting website from a hand-picked, family-friendly list.Random Workout GeneratorPick a goal, equipment, muscles and time to get a random workout with sets, reps and rest.Date Night Idea GeneratorRandom date night ideas by budget, at home or out, season and vibe. Save your favorites.Elf Name GeneratorFind your Christmas elf name from your first name and birth month, then print a name tag.Most Likely To QuestionsRandom 'who is most likely to' questions for parties and classrooms with a kid-safe filter.Random Gift Idea GeneratorGet random gift ideas by recipient, age, interests and budget, then shortlist and copy them.Random Hobby GeneratorFind a new hobby by budget, indoor or outdoor, solo or social, with simple steps to start.Random Object GeneratorRandom everyday objects with icons for drawing prompts, guessing games and teaching.Random Song GeneratorPick a random popular song by decade and genre, then play it on your favorite music service.Random Wikipedia ArticleGet random Wikipedia article summaries by language and topic, with images, links and history.Podcast Name GeneratorPodcast name ideas from your topic, tone and format, with domain availability hints and favorites.Couple Name GeneratorBlend two names into ranked ship names and couple names, from Brangelina-style to overlaps.Random Card DrawShuffle a 52-card deck and draw one or more random playing cards, with jokers and history.Tournament Bracket GeneratorMake single or double elimination brackets for 2-64 players, click winners to advance, print.Random Fact GeneratorGet random fun facts about animals, space, the body, history, science, food and more.Random Joke Generator200+ clean, family-friendly jokes: dad jokes, puns, knock-knock jokes and more. Tap to reveal.Team Name GeneratorGenerate catchy team names for sports, work, trivia nights and gaming, with your own keyword.Business Name GeneratorTurn a keyword and industry into brandable business name ideas, with a .com check link.
See all 63 Random Generators & Pickers →