geoprimsField-grade geospatial math

Geohash decoder

The center, bounding box, and error margins of a geohash.

Go the other way: Geohash encoder →

40.4461026°

The cell center is 40.4461026°, -79.9822068°.

Center longitude
Latitude error
Longitude error
South
West
North
Provenance
Computed by
indexing.geohash.decode 1.0.0, core 0.1.0
Model
Base-32 decode to interleaved bisection bits
Accuracy
Exact
Notes
None
Cites
Niemeyer, G., geohash.org, Geohash (public domain algorithm)

Something look off?

Your values

Showing an example. Change anything.
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: Base-32 decode to interleaved bisection bits

Accuracy: Exact

When to use this: Use this when a geohash turns up in a database key, a log line, or an API response and you need the ground it stands for: the center of its cell, the bounding box, and the error margins either side, so the precision is explicit rather than implied by the string's length. It is also how a stored key is checked: decoding the geohash shows the area a row actually covers, which is what tells you whether the precision chosen for the index suits the query.

Limitations: A geohash is a cell, not a point: six characters is roughly 1.2 km by 0.6 km, and the center is a convenience. Cells are rectangles in latitude and longitude, so their ground width shrinks toward the poles, and two points close together can sit in cells whose strings share no prefix, which matters when prefixes are used for proximity. The error margins it reports are half the cell in each direction, which is the honest uncertainty of any point derived from a geohash.

Worked example: dppn5fyxx. Source: Inverse of the encode scenario. It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

Geohash
dppn5fyxx

You get

Center latitude
40.4461026°
Center longitude
-79.9822068°
Latitude error
0.0000215°
Longitude error
0.0000215°
South
40.4460812°
West
-79.9822283°
North
40.4461241°
East
-79.9821854°

Review: Not yet independently reviewed by a GIS professional.

Last verified: 2026-09-18, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.0.0, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 24 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources