MapTools
coordinatesGIS ReadyFree · No signup

Bounding Box Generator — BBox Coordinates for Maps, GIS & APIs

Draw a bounding box three ways — around a center point and radius, between two corners, or by clicking two corners on the map — and copy it as a GeoJSON bbox array, a GeoJSON Polygon, Leaflet bounds, or an OSM-style bbox string.

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.

Loading Google Maps JavaScript Canvas...
Min longitude (west)
-105.460844
Min latitude (south)
39.377371
Max longitude (east)
-104.519756
Max latitude (north)
40.101029
Center
39.739200, -104.990300
Width × height
50.0 mi × 50.0 mi80.5 km × 80.5 km

Copy in your format

GeoJSON bbox array [minLon, minLat, maxLon, maxLat]
[-105.460844, 39.377371, -104.519756, 40.101029]
GeoJSON Polygon
{"type":"Polygon","coordinates":[[[-105.460844,39.377371],[-104.519756,39.377371],[-104.519756,40.101029],[-105.460844,40.101029],[-105.460844,39.377371]]]}
Leaflet bounds [[south, west], [north, east]]
[[39.377371, -105.460844], [40.101029, -104.519756]]
OSM-style bbox string (min_lon,min_lat,max_lon,max_lat)
-105.460844,39.377371,-104.519756,40.101029

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. 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. 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. 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

View all →
Worked example

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.
Geospatial Engineering Reference & Field Manual

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.

1

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.

2

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 →