Random Geographic Coordinates
Generate uniformly-distributed random points on Earth, optionally restricted to a bounding box — with an OpenStreetMap link for each.
Uniform on sphere weights latitude by sin — fair surface-area sampling. Turn off for flat latitude spacing.
Press Generate to pick coordinates.
All randomness via crypto.getRandomValues. Antimeridian-spanning longitudes (west > east) are supported.
How to use
- Pick a preset bbox or set north/south/west/east manually (negative = south/west).
- Choose how many points to generate.
- Toggle uniform-on-sphere off if you want flat latitude sampling (useful for grid-style picks).
About this tool
ShowHide
Picks random (lat, lng) pairs using crypto.getRandomValues. The default "uniform on sphere" mode samples by the sine of latitude — a flat latitude pick would over-sample near the poles since each degree-band covers less surface area there. Bounding boxes that wrap across the antimeridian (e.g. Pacific-spanning) are handled, and each result links straight to OpenStreetMap to inspect.
The difference between the two modes is larger than it sounds. Drawing latitude uniformly from -90 to 90 puts as many points in the band between 89 and 90 degrees as between 0 and 1, even though the first covers about a nine-hundredth of the area of the second. Sampling by the sine corrects this, and the visible result is that points stop clustering at the top and bottom of the map. Longitude needs no correction, because meridians divide the sphere into equal wedges at every latitude.
Because the sampling is uniform over the surface, roughly seven in ten points land in water, and many of the rest fall in desert, ice or forest. That is the correct behaviour for a geographic sample, not a defect, but it makes the tool a poor fit for generating plausible user addresses or test data that has to resemble where people live. Population-weighted sampling is a different problem and needs a population raster.
The coordinates are decimal degrees on WGS 84, the datum GPS and web maps use, printed at six decimal places, which is about 11 centimetres at the equator and less as you move poleward. That precision is an artefact of the formatting rather than a claim about accuracy. One further caveat: a bounding box drawn by dragging a rectangle on a Mercator map is not a rectangle on the sphere, so a box that looks balanced on screen still covers more ground at its equatorward edge.
Frequently asked questions
Why are most points in the ocean?
About 71% of Earth's surface is water, so uniform sampling lands there most of the time. Tighten the bounding box to a region of interest, or use the "land bias" preset for a crude land-weighted draw.
What's the difference between the two sampling modes?
Uniform-on-sphere gives equal area per point. Flat-latitude gives equal latitudinal spacing — fine for grids or quick scatterplots, but density rises near the poles.
Are points inside a bounding box uniform as well?
Yes — the same latitude weighting is applied inside the box, so its poleward edge is not over-sampled. Keep in mind that a box is a rectangle in coordinates rather than on the ground: at sixty degrees of latitude a degree of longitude covers half the ground distance it does at the equator, so a high-latitude box is much narrower in reality than it looks on a flat map.
Can I use these points as a sample for a survey or a study?
For a spatial sample over an area, yes, provided that area really is your sampling frame. Most studies want something narrower — points on land, within a country, near a road, or where people live — and none of those come out of uniform sampling: roughly seven tenths of the surface is water, and unpopulated land dominates much of the rest. Filter the points, or sample from a frame that already encodes the restriction.
Related tools
GPS Coordinates Converter
Convert latitude/longitude between decimal degrees, DMS (40°42'46"N), and DMM (40°42.7666'N). Generate Google Maps and geo: URIs.
Convert
UTM & MGRS Coordinate Converter
Convert latitude/longitude to UTM and MGRS and back on WGS 84, with the grid zone, band letter, meridian convergence and point scale factor.
Convert
Password Generator
Generate strong, random passwords that never leave your browser.
Random
Random Number Generator
Generate cryptographically random numbers in any range — with or without duplicates, optionally sorted.
Random
Lottery Number Generator
Generate random tickets for 8 popular lotteries (Powerball, EuroMillions, Lotto 6/45, Loto 6, 双色球…) — uses crypto-secure RNG.
Random
Random Color Generator
Generate a grid of random colors in HEX, RGB or HSL — pick how many, copy any value with one click, and regenerate instantly for design inspiration.
Random