Lat/Lng to Maidenhead Locator

Convert coordinates to a Maidenhead ham-radio grid square

Ad placeholder (leaderboard)

This tool converts decimal latitude and longitude to a Maidenhead Locator (also called a QTH locator or grid square), the compact grid-reference system used throughout amateur radio for contests, beacons and grid hunting. It outputs a 4, 6 or 8 character code such as IO91wm.

How it works

Both coordinates are first made positive by shifting:

adjLng = longitude + 180   (0 to 360)
adjLat = latitude  + 90    (0 to 180)

The result is then encoded in pairs, each level dividing the previous cell:

  • Field — two letters A to R: adjLng / 20, adjLat / 10
  • Square — two digits 0 to 9: each field split into 10 along longitude and latitude
  • Subsquare — two letters a to x: each square split into 24 along longitude and latitude

So a 6-character locator like IO91wm pins a point to within a few kilometres. By convention the field letters are upper case and the subsquare letters lower case.

Tips and notes

Four characters give a roughly 100 km cell, six characters about 5 km, and eight characters a few hundred metres. The locator encodes the south-west corner of the cell; this tool finds the cell that contains your point. Everything runs in your browser. Pair it with the DMS converters when working from chart coordinates.

Ad placeholder (rectangle)