Geohash Encoder
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
GPS Coordinates Converter
Convert latitude/longitude between decimal degrees, DMS (40°42'46"N), and DMM (40°42.7666'N). Generate Google Maps and geo: URIs.
Spreadsheet Column Converter
Convert between spreadsheet column letters and numbers — A=1, Z=26, AA=27, BC=55 — and between A1 and R1C1 cell notation.
Unit Converter
Convert length, weight, temperature, area, volume, speed, and time.
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal.
IEEE 754 Float Converter (32 & 64-bit)
See the exact IEEE 754 bit layout of any number in float32 and float64 — sign, exponent, and mantissa bits, hex, the stored value, and rounding — or decode hex bits back to a number, all in your browser.
Two's Complement Converter (8–64 bit)
Enter a decimal, hex, binary, or octal value and see its 8/16/32/64-bit two's complement bit pattern, plus its signed and unsigned readings, hex, octal, and one's complement — in your browser.