Key facts
- Method: points drawn evenly by area on the WGS84 ellipsoid (sine of the equal-area latitude and longitude uniform, then rejection outside the chosen area), country and land tests on Natural Earth 1:50m outlines, nearest town from GeoNames; same seed, same points.
- Runs in your browser: what you click, draw or open is not uploaded.
- Data and libraries: OpenFreeMap, MapLibre GL JS, GeographicLib (geographiclib-geodesic), Natural Earth (via world-atlas), GeoNames (via all-the-cities).
- Free to use, with no sign-up and nothing to install.
A random location sounds simple: pick a random latitude between −90 and 90 and a random longitude between −180 and 180. But that gives far too many points near the poles, because the lines of longitude run together there: the strip north of 80° gets one point in eighteen, although it covers less than 1 % of the Earth. This generator draws points evenly by area on the WGS84 ellipsoid instead, the same model of the Earth that GPS uses, so a square kilometre in Siberia is exactly as likely as one in the Sahara. You decide where the points may fall: anywhere on land, anywhere on Earth, only at sea, inside one country or within a radius of a town or a point you click. Each point comes with its coordinates, the country it lies in and the nearest town from the GeoNames list, with the distance. You can draw one place for a game, a trip or a writing prompt, or up to 1,000 points for a field survey, a test data set or a sampling plan, and download them for Google Earth, QGIS or a spreadsheet. Every draw has a short seed in the link, so whoever opens it sees exactly the same points.
How to use it
- Choose where the points may fall – anywhere on land, the whole Earth, only at sea, one country or within a radius – and, for a radius, search a town or click the map for the centre and type the radius.
- Set how many points you want, from 1 to 1,000.
- Press "Generate random location" to see the point or points on the map with their coordinates, country and nearest town.
- Press the button again for new points, copy the coordinates, share the link with the same points or download CSV, KML or GeoJSON.
Example: a random place in Denmark
Choose "In one country", pick Denmark and generate 3 points with the seed "denmark" (it is in the share link as s=denmark). The first point is 57.06986, 9.93797 in Nørresundby, on the north side of the Limfjord, 1.5 km from the town's point and 2.7 km from the centre of Aalborg; the next two are 54.72905, 11.35917 on Lolland and 55.88707, 9.60331, 16 km west of Horsens. Anyone who opens the same link gets the same three points; pressing the button draws a new seed. Over the whole Earth without Antarctica, Russia receives about 12.7 % of all points on land, because it has that share of the land area.
What random locations are used for
- Games and challenges: a random place to find in Street View, a geography quiz, a road trip or a story prompt.
- Field work and statistics: random sample points for vegetation plots, soil samples or a survey inside a radius or a country.
- Test data: random coordinates as CSV or GeoJSON for checking a GIS, a map app or a database.
How accurate is it?
Evenly spread by area, not by degrees
A degree of longitude shrinks from 111 km at the equator to nothing at the poles, so a 1° × 1° cell at 80° latitude is only 17 % of the area of one at the equator. Picking latitude and longitude uniformly therefore puts 5.6 % of all points north of 80°, where only 0.77 % of the Earth's surface lies. Here the sine of the equal-area (authalic) latitude of the WGS84 ellipsoid is uniform, which makes every square kilometre equally likely; the test suite checks this against the ellipsoid's own band areas with 200,000 points.
How exact land, sea and borders are
Land, sea and countries come from the Natural Earth 1:50 million outlines. Coasts and borders there are smoothed to about 1–3 km, so a point a few hundred metres from a coast or a border can be on the other side in reality, and small islands under a few square kilometres are missing. In these outlines land covers 28.7 % of the Earth; Antarctica is 8.6 % of that land and is left out unless you tick "Include Antarctica".
Within a radius
The radius is a geodesic distance on the ellipsoid, the same as on the radius map: every point is at most the radius from the centre, measured along the surface, and the points are spread evenly over the disc, so a quarter of them lie within half the radius. The distance to the nearest town is geodesic too, to the town's GeoNames point, which is usually the centre, not its edge.
Good to know
A random point is often nowhere
Seven of ten points on the whole Earth fall in the sea, and many points on land fall in the Sahara, the Arctic, the Australian outback or the Siberian taiga. That is what an even spread over the area means. For a place people live, choose a country or a radius around a town; the nearest town shows how remote a point is.
A point is not a place you may visit
The coordinates can land on private property, a military area, a nature reserve, a motorway or a lake. Look at the point on the map or in satellite images before you go there, and follow local rules.
Random is not the same as evenly spaced
Independent random points cluster and leave gaps by chance; with 10 points in a field, two may be close together. For a survey that must cover an area, use more points or a regular grid; for statistics that need an equal chance for every square metre, random points are exactly right.
Frequently asked questions
How do I get a random location on land?
Leave "Anywhere on land" selected and press "Generate random location". The point is drawn evenly over all land areas of the Earth except Antarctica, which you can include with the checkbox. The page shows the coordinates, the country and the nearest town.
Can I get a random location in a specific country or near me?
Yes. Choose "In one country" and pick the country, or choose "Within a radius of a point", search your town or click the map and type the radius in kilometres or miles. Every point then lies inside the country or the circle.
Are the random coordinates really evenly distributed?
Yes, by area: every square kilometre has the same chance. Many generators pick latitude and longitude uniformly, which crowds points towards the poles; this one uses the equal-area latitude of the WGS84 ellipsoid, so a point is no more likely near the North Pole than near the equator.
How do I get the same random points again?
Each draw has a seed, shown under the result and stored in the address as s=… Copy the share link, and anyone who opens it sees the same points with the same settings. Press the button to draw a new seed.
Can I generate many random points and download them?
Yes, up to 1,000 at a time. Download them as CSV with latitude, longitude, country and nearest town for a spreadsheet, or as KML for Google Earth and GeoJSON for QGIS and other GIS programs.
Something wrong or missing? E-mail [email protected] and it will be fixed.