GeoJSON BBox Finder

Calculate the bounding box of a GeoJSON FeatureCollection

Upload a GeoJSON file or paste GeoJSON into the text area and get the geographic extent of all its features: the smallest box, defined by its minimum and maximum coordinates, that contains them all. The result is returned as GeoJSON and previewed on a map.

Accepted files: .json, .geojson

Calculate a GeoJSON dataset's extent

A bounding box is the smallest axis-aligned rectangle that encloses the coordinates in a dataset. Upload a .json or .geojson file, or paste a GeoJSON FeatureCollection. The result adds a bbox array to that FeatureCollection and displays the result on a map.

Boundary order and a worked example

The four values are [west, south, east, north], meaning minimum longitude, minimum latitude, maximum longitude and maximum latitude. For example, two GeoJSON points at [12.0, 55.0] and [12.5, 55.5] have the bounding box [12.0, 55.0, 12.5, 55.5]. GeoJSON positions are longitude first, latitude second.

{
  "type": "FeatureCollection",
  "features": [
    {"type": "Feature", "properties": {}, "geometry": {"type": "Point", "coordinates": [12.0, 55.0]}},
    {"type": "Feature", "properties": {}, "geometry": {"type": "Point", "coordinates": [12.5, 55.5]}}
  ]
}

The calculated bbox for this example is [12.0, 55.0, 12.5, 55.5].

The returned FeatureCollection includes that bounding box:

{
  "type": "FeatureCollection",
  "features": [
{"type": "Feature", "properties": {}, "geometry": {"type": "Point", "coordinates": [12.0, 55.0]}},
{"type": "Feature", "properties": {}, "geometry": {"type": "Point", "coordinates": [12.5, 55.5]}}
  ],
  "bbox": [12.0, 55.0, 12.5, 55.5]
}

How to calculate the bounding box

  1. Provide a GeoJSON FeatureCollection by uploading a file or pasting it into the text area.
  2. Select Calculate. The tool returns the input collection with its calculated bbox member.
  3. Inspect the returned JSON or the map preview.

Use the extent in maps and APIs

The west, south, east and north limits can be used to set a map view or as a spatial filter in systems that accept a bounding-box parameter. The tool requires a GeoJSON FeatureCollection; malformed JSON, another GeoJSON object type or an invalid features list is rejected. Upload requests are limited to 10 MB and 100,000 features.

Logistics software can use the extent to initialize a regional map or screen geographic datasets before further processing. A bounding box is rectangular and does not describe the exact outline of a delivery area or service zone.

Related tools

Find other GeoJSON tools in the GeoJSON and GIS data collection. A worked example is in how to find a GeoJSON bounding box.

Frequently asked questions

What is a bounding box?

A bounding box is the smallest rectangle, aligned with latitude and longitude, that contains all of your geographic data. It is described by its south, west, north and east boundaries.

How do I calculate the bounding box of a GeoJSON file?

Upload your .json or .geojson FeatureCollection and press Calculate. The tool reads every geometry and returns the smallest box that contains all of them.

What can I use a bounding box for?

Bounding boxes are used to set the initial view of a map, to filter data to an area, and as the bbox parameter of many mapping and spatial APIs.

Which GeoJSON input is supported?

The calculator accepts a GeoJSON FeatureCollection in a .json or .geojson file.

Can I calculate bounding boxes in my own application?

Yes. Bounding box calculation is available through our API.

Use this capability in your application

Calculate bounding boxes in your own application: the bounding box endpoint of our geospatial API returns the extent of a GeoJSON FeatureCollection, alongside coordinate conversion, geocoding and GeoJSON validation.

Explore the geospatial API