Geohash Encoder / Decoder
Encode lat/long to geohash and decode back — choose 1–12 characters, see the precision in metres at each length. Free, in-browser.
Lat/Long → Geohash
| 4 chars | ±20 km — region |
| 5 chars | ±2.4 km — city district |
| 6 chars | ±610 m — neighbourhood |
| 7 chars | ±76 m — street block |
| 8 chars | ±19 m — building |
| 9 chars | ±2.4 m — entrance |
| 10 chars | ±0.6 m — survey-ish |
Geohash → Lat/Long
All conversion math runs in your browser — coordinates are never sent to a server.
Field guide: Geohash Encoder / Decoder
A geohash packs a location into a short base-32 string — ttnfv2u is Delhi to ~76 m — by interleaving the bits of repeated longitude/latitude bisections. Its killer property is the prefix: truncate a geohash and you get the containing cell, which means a plain B-tree index, a Redis sorted set or a DynamoDB partition key can answer 'what's near me' queries with string prefix matching. That's why Elasticsearch, Redis geo commands and half the location startups of the last decade use it under the hood. This tool encodes and decodes interactively, with a live table of what each length means in metres.
The encoder implements Gustavo Niemeyer's original public-domain scheme (the one every library is compatible with): base-32 alphabet 0–9 b–z minus a, i, l, o; even bits longitude, odd bits latitude. Decoding returns the cell centre with its ± error, which is the honest way to state geohash precision — a 5-character hash isn't a point, it's a ~4.9 × 4.9 km box. Everything runs client-side, so coordinates you test never leave the browser.
Field tips
- Choosing a length for proximity features: 6 characters (~±0.6 km) for neighbourhood grouping, 7 (~±76 m) for street-level, 9 (~±2.4 m) for door-level. Longer than 9 exceeds consumer GPS accuracy.
- Prefix search has a gotcha: two points metres apart can have completely different geohashes across cell boundaries (the 'edge problem'). Production proximity queries check the cell and its 8 neighbours.
- Geohash cells aren't square away from the equator — east-west size shrinks with cos(latitude), so the same length is 'tighter' in Helsinki than in Singapore.
Conversions run locally in your browser and follow the cited specifications. Always verify critical output in the target application; for survey-grade or legal data, confirm coordinate systems and datums with your GIS team.
Geohash Encoder / Decoder — Encode lat/long to geohash and decode back — choose 1–12 characters, see the precision in metres at each length. Free, in-browser. Runs 100% in your browser: no upload, no sign-up, no size limits beyond your device.
About Geohash Encoder / Decoder
A geohash packs a location into a short base-32 string — ttnfv2u is Delhi to ~76 m — by interleaving the bits of repeated longitude/latitude bisections. Its killer property is the prefix: truncate a geohash and you get the containing cell, which means a plain B-tree index, a Redis sorted set or a DynamoDB partition key can answer 'what's near me' queries with string prefix matching. That's why Elasticsearch, Redis geo commands and half the location startups of the last decade use it under the hood. This tool encodes and decodes interactively, with a live table of what each length means in metres.
How to use Geohash Encoder / Decoder
- 1Enter coordinates (or tap 📍 to use your location) — conversion is instant as you type.
- 2Pick the precision/length that matches your use case; the tool explains what each level means.
- 3Copy the converted value with one click, or convert in the reverse direction in the lower panel.
Why use Geohash Encoder / Decoder?
- ✓100% free, no sign-up, no file-size upsell games
- ✓Fully client-side: files and coordinates never upload to a server
- ✓Honest errors and warnings instead of silent bad output
- ✓Works offline once the page is loaded
- ✓Implements the documented standard: Niemeyer, G.
Frequently asked questions
How does a geohash actually encode a position?+
By binary search on the globe: longitude −180…180 is halved repeatedly (each halving = one bit: 1 for the upper half), interleaved with the same on latitude. Every 5 bits become one base-32 character. ttnfv2u literally replays 35 yes/no questions narrowing Earth down to a ~150 × 76 m cell containing your point.
What precision do I get per character?+
Roughly: 1 char ±2,500 km, 4 ±20 km, 5 ±2.4 km, 6 ±0.61 km, 7 ±76 m, 8 ±19 m, 9 ±2.4 m, 10 ±0.6 m (latitude errors; longitude scales with cos of latitude). The tool's table highlights your selected length. Note the decoded value is the cell centre — the original point can be anywhere within ± the stated error.
Why do nearby points sometimes share no geohash prefix?+
Cell boundaries. Two cafés facing each other across a bisection line — most famously the Greenwich meridian or the equator — fall into different halves at the very first bit, so their hashes differ from character one. It's the classic geohash 'edge effect'; real systems query the target cell plus its eight neighbours to catch boundary stragglers.
Geohash vs MGRS vs plus codes — when which?+
Geohash when machines index locations (databases, sharding, caching) — the prefix property is the whole point. MGRS when humans communicate positions precisely (military, SAR). Plus codes when you need a shareable 'address' for places without street addresses. All three are encodings of the same WGS84 coordinates — this kit converts two of them, and lat/long bridges to anything.
Embed Geohash Encoder / Decoder on your website
Want Geohash Encoder / Decoderon your own site? Paste this snippet into any HTML page — it's free, with no API key or sign-up. The tool loads in an iframe and keeps working exactly as it does here.
<iframe src="https://tooljolt.com/tools/geohash-converter" width="100%" height="640" style="border:1px solid #e5e7eb;border-radius:12px;max-width:680px" title="Geohash Encoder / Decoder — ToolJolt" loading="lazy"></iframe>Related GIS tools
Shapefile to GeoJSON Converter
Convert ESRI shapefiles (.shp + .dbf or zipped) to GeoJSON in your browser — attributes preserved, nothing uploaded. Free, no size games.
● LiveShapefile Viewer
Open and inspect ESRI shapefiles online without ArcGIS or QGIS — feature counts, attributes and GeoJSON preview, 100% in your browser.
● LiveKMZ to KML Converter
Extract the KML from any KMZ file in your browser — see bundled icons/overlays too. No upload, no Google Earth install needed.
● Live