# Bounding Box Calculator

Get the bounding box of a set of coordinates or of any GeoJSON data. Paste latitude and longitude pairs, one per line, or a GeoJSON Feature, FeatureCollection or geometry, and the tool returns the north, south, east and west limits, the center, the width and height in kilometers and a ready-to-use bbox array in GeoJSON order. Handy for map viewports, API queries, tile requests and spatial indexes.

## Frequently asked questions

### Which input formats are accepted?

Either coordinate pairs, one per line as latitude and longitude in decimal degrees separated by a comma or a space, or GeoJSON. Input that starts with a curly brace is read as GeoJSON: a FeatureCollection, a Feature or a bare geometry such as a Polygon or LineString.

### What order does the bbox array use?

The bbox array follows the GeoJSON standard RFC 7946: west, south, east, north, that is minimum longitude, minimum latitude, maximum longitude and maximum latitude. Some APIs expect south, west, north, east instead, so check the order your service requires.

### How are the width and height measured?

The height is the distance along a meridian between the south and north edges. The width is measured along the parallel through the center of the box, so it shrinks toward the poles for the same span of longitude.

### Does the tool use the bbox stored in my GeoJSON?

No. The box is always recomputed from the actual coordinates of every geometry, so an outdated bbox member in the input does not affect the result.

### Which GeoJSON geometries are supported?

Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection, on their own, inside Features or in a FeatureCollection. Features without a geometry are allowed and ignored, and polygon rings must be closed with at least four positions.

### What about data that crosses the 180th meridian?

The box is the plain minimum and maximum of the longitudes, so data on both sides of the date line produces a box that spans almost the whole globe. Split such data or shift its longitudes first if you need the narrow box across the date line.

### Why are my coordinates rejected?

GeoJSON stores longitude first and latitude second, and both must be numbers within -180 to 180 and -90 to 90. Data in a projected system such as Web Mercator meters is not valid GeoJSON and must be converted to WGS84 degrees first.

### How large can the input be?

Up to 5 MiB of text, 10,000 coordinate lines or 10,000 GeoJSON features. Larger datasets are better processed with a desktop GIS or a command line tool.

### How precise is the output?

All coordinates are shown with six decimal places, about 0.1 meters, and the width and height to the meter. The limits come straight from the input coordinates without any snapping or padding.

### Can I use the result in a map library?

Yes. The bbox array can be passed to most web map libraries and APIs that take a GeoJSON style bounding box, and the center works as the initial center of a map.

Your ad here?

[Email us](mailto:hi@dennn.is?subject=Advertising%20on%20OneClick%20Pro)

[Ad The agent-ready plugin suite for WordPress.](https://sleekwp.com/?ref=oneclickpro)
