Or click the map to move the center.
The box is the smallest rectangle that fully contains this circle — its corners reach about 41% farther than the radius.
Copy in your format
Watch the order: GeoJSON and OSM put longitude first, Leaflet puts latitude first. Mixing them up is the most common bounding-box bug.
Runs entirely in your browser — your inputs never leave this page.
How this tool works
- 1
Pick a mode: set a center point and a radius and the tool builds the smallest rectangle that fully contains the circle; enter two opposite corners; or click two corners directly on the map. The rectangle is drawn for you.
- 2
The panel shows min and max longitude and latitude, the box center, and its true width and height in miles and kilometres, measured on the sphere.
- 3
Copy the box in the format your code expects: GeoJSON bbox array, GeoJSON Polygon, Leaflet [[south, west], [north, east]] bounds, or an OSM-style bbox string — one click each.
Common uses
- Building bbox parameters for map, weather and data APIs
- Clipping GeoJSON, OSM or GIS extracts to one area
- Setting map bounds and fitBounds calls in Leaflet or MapLibre code
Frequently asked questions
It depends on the format, and mixing it up is the most common bbox bug. GeoJSON and OSM-style strings are longitude-first: [minLon, minLat, maxLon, maxLat]. Leaflet bounds are latitude-first: [[south, west], [north, east]]. Each copy button here is labeled with its exact order.
More in Coordinates & Projections
- Geohash ConverterEncode any latitude/longitude into a geohash string and decode geohashes back to coordinates with bounding-box visualization.
- Plus Codes ConverterEncode coordinates into Plus Codes and decode Plus Codes back to latitude/longitude — pure math, no API key needed.
- Maidenhead LocatorConvert latitude/longitude to Maidenhead grid squares for amateur radio, and decode grid squares back to coordinates.
- ECEF ConverterConvert geodetic latitude/longitude/height to Earth-Centered Earth-Fixed (ECEF) Cartesian XYZ coordinates in meters, and back.
- EPSG ConverterTransform coordinates between hundreds of global EPSG datums, including WGS84 (EPSG:4326), Web Mercator (EPSG:3857), UTM zones, and US State Plane systems.
- Radius Around CoordinatesGenerate mathematically exact geodesic buffer circles centered on specific latitude and longitude coordinates with adjustable radii in miles, km, and nautical miles.
- Lat Long FinderFind the exact GPS latitude and longitude coordinates of any place on Earth by clicking on the interactive map or entering an address.
- Coordinate ConverterUniversal geospatial coordinate converter translating seamlessly between Decimal Degrees, Degrees Minutes Seconds, UTM, MGRS, and Web Mercator.
- MGRS ConverterConvert military MGRS alphanumeric coordinates to standard civilian WGS84 latitude/longitude, UTM easting/northing, and NATO grid references.
- Coordinate Offset CalculatorMove a latitude and longitude to a new point: head out on a bearing for a set distance, or shift it a number of feet or meters east and north. Results are shown in decimal degrees and in degrees, minutes and seconds, with both points plotted on a map.
- Geographic Center FinderAdd places by pasting coordinates, filling a small form, or clicking the map, and find their true geographic center. The math runs on the sphere, not on a flat average — and the tool shows both answers so you can see the difference.
- Random Location GeneratorDrop a truly random point anywhere on the planet — every square mile of land and ocean equally likely. See its coordinates in decimal degrees and DMS, a pin on the map, and the nearest place name, with a land-only mode that keeps drawing until the point falls inside a country.
- UK Grid Reference ConverterConvert latitude and longitude to an Ordnance Survey National Grid reference — and turn any grid reference back into GPS coordinates. Uses the real OSGB36 datum transformation and Transverse Mercator projection, with 6, 8 or 10-figure references.
Downloading Exactly 25 Miles of Colorado Map Data Around Denver
Daniel is building a hiking-trail app and needs OpenStreetMap data for the country within 25 miles of downtown Denver — trails, car parks, water sources, the lot. Downloading the whole state would bury his laptop, so he opens the bounding box generator, sets the center to Denver (39.7392, −104.9903), enters a radius of 25 miles, and lets the tool draw the smallest rectangle that contains that circle. The panel gives him the four edges he needs: minimum latitude 39.3774, maximum latitude 40.1010, minimum longitude −105.4608, and maximum longitude −104.5198.
Those four numbers describe a box exactly 50.0 miles wide and 50.0 miles tall, centered on Denver. In plain geography it reaches from just north of Castle Rock in the south up to Boulder in the north — Boulder, at 40.0150, −105.2705, sits comfortably inside — and it covers Golden to the west and Aurora to the east. Daniel copies the OSM-style string, −105.4608,39.3774,−104.5198,40.1010, into his download request, and the GeoJSON bbox array, [−105.4608, 39.3774, −104.5198, 40.1010], into his app configuration, careful to keep the order each format expects: longitude first in both of those.
One detail Daniel plans around from the start: the box is a rectangle, but his 25 miles was a circle. The middle of each edge sits exactly 25 miles from downtown, yet the four corners reach about 35 miles out, because a corner is the diagonal of the square. His download therefore includes some corners of country he did not strictly ask for — a few trails beyond the 25-mile line up near Boulder and down past Castle Rock. He accepts the extra data and filters by true distance afterwards inside the app, which is the normal pattern: the bounding box does the coarse cut quickly, and exact distance does the fine cut.
The same week, a colleague in Berlin reuses the tool for a cycling project and nearly ships a bug Daniel had just avoided. His mapping library wanted Leaflet bounds — latitude first, [[39.3774, −105.4608], [40.1010, −104.5198]] — and he had pasted the longitude-first GeoJSON order into it, which would have placed the box in the ocean off West Africa. The fix took one minute because the copy panel labels every format with its exact order. Daniel adds a line to their team notes: a bounding box is only four numbers, but the order they travel in is part of the data.
Common mistakes to avoid
- Swapping latitude and longitude order. GeoJSON and OSM strings are longitude-first; Leaflet is latitude-first. Paste one into a tool expecting the other and the box lands in the wrong place — often the ocean, sometimes a plausible-looking wrong city. Always match the labeled order on the copy button to what your library or API documents.
- Treating the box as if it were the circle. A bounding box built from a radius includes the corners, which reach about 41% farther than the radius — roughly 35 miles for a 25-mile radius. If your results include places 'too far away,' they are probably in the corners. Filter by real distance after the box has done the fast first cut.
- Drawing the box too tight. A box drawn exactly on a city's edge clips whatever sits on the boundary — the trailhead just outside the line, the suburb split in half. Unless an API limit forces precision, pad the box slightly — a mile or two, or about 5% — and trim deliberately later rather than discovering missing data in production.
Pro tips
- Use the two-corner modes when an area has a natural edge — a county line, a coastline, a park boundary — instead of approximating it with a center and radius.
- Keep the string you used next to the data it produced. A saved set of files labeled only 'denver_extract' becomes a guessing game in six months; the four numbers are the provenance.
- Sanity-check the box on the map before copying: the rectangle should visibly frame the area you mean, with the red center pin inside it.
Coordinates, Datums & Field Surveying: Finding Anything on Earth
Latitude and longitude are just the beginning. Learn the datums, grids, and projections behind every coordinate — and why mixing them up can move your point by hundreds of feet. Written for Bounding Box Generator — BBox Coordinates for Maps, GIS & APIs and the everyday mapping tasks around it.
Latitude & Longitude: The Global Address
Latitude measures how far north or south you are, from 0 at the equator to 90 at the poles. Longitude measures east or west from Greenwich, England, from 0 to 180. Together they name every spot on Earth with two numbers — the closest thing geography has to a universal address.
Coordinates come in three dialects. Decimal degrees write New York as 40.7128, -74.0060 — the format computers prefer. Degrees-minutes-seconds splits the same point into 40°42'46"N, 74°0'22"W, the traditional navigator's format. Degrees-decimal-minutes sits in between. All three describe the identical point; converters just translate the notation.
Precision has a simple scale. One degree of latitude is about 69 miles everywhere. Each decimal place you add zooms roughly tenfold: two decimals place you within half a mile, four decimals within 30 feet, and six decimals within 4 inches — more precision than consumer GPS can actually deliver.
Watch the signs. In decimal format, southern latitudes and western longitudes are negative. Forgetting the minus sign on a Chicago longitude (-87.6) teleports your point to central China. It is the most common coordinate mistake in existence.
Datums: The Invisible Foundation
Coordinates are meaningless without a datum — the mathematical model of the Earth they refer to. The global standard is WGS84, the datum your phone's GPS uses. But much American mapping still references NAD83, tuned for North America, and the two disagree by a few feet in places.
A few feet sounds trivial until it is not. Property lines, utility trenches, and runway thresholds all live in that margin. Mixing a WGS84 coordinate into a NAD83 dataset shifts every point slightly — usually harmless on a web map, potentially expensive on a construction site.
Older maps add more ghosts. The 1927 North American Datum (NAD27) can differ from modern coordinates by up to 300 feet in some regions. If you are digitizing a decades-old paper map or reading coordinates from a historic document, confirm the datum before trusting the numbers.
Europe went through the same evolution. Many countries mapped on national datums for a century before adopting the European ETRS89 system. Cross-border datasets must declare their datum or inherit silent errors.
This page shows the first two chapters. Read the complete this category field guide →