Geohash Encoder
Convert
Geohash is a hierarchical spatial index that encodes a lat/lng pair into a short string of base-32 characters. Each additional character refines the cell by a factor of 32, so precision 5 gives ~5 km cells, precision 8 gives ~38 m cells, and precision 12 gives ~3 cm cells. The format is widely used for proximity search in databases (Redis GEO, MongoDB, Elasticsearch), tiling, and IoT location batches. This tool encodes a coordinate to any precision 1-12, decodes back with the bounding box, and shows all 8 neighboring cells (useful for proximity queries that need to check adjacent cells).
wydm9qy89
N 37.566504, E 126.978006
Cell size halves alternately by character. Precision 9 (~5 m) is good for delivery; 5 (~5 km) for city-scale proximity.
How to use
- Encode mode: enter lat/lng (decimal degrees, e.g. `37.5665, 126.978`) and pick precision.
- Decode mode: paste a geohash; you get the center coordinate and bounding box.
- Neighbors are computed automatically — useful for 'find points near X' queries that should also check the 8 surrounding cells.
Frequently asked questions
- What's the alphabet?
- Base-32 with characters `0-9bcdefghjkmnpqrstuvwxyz` — the letters `a`, `i`, `l`, `o` are excluded to reduce ambiguity (looks like 4, 1, 1, 0). This is the standard Niemeyer alphabet used by every geohash library.
- How precise is each level?
- Cell size halves alternately in longitude and latitude per character. Approximate cell widths at the equator: 1→5000 km, 3→156 km, 5→4.9 km, 7→153 m, 8→38 m, 9→4.8 m, 12→3.7 cm. Cells get narrower toward the poles.
- Why are neighbors useful?
- Geohash cells form a grid. A point near a cell boundary may have its nearest neighbor in an adjacent cell — so 'find points within 1 km' shouldn't just query the target cell, it should query the 3×3 block. The neighbor function gives you the 8 surrounding hashes to OR into your query.
Related tools
CSS Unit Converter
Convert between px, rem, em, pt, vw, vh, and % using your own base font size and viewport.
JSON ↔ YAML Converter
Convert JSON to YAML or YAML to JSON — pick the indent and copy the result.
Data Size Converter
Convert between bytes, KB, MB, GB, TB — in decimal (1000) or binary (1024).
Roman Numeral Converter
Convert between Arabic numbers and Roman numerals from 1 to 3999.
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal.
Unit Converter
Convert length, weight, temperature, area, volume, speed, and time.