Random Location Generator
Generate a random location — a real city with decimal-degree coordinates anchored near it, in the US or anywhere in 38 countries — and see it on a map. Copy one or a batch, pick a random city or a random country, or use the free API.
Updated
39.76151, -75.50187 — near Wilmington, DE36.27895, -86.58555 — near Nashville, TN39.31907, -76.34992 — near Baltimore, MD
Every result names a real place. The generator picks a genuine US city, then produces a coordinate pair within roughly 44 km of its centre — so you get “40.71280, −74.00600 — near New York, NY” rather than a bare number that could be anywhere on Earth. That anchoring is what separates a location from a coordinate: the pair is well-formed for any mapping API, and the name tells a human what it is.
The coordinates are WGS 84 decimal degrees, the reference frame Google Maps, GPS and geocoding APIs share. Latitude runs from −90 to 90 and longitude from −180 to 180, and every generated pair sits inside those ranges — but because each point is anchored to a real city, the values also cluster the way real location data clusters, which matters for testing distance logic, bounding boxes and map markers with believable inputs.
One honest limit, stated rather than discovered: the point is near the city, not at an address. The offset is applied independently to latitude and longitude, so a point can fall just outside the city or on water beside a coastal one, and it deliberately never identifies a building. For the full fit-for/not-fit-for table — reverse geocoding, boundary assertions and the rest — see the map and geocoding demos guide.
Choose how many you need and press Generate — free, unlimited, copy-one or copy-all with CSV and JSON export, and a Map button on every row that opens the point on OpenStreetMap. The tool above is the US generator; the worldwide location, random city and random country tools follow below. For a location attached to a complete fictional address, use the random address generator; for a location in a specific state, every US state page pins its own.
What a generated location contains
| Part | Example | What it is |
|---|---|---|
| Anchor place | New York, NY | A real US city and state, chosen at random |
| Latitude | 40.71280 | Decimal degrees, −90 to 90, 5 dp (~1.1 m resolution) |
| Longitude | −74.00600 | Decimal degrees, −180 to 180 |
| Spread | within ~44 km of the anchor | Locates the area, not a building |
| Datum | WGS 84 | The web, GPS and geocoding standard |
A named anchor plus a coordinate pair. The place is real; the exact point is randomized nearby and identifies no address.
Random location worldwide
The tool above anchors every point to a US city. This one draws from 452 real places in the 38 countries the address generator supports — Tokyo, Lagos, São Paulo, Warsaw, Melbourne — picking a country first so a batch spreads across the map rather than piling into the largest one, then a city or regional centre in it, then a coordinate pair within about 15 km of that centre. The place and the country are named, so a batch reads as location data rather than a list of numbers, and every row has a Map button.
For a full local address around the point — street, postal code in the right format, a phone number with the right country code — open that country's generator page. The free API serves this field as type=location with the city, region and ISO country code in a context object, so a seeded batch can be regenerated byte-identically.
41.65229, -8.53342 — near Braga, Portugal-6.46681, 110.64828 — near Jepara, Indonesia62.20329, 25.67834 — near Jyväskylä, Finland
Random city generator
A random city generator answers a different question from a coordinate: not where exactly, but which place. This picks one of the same 452 real cities and names it with its country — Marseille, France; Busan, South Korea; Guadalajara, Mexico — for prompts, sample data, travel games and any decision that wants a place chosen at random. Every city it can return has a page that generates a matching address: the country pages for all 38 countries, and city pages such as London, Toronto and Sydney.
Thessaloniki, GreeceDornbirn, AustriaPerm, Russia
Random country generator
The random country generator picks from the 197 countries of the world — the 193 UN member states plus Vatican City, Palestine, Taiwan and Hong Kong — by ISO 3166-1 alpha-2 code, so Côte d'Ivoire, Czechia and Türkiye come back under the names the standard uses today, and the code travels with the value in the API. Thirty-eight of them have a full fake identity generator behind them, with names, addresses and phone numbers in the local format; for the rest this returns the country alone. It is the right tool for a geography quiz, a randomised test matrix or a where-to-next decision.
NicaraguaMalaysiaBelarus
Frequently asked questions
Does the random location generator give real places?
Yes — each result is anchored to a real US city and names it, with the coordinate pair generated within roughly 44 km of that city's centre. The place is real; the exact point is randomized nearby and does not identify any building or address.
What format are the coordinates in?
WGS 84 decimal degrees to five decimal places — latitude then longitude, the format Google Maps, GPS and most geocoding APIs use. Latitude is −90 to 90, longitude −180 to 180.
Can the point land outside the named city?
Yes, occasionally. The offset around the city centre is applied to latitude and longitude independently, so a point can fall just beyond the city limits or on water near a coastal city. It locates the area rather than an address, which is the honest limit of random location data.
Can I generate locations outside the United States?
Yes. The worldwide location generator on this page draws from 452 real places in 38 countries — Tokyo, Lagos, São Paulo, Berlin — and returns a coordinate pair within about 15 km of the named city, with a map link. For a full local address around the point, with a postal code in that country's format, open the country's own generator page.
Is there a random city generator?
Yes, further down this page. It picks one of 452 real cities and regional centres across 38 countries and names it with its country — useful for prompts, sample data and picking a destination at random. Every city it returns has a matching address generator.
Is there a random country generator?
Yes. It picks from the 197 countries of the world — the 193 UN member states plus Vatican City, Palestine, Taiwan and Hong Kong — using ISO 3166-1 codes and the current English short names, and the free API serves the same field with a seed for reproducible results.
Can I see a generated location on a map?
Yes. Each generated point has a Map button that shows it on an embedded OpenStreetMap view with a marker, plus a link to open the full map. The marker locates an area near the named city, not a building or an address.
Can I generate many locations at once?
Yes. Pick a count up to 100 and use Copy all, or download the batch as CSV or JSON. The free JSON API serves the same field with a seed, so a batch can be regenerated byte-identically for test fixtures.
Related pages
More generators
Sources
- WGS 84 — World Geodetic System (latitude/longitude reference) — NGA
- USPS — ZIP Code lookup and format — United States Postal Service