geoprimsField-grade geospatial math

Latitude and longitude to Maidenhead locator

Encodes a latitude and longitude as a Maidenhead (QTH) locator of 2 to 10 characters, as used in amateur radio, with the cell's bounds.

Go the other way: Maidenhead locator to latitude and longitude →

FN00ak

The Maidenhead locator is FN00ak.

Center latitude
Center longitude
South edge
West edge
North edge
East edge
Provenance
Computed by
geodesy.grid-ref.maidenhead-forward 1.1.0, core 0.1.0
Model
IARU Maidenhead locator: 18×18 fields, 10×10 squares, 24×24 subsquares, and the extended pairs; a point on a grid line falls in the cell east or north of it, and +90° and +180° in the last cell
Accuracy
Exact (integer cell arithmetic); matches an independent implementation of the definition
Notes
None
Cites
International Amateur Radio Union, Region 1, VHF Managers Handbook: the Maidenhead Locator System

Something look off?

Your values

Showing an example. Change anything.
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: IARU Maidenhead locator: 18×18 fields, 10×10 squares, 24×24 subsquares, and the extended pairs; a point on a grid line falls in the cell east or north of it, and +90° and +180° in the last cell

Accuracy: Exact (integer cell arithmetic); matches an independent implementation of the definition

When to use this: Use this for amateur radio and anything that follows it: a Maidenhead or QTH locator identifies a station's square in two to ten characters, and contest logs, propagation reports, and antenna-aiming software all speak it. Give a position and it returns the locator at the length you want, with the square's bounds. Six characters is the usual exchange, eight or ten when a station wants to be pinned down for a contest or for microwave work.

Limitations: A locator is a square, not a point: the common six-character form is about five kilometers by two and a half, and the square's ground size changes with latitude because it is defined on degrees. Distances computed between two locators are between square centers and inherit that uncertainty. Beyond eight characters the extra precision is finer than most stations know their own position to, so it implies more than it delivers.

Worked example: Pittsburgh at 6 characters. Source: add-geodesy-suite scenario: FN00ak. It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

Latitude
40.446111 deg
Longitude
-79.982222 deg
Characters
6

You get

Locator
FN00ak
Center latitude
40.4375°
Center longitude
-79.958333333°
South edge
40.416666667°
West edge
-80°
North edge
40.458333333°
East edge
-79.916666667°

Review: Not yet independently reviewed by a geodesist.

Last verified: 2026-09-19, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.1.0, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 23 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources