To encode DD to Geohash: interleave longitude bits (even) and latitude bits (odd) by repeatedly bisecting the coordinate ranges, then group into 5-bit chunks and map to the base32 alphabet.
DD to Geohash Converter
Could not parse that coordinate.
DD
Decimal Degrees
—
DMS
Deg. Min. Sec.
—
DDM
Deg. Decimal Min.
—
UTM
Univ. Trans. Mercator
—
MGRS
Military Grid
—
Geohash
Base32
—
Plus Code
Open Location Code
—
How to Convert DD to Geohash: Step by Step
- 1 Start with longitude range [–180, 180] and latitude range [–90, 90].
- 2 Alternately bisect longitude (even bits) then latitude (odd bits).
- 3 If the coordinate is in the upper half, bit = 1 and update the lower bound; otherwise bit = 0.
- 4 Group every 5 bits and map to the Geohash alphabet (0–9, b–z without a, i, l, o).
- 5 Repeat until you reach the desired precision length.
Worked Example
Input
48.857000, 2.351000
Latitude conversion:
Interleave and encode → u
Longitude conversion:
Continue → 09tvw0f
Result:
u09tvw0f
Why Convert DD to Geohash?
Needed for storing locations in Redis (GEOADD), Elasticsearch geo_point, DynamoDB geospatial indexes, or any system that uses Geohash-based proximity search.
Common Mistakes to Avoid
- ✕ Choosing too-short a geohash (low precision)
- ✕ Not accounting for edge effects near ±180° longitude
- ✕ Using standard base32 alphabet instead of Geohash alphabet