Home / Conversion Guide
DMS Geohash

Convert Degrees Minutes Seconds to Geohash

Convert DMS to DD first (DD = D + M/60 + S/3600), then encode to Geohash using the base32 interleaving algorithm.

DMS to Geohash Converter

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 DMS to Geohash: Step by Step

  1. 1 Convert DMS to Decimal Degrees: DD = D + M/60 + S/3600.
  2. 2 Start with lat range [-90,90] and lng range [-180,180].
  3. 3 Alternately bisect longitude (even bits) and latitude (odd bits).
  4. 4 Group bits into 5-bit chunks and map to Geohash alphabet.

Worked Example

Input 47°36'22"N 122°19'55"W

Latitude conversion:

47.6061°N, -122.3319°W → DD

Longitude conversion:

DD → Geohash encoding

Result:

c22ymnpq9

Why Convert DMS to Geohash?

GIS databases that use Geohash-based indexing need coordinates in Geohash format.

Common Mistakes to Avoid

  • Not converting to DD first
  • Using the wrong alphabet