Latitude and longitude to MGRS
Encodes a WGS 84 latitude and longitude as an grid reference at any precision, truncating (never rounding) as the standard requires.
The MGRS reference is 17T NE 86309 77770, a 1 m square.
| Latitude | Longitude |
|---|---|
| 40.4461072 deg | -79.9822333 deg |
| 40.4461072 deg | -79.9822303 deg |
| 40.4461072 deg | -79.9822274 deg |
| 40.4461072 deg | -79.9822244 deg |
| 40.4461071 deg | -79.9822215 deg |
| 40.4461094 deg | -79.9822215 deg |
| 40.4461116 deg | -79.9822214 deg |
| 40.4461139 deg | -79.9822214 deg |
| 40.4461162 deg | -79.9822214 deg |
| 40.4461162 deg | -79.9822243 deg |
| 40.4461162 deg | -79.9822273 deg |
| 40.4461162 deg | -79.9822302 deg |
| 40.4461163 deg | -79.9822332 deg |
| 40.4461140 deg | -79.9822332 deg |
| 40.4461117 deg | -79.9822332 deg |
| 40.4461095 deg | -79.9822333 deg |
- MGRS (spaced)
- Square size
Provenance
- Computed by
- geodesy.grid-ref.mgrs-forward 1.3.0, core 0.1.0
- Model
- NGA MGRS over UTM and UPS: AA lettering, or AL on the legacy Clarke 1866 and Bessel 1841 ellipsoids
- Accuracy
- Exact; the reference names the square containing the point (truncation)
- Notes
- None
- Cites
- National Geospatial-Intelligence Agency, Military Grid Reference System, NGA.STND.0037; Karney, C. F. F., GeographicLib, GeographicLib MGRS and UTMUPS classes
Something look off?
How we got thisFormula, worked example, sources, and proof
Model: NGA MGRS over UTM and UPS: AA lettering, or AL on the legacy Clarke 1866 and Bessel 1841 ellipsoids
Show your work
Grid position
the UTM or UPS zone, easting, and northing the point falls at40.446111°, -79.982222°= zone 17, 586,310 m E, 4,477,770 m NSquare
how much of the easting and northing the chosen precision keepsprecision 5= 1 m acrossReference
zone, band, 100 km square, then the kept digitszone 17 at precision 5= 17TNE8630977770
The same steps an agent gets from the MCP server with explain: true.
Accuracy: Exact; the reference names the square containing the point (truncation)
When to use this: Use this when a position has to be written the way military and emergency services read it: an MGRS reference at the precision you choose, from a 100 km square down to a meter. It is the form used on ground operations, in search and rescue, and on maps that carry the grid.
Limitations: The reference names the square that contains the point, because MGRS truncates rather than rounds: a ten-digit reference is a one-meter square whose south-west corner is the position given, and a shorter one names a larger square. It is defined on UTM and UPS, so it carries their zone structure, and the coordinates here are WGS 84.
Worked example: Pittsburgh at 1 m. Source: add-geodesy-suite scenario: 17TNE8630977770. 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
You get
- MGRS
- 17TNE8630977770
- MGRS (spaced)
- 17T NE 86309 77770
- Square size
- 1 m
Review: Not yet independently reviewed by a geodesist.
Last verified: 2026-09-18, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.
Status: version 1.3.0, core 0.1.0. See this tool in the verification report.
Changes
- 2026-10-07, added: The MGRS map now draws the grid around the referenced square: the square's size (at least 1 km) three squares out, and the 100 km square that holds it. The lines follow the zone's grid, so they lean by the grid convergence. The reference and the square are unchanged. Changelog
- 2026-09-25, added: MGRS results now include the outline of the square the reference names, so the map draws the square instead of a point. Existing outputs are unchanged. Changelog
- 2026-09-24, added: MGRS references (version 1.1.0) can now be made and read on the Clarke 1866 and Bessel 1841 ellipsoids, with the older AL row lettering NGA keeps for them, which starts the 100 km rows ten letters later than the AA lettering used on WGS 84. They match NGA GEOTRANS on 600 references. References on WGS 84 are unchanged. Changelog
- 2026-09-19, changed: MGRS encode and decode are now stable. They match the Washington Monument example in the FGDC US National Grid standard and 2,000 references from NGA GEOTRANS; where GEOTRANS's own projection is 1.5 cm off near the poles and in Svalbard, PROJ confirms geoprims. Results are unchanged. Changelog
Checked against: 32 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.
Constants this tool assumes
Values you do not enter, and where each comes from.
- UTM scale factor on the central meridian k0
0.9996— NGA.SIG.0012 UTM and UPS- UTM false easting
500000 m— NGA.SIG.0012 UTM and UPS- UTM false northing in the southern hemisphere
10000000 m— NGA.SIG.0012 UTM and UPS- UPS scale factor at the pole k0
0.994— NGA.SIG.0012 UTM and UPS- UPS false easting and northing
2000000 m— NGA.SIG.0012 UTM and UPS
Sources
- Military Grid Reference System, NGA.STND.0037, National Geospatial-Intelligence Agency, NGA.STND.0037_2.0.0_GRIDS. MGRS lettering (AA scheme) and truncation. Read free.
- GeographicLib MGRS and UTMUPS classes, Karney, C. F. F., GeographicLib, GeographicLib 2.x. MGRS.cpp: band tolerance, square validation, UPS lettering. Read free.
Terms
- MGRS: Military Grid Reference System
- UTM and UPS coordinates written as a zone, a latitude band, a two-letter 100 km square, and digits, like 17T NE 86309 77770. Source: NGA.STND.0037 MGRS
MGRS — Military Grid Reference System
UTM and UPS coordinates written as a zone, a latitude band, a two-letter 100 km square, and digits, like 17T NE 86309 77770.
Source: NGA.STND.0037 MGRS
Learn the concept: MGRS and USNG coordinates explained, UTM coordinates explained