Encode Lat/Long to Geohash or Decode Geohash to Coordinates
Advertisements
WGS84 CompliantPrecision: 0.0000001
100% Client-Side — Coordinate data never leaves your browser
Advertisements
What is a Geohash?
Spatial Indexing System
Invented in 2008 by Gustavo Niemeyer, Geohash is a public domain geographic geocode system which encodes a geographic location into a short string of letters and digits (Base32). It is widely used by databases such as Elasticsearch, MongoDB, and Redis for spatial indexing and rapid proximity searches.
Precision by Length
A key feature of Geohash is its adjustable precision. A 1-character Geohash covers a massive 5,000km x 5,000km area, while a 9-character Geohash pinpoints a location down to roughly 4.7m x 4.7m. Because nearby locations often share similar prefixes, simple string-prefix matching can be used for incredibly fast "find near me" queries in large datasets.
Related tool: The other geocode you will meet in Google Maps is the Plus Code — a short code like 8Q7XMQJ8+FR for Tokyo Station. Convert coordinates to Plus Codes and decode full codes back with the Plus Code Converter.
A Geohash is a public domain geocoding system invented by Gustavo Niemeyer that hierarchically interleaves latitude and longitude bits into a compact alphanumeric string using a base-32 character set.
How does Geohash string length correlate with spatial precision?
Each additional character subdivides the bounding box: 1 character represents ~5,000 km, 4 characters ~39 km, 6 characters ~1.2 km, 8 characters ~38 meters, and 12 characters resolves down to ~3.7 centimeters.
Why is Geohash used in spatial databases and APIs?
Because neighboring coordinates often share matching string prefixes, Geohashes allow databases like Elasticsearch, MongoDB, DynamoDB, and Redis to perform fast bounding box and radius queries using standard 1D string indexing.
What point does a decoded Geohash represent?
A Geohash technically defines a rectangular bounding box on the Earth's surface. Decoding a Geohash returns the geographic center point of that bounding box along with its latitude and longitude error bounds.