Random Coordinates Generator
This random coordinates generator draws latitude and longitude points evenly over the globe or inside a box, where 0.75 on the latitude scale is 30 degrees north.
Settings
1 to 1,000 points.
Coordinates
Why use this Random Coordinates Generator?
Even by Area
Each point is drawn so that every patch of the sphere of equal area is equally likely. The part of the sphere above 60 degrees north is 6.7% of its area, but a flat draw of latitude would put 16.7% of its points there, which crowds the poles once the points are shown on a map.
A Box You Control
Type a south, north, west and east limit and the draw stays inside that box. Area weighting still applies inside it, so a tall thin box and a short wide box of the same area get the same share of points.
Plain Output, Plain Links
The rows are text you can copy, the CSV has a header, and the map links are ordinary links to OpenStreetMap. No map is embedded and no geodata service is called by the page.
What is a Random Coordinates Generator?
A random coordinates generator returns pairs of latitude and longitude. Latitude runs from -90 at the south pole to 90 at the north pole and longitude from -180 to 180 around the equator. This page draws two numbers, u and v, between 0 and 1 for every point, then turns them into degrees: latitude is the arcsine of 2u - 1 and longitude is 360v - 180.
The arcsine step is what makes the draw even by area. Latitude bands near the equator are wider on the ground than bands near a pole, so equal slices of latitude do not hold equal area. If you want a place name instead of a coordinate, that is a different job from the one here, and you can open any row in a map to see what is there. For other draws, try the random number generator or the random date generator.
Coordinate Generator Details
- What it drawsPoints as decimal degrees, latitude first, then longitude. The default run is 10 points over the whole globe at 4 decimal places.
- Formulau and v are random numbers from 0 up to 1. Latitude is asin(2u - 1) in degrees and longitude is 360v - 180. With u = 0.75 the latitude is 30 degrees north, and with v = 0.25 the longitude is -90 degrees.
- Box modeTurn on the box switch and give a south, north, west and east value. Latitude becomes the arcsine of sin(south) + u (sin(north) - sin(south)) and longitude is west + v (east - west). West must be below east, so a box that crosses 180 degrees needs two runs.
- Box share worked outA box from 40 to 50 degrees north across 10 degrees of longitude holds 0.0017119 of the globe by area. A flat latitude draw would give it 0.0015432.
- Decimals0 to 6 places, default 4. On a sphere of mean radius 6,371,008.8 meters one degree of latitude is 111,195.08 meters, so one step in the fourth decimal is 11.12 meters and one step in the fifth is 1.112 meters. The draw itself is made from 32-bit random numbers, so near the poles the printed digits can be finer than the input.
- Count1 to 1,000 points per run, default 10. A value above the maximum is clamped and the page says so before drawing anything.
- OutputOne point per line as latitude, then longitude, in the output box, plus a list with a map link per row.
- Map linksA details panel with at most 20 links to openstreetmap.org, one per point. No map is embedded, no tile is loaded, and no coordinate is sent anywhere until you open a link.
- Copy and CSVCopy takes the visible rows without a header. Download writes latitude,longitude and one row per point.
- Not includedLand-only mode, country or polygon filters, elevation, an API, and any saved history.
- Saved inNothing is saved and nothing is stored in this browser. Reloading clears the points.
Common Use Cases
Test Datasets
Seed a map view with points that do not bunch at the poles, so every region is represented.
Geofence and Map Testing
Check how a fence or a marker behaves at latitudes the demo data never reaches.
Sampling Practice
Compare an area-weighted draw with a flat one and see the difference in a scatter plot.
Game Worlds
Place fictional sites at real coordinates that are not all in the same corner of the map.
Teaching Area and Latitude
Show why a degree of longitude is not a fixed distance, using points the class drew.
Random Photo Spots
Get a point to look at on a map, knowing it is probably open water.
How to Draw Coordinates
Choose the area
Leave it on the whole globe, or turn on the box switch and type a south, north, west and east value.
Set the count and decimals
Pick how many points and how many decimal places; both apply to the whole run.
Press Generate
Each row shows latitude and longitude. The same numbers appear in the CSV, in the same order.
Copy, download or open a map
Copy the rows, download the CSV, or open a point in OpenStreetMap from the map links panel.
What You Get
Even Coverage
Points land in proportion to area, so the poles do not collect more than their share.
A Box You Control
Four limits set the area, and the same area weighting holds inside it.
CSV With a Header
The file starts with latitude,longitude and its values match the screen digit for digit.
Map Links You Choose to Open
Each link is plain text until you click it, and nothing loads in the background.
Repeatable Format
Every number has exactly the decimal places you picked, with no trailing digits dropped.
Tips for Coordinate Work
- •Check the latitude spread Plot a run of a few hundred points. A flat draw makes a dense clump at each pole, while this one looks even.
- •Do not expect land Water covers most of the planet, so most points are ocean. Use a larger count if you need a few on land.
- •State the radius If you report distances from these points, write the radius you used. The figures here use the mean radius of 6,371,008.8 meters.
- •Round once Pick the decimals you need before you generate. Rounding again later by hand adds a second error on top of the first.
- •Keep the box inside the map Latitude stays within -90 and 90 and longitude within -180 and 180. For an area over the 180 line, run the east part and the west part separately.
- •Not for navigation These are random numbers, not surveyed positions. Do not use them to plan a route or to mark a real boundary.
Draw a First Point
Press Generate above for points anywhere on the globe, then read the rows or download the CSV.
Need other random values? Try the random number generator or the random date generator.
Related tools
Frequently Asked Questions
Are these points evenly spread over the whole globe?
Yes, by area. Each point is drawn with the inverse sine method, so a patch of the sphere near the equator and a patch of equal area near a pole have the same chance. Draw a run and expect about half the points between 30 degrees south and 30 degrees north.
What does the box option change?
It restricts the draw to the box and keeps the area weighting inside it. A tall thin box and a short wide one of the same area receive the same number of points on average, which flat range sampling would not do.
Can I get only points on land?
Not on this page. Land filtering needs a coastline dataset, which would be a large file to ship for a tool that runs in the browser. Expect water: the oceans cover most of a uniform sample, which is why the map link is often blue.
Is this the same as a random location generator?
No. A location generator picks a place name, such as a city, state or country. This page picks a coordinate, which may be in open ocean, and leaves the naming to the map link you open.
Does the page send my points anywhere?
No. The numbers are made in your browser and the map links are plain URLs. Opening one sends that single coordinate to OpenStreetMap in a new tab, which is a step you take, not something the page does.