A bounding box is one of the simplest and most useful concepts in geospatial work. It appears in map APIs, GeoJSON specifications, spatial databases, and overpass queries. This guide explains what a bounding box is, the different formats you will encounter, and how to generate one in seconds using our free tool.
What Is a Bounding Box?
A bounding box (often abbreviated as bbox) is the smallest rectangle that completely contains a geographic feature or set of features. It is defined by four coordinate values:
- West β the minimum longitude (leftmost edge)
- South β the minimum latitude (bottom edge)
- East β the maximum longitude (rightmost edge)
- North β the maximum latitude (top edge)
Think of it as drawing the tightest possible box around a country, city, or polygon on a map.
Why Are Bounding Boxes Used?
Bounding boxes are used everywhere in geospatial software because they are extremely fast to compute and query. Specific uses include:
- Spatial queries: Databases like PostGIS use bounding boxes for initial filtering before running expensive polygon-intersection checks
- Map tile requests: Tile servers use bbox parameters to return only the tiles within a viewport
- Overpass API: OpenStreetMap’s Overpass API requires a bbox to limit query scope
- GeoJSON specification: The GeoJSON standard includes an optional
"bbox"property on any object - API parameters: Many geocoding, elevation, and satellite imagery APIs accept a bbox to define the area of interest
Common Bounding Box Formats
Different tools use different coordinate ordering β this trips up a lot of people. Here are the main formats:
[W, S, E, N] β GeoJSON / RFC 7946 standard:
[-74.26, 40.48, -73.70, 40.92]
Overpass API [S, W, N, E]:
(40.48,-74.26,40.92,-73.70)
CSV row (west, south, east, north):
west,south,east,north -74.26,40.48,-73.70,40.92
Our Bounding Box Generator copies all three formats instantly, so you never have to reorder coordinates by hand.
How to Generate a Bounding Box
Method 1 β Draw on the map: Hold Shift and drag on the map to draw a rectangle. The four coordinate values update immediately. On mobile, use the Draw Mode button.
Method 2 β From a GeoJSON feature: If you already have a polygon, use our GeoJSON Validator β it reads the bbox from the file. Alternatively, paste your GeoJSON into the GeoJSON Viewer which shows the extent.
Bounding Box in GeoJSON
The GeoJSON spec lets you attach a bbox array to any object. Our tool generates a complete GeoJSON Feature with the bbox embedded:
{
"type": "Feature",
"bbox": [-74.26, 40.48, -73.70, 40.92],
"geometry": {
"type": "Polygon",
"coordinates": [[[-74.26,40.48],[-73.70,40.48],
[-73.70,40.92],[-74.26,40.92],
[-74.26,40.48]]]
}
}This polygon can be pasted directly into QGIS, kepler.gl, or any GeoJSON viewer.
Bounding Box vs Convex Hull
A bounding box is always a rectangle aligned with latitude/longitude lines. A convex hull is the tightest polygon that wraps around the actual shape of your features. For irregular shapes, a convex hull wastes less space, but bounding boxes are simpler and faster. Use bbox for API queries; use convex hull for spatial analysis.
Try It Free
Generate your bounding box now with our free Bounding Box Generator. No account required, runs entirely in your browser. Also useful: Coordinate Picker and GeoJSON Viewer.