Geohash Encoder

Converts a latitude and longitude into a geohash — a short string that names a rectangular cell on the earth. Nearby places share a prefix, which makes geohashes useful as database keys for proximity lookups. Enter "latitude, longitude" and optionally a precision from 1 to 12; the default of 9 gives a cell of roughly five metres. Runs entirely in your browser — nothing is sent to a server.

Ad placeholder: Resp_Horizantal_1 (horizontal)
Ad placeholder: Resp_Square_1 (square)

Converts a latitude and longitude into a geohash — a short string that names a rectangular cell on the earth. Nearby places share a prefix, which makes geohashes useful as database keys for proximity lookups. Enter "latitude, longitude" and optionally a precision from 1 to 12; the default of 9 gives a cell of roughly five metres. Runs entirely in your browser — nothing is sent to a server.

Use cases

  • Generating a short spatial key for indexing locations in a database
  • Bucketing nearby coordinates together by shared prefix

Examples

London

51.5074, -0.1278
gcpvj0duq

FAQ

Is my location sent to a server?

No — this tool runs entirely in your browser.

What does precision control?

The number of characters, and so the cell size. Each character narrows the cell: 5 characters is about 2.4 km, 9 is about 5 m, and 12 is under 4 cm.

Why are a, i, l, and o missing?

The geohash alphabet leaves them out because they are easily confused with 1 and 0 when read or typed by hand.