How to pick a random location
- Choose Where: Anywhere on Earth or Near a big city.
- For a city, you can limit the choice with Part of the world and set the Distance from the city: up to 1, 10 or 50 km.
- Press Pick a place or hit the Space key.
- Read the coordinates in decimal degrees and in degrees, minutes and seconds; near a city you also see something like "7.3 km from Lyon, France".
- Open the point in OpenStreetMap or Google Maps, or copy the coordinates. Recent places stay in the history.
What random coordinates are useful for
- Geo-guessing games. Pick a point near a city, open it in street view on the map and let your friends guess where in the world they are.
- Virtual travel. Drop into a random spot and look around on the satellite map: deserts, villages, ports and mountain roads you would never search for.
- Real-life exploration. Set a city near you and a distance of 1 or 10 km, and go and see what is at the point: a park, a café, an old street.
- Writing and drawing prompts. Set a story or a sketch in the place the generator picks.
- Geography lessons. Name the country, the climate zone or the nearest sea for each point.
To pick a whole country instead of a point, try the random country generator, and the random city generator picks one of the same big cities this page uses.
Why a fair point on a sphere is not two random numbers
The obvious way to get random coordinates is to draw a latitude from −90 to 90 and a longitude from −180 to 180. It gives a wrong answer. Circles of latitude get shorter towards the poles: the equator is about 40,000 km long, while the circle at 80° north is less than 7,000 km. With uniform latitude, the strip near 80° gets as many points as the strip along the equator, so the poles end up crowded with points.
This generator picks a point uniform over the surface of the sphere. Longitude is uniform, but latitude is drawn so that each band gets points in proportion to its area. A neat consequence: half of the Earth's surface lies between 30° south and 30° north, so about half of all points land in the tropics and subtropics, and only about 6% land beyond 70° north or south.
Since about 71% of the Earth's surface is water, most points in Anywhere on Earth land in an ocean or a sea, and the page reminds you of it. For a point on land, choose Near a big city. The point is then spread evenly over a circle around the city, which means more of the points lie near the edge than near the centre: within 50 km, half of them are farther than 35 km from the city.
What the location generator shows
- Two modes. Anywhere on Earth for a truly uniform point on the planet, Near a big city for one of about 330 large cities, optionally limited to a part of the world.
- Distance from the city. Up to 1 km for a walk, up to 10 km for a bike ride, up to 50 km for a day trip.
- Coordinates in two formats. Decimal degrees for maps and apps, and degrees, minutes and seconds with N, S, E and W.
- Map links. OpenStreetMap and Google Maps open the point in a new tab.
- Copying, history and the Space key. Everything stays in your browser; nothing is sent to a server.
Is the location really random?
Yes. The numbers come from crypto.getRandomValues(), the cryptographically secure generator built into every modern browser and seeded by your operating system, and the point is computed on your device. With uniform sampling over the sphere, a square kilometre of the Sahara is exactly as likely as a square kilometre of the Pacific. More in the article on how the randomness works.
Frequently asked questions
Why does the random point so often land in the sea?
Because about 71% of the Earth's surface is water. A fair point on the whole planet lands in an ocean or a sea about seven times out of ten. If you want land, choose Near a big city.
How do I get a random location on land?
Choose Near a big city: the point lies within the distance you set from one of about 330 big cities. Close to the coast it can still land in water, so pick a smaller distance if that matters.
Can I get a random location in one part of the world?
Yes, in the Near a big city mode: set Part of the world to Europe, Asia, Africa, North America, South America or Oceania, and only cities from that region are used.
What do the coordinate formats mean?
Decimal degrees, such as 48.8566, 2.3522, are what maps and phones understand; negative numbers mean south and west. Degrees, minutes and seconds write the same place the classic way, with the letters N or S for latitude and E or W for longitude. One degree of latitude is about 111 km.
Can I open the point on a map?
Yes. Under the coordinates there are links to OpenStreetMap and Google Maps; each opens the point in a new tab, where you can switch to the satellite view or street view where it is available.
Is my location used?
No. The generator does not ask for your position and does not know where you are. The random point is computed in your browser, and nothing is sent to a server.