Random Location Generator
Generate truly uniform random coordinates anywhere on Earth, inside a box, or within a radius of a place — with an option to skip open sea and the points shown on a map.
How to generate a random location
- Choose the area. Anywhere on Earth, a latitude/longitude box, or a radius around a place.
- Choose how many. One point or up to 100.
- Decide about water. Leave 'Skip open sea' on to drop points that land in the ocean.
- Generate. Read the coordinates and nearest place names, open any point in OpenStreetMap, or copy them all as CSV.
10 uses for random coordinates
A spontaneous day trip
Pick a random point within 50 miles and go and see what is there.
Geography and map-reading games
Generate a point and have players guess the country or terrain before revealing it.
Sampling for a field survey
Random points inside a study box, chosen fairly so no area is over-represented.
Testing location software
Feed an app realistic coordinates from all over the world.
Writing and worldbuilding prompts
Set a story wherever the point lands.
Photography challenges
Photograph whatever is nearest to a random point in your city.
Fair random selection of a meeting area
Let chance pick the region instead of an argument.
Teaching probability on a sphere
Show why naive random latitudes crowd at the poles and this method does not.
Seeding a simulation
Uniform starting positions for a model, exported as CSV.
Choosing a random walk or run start
A random point within a few miles of home to start a new route.
How the random points are chosen
Picking latitude and longitude as plain random numbers is a common mistake: equal steps of latitude near the poles cover much less ground than near the equator, so points crowd towards the poles. Wolfram MathWorld's 'Sphere Point Picking' gives the correct method: choose longitude uniformly and set latitude to the arcsine of a uniform number between -1 and 1. Every square kilometre is then equally likely. The same idea gives uniform points inside a latitude/longitude box and inside a circle (a spherical cap) around a centre.
The random numbers come from your browser's Web Crypto API rather than a simple pseudo-random function. With 'Skip open sea' on, candidate points are sent to the Open-Meteo Elevation API and any point where the Copernicus DEM records exactly 0 m is replaced with a new one; up to five names of nearby places are looked up with Photon (OpenStreetMap).
Limits: the sea filter is approximate — some coasts and lakes also read 0 m, and lakes above sea level are not skipped. A random point may land on private property, in a restricted area or somewhere dangerous; the page gives coordinates only, not permission or a safe route to get there.
Sources
- Wolfram MathWorld: Sphere Point Picking
- Open-Meteo Elevation API — Copernicus DEM GLO-90, sea filter
- Photon geocoder — nearest place names
Frequently asked questions
Are these locations truly random?
Yes, within the area you choose, every part of the surface is equally likely, using the sphere point picking method and your browser's cryptographic random number generator.
Why not just pick a random latitude?
Because the ground between two latitudes shrinks towards the poles. Random latitudes would put far too many points in the Arctic and Antarctic.
Can I get a random location near me?
Yes. Choose 'Within a radius of a place', enter your town or coordinates and a radius.
Can I avoid the ocean?
Leave 'Skip open sea' on. Points the Copernicus elevation model records at exactly 0 m are replaced. Most of the Earth's surface is ocean, so without the filter most world points land at sea.
Can I generate a random location in the US?
Choose 'Inside a lat/lon box'. The default box roughly covers the contiguous United States; it includes some of Canada, Mexico and the sea at the edges.
Can I download the points?
With more than one point, open 'Copy as CSV' to copy latitude and longitude columns.
Related tools
As the Crow Flies Distance Calculator
Enter two places and get the straight-line distance between them in miles, kilometres and nautical miles, measured on the WGS84 ellipsoid, with the compass bearing and the route on a map.
Vincenty (1975) geodesic on the WGS84 ellipsoid
Halfway Point Between Two Cities Calculator
Enter two cities or addresses and get the exact halfway point between them — or any split you choose — with the nearest named place and the distance from each side.
Vincenty (1975) geodesic midpoint on WGS84, OpenStreetMap place names
Radius Map
Draw one or more true-distance circles in miles or kilometres around any address on a map, see the area each covers, and check whether another place falls inside.
Geodesic circles on WGS84 over OpenStreetMap tiles
Bearing Calculator
Enter two places or click a map and get the true and magnetic bearing from one to the other, the bearing on arrival, the back bearing and the constant-heading rhumb line.
Vincenty inverse on WGS84; NOAA/BGS World Magnetic Model 2025
Distance Between Two Places
Enter any two addresses or places and get both the straight-line distance and the driving, cycling or walking distance and time, drawn on a map.
Vincenty on WGS84; OSRM routing over OpenStreetMap (FOSSGIS)
Distance Between Cities
Pick any two US cities or towns from the Census list of 32,000 places and get the miles between them in a straight line and by road, plus the distance to the largest US cities.
Census 2024 Gazetteer place points; OSRM driving routes