Skip to content
📍

GPS Coordinates Converter

Convert GPS coordinates between decimal degrees and degrees-minutes-seconds.

Runs in your browser

Updated

Decimal degrees → DMS

DMS → decimal degrees

—

Decimal degrees

Two independent panels

The top panel converts decimal degrees into degrees, minutes and seconds. Its two number fields default to 40.7128 and -74.006, an input listener fires on every keystroke, and the result line appends a hemisphere letter to each formatted coordinate. The bottom panel works the other way: separate fields for degrees, minutes and seconds plus a hemisphere select, defaulting to N and W, and the output rounds each coordinate to six decimal places.

A worked example

On the default latitude 40.7128, the minutes are 0.7128 times 60, which is 42.768, and the leftover fraction becomes 46.1 seconds, so the line reads 40 degrees 42 minutes 46.1 seconds north. Longitude -74.006 gives 74 degrees 0 minutes 21.6 seconds west. Feeding the matching parts back into the lower panel, 40 plus 42 over 60 plus 46 over 3600, prints 40.712778, -74.006. The two panels never sync, so that round trip differs from the original 40.7128 because the seconds were retyped as 46 rather than 46.1.

Rounding and carry rules

Seconds are the fractional minutes times 600, rounded, then divided by ten, so exactly one decimal appears. If that rounding reaches 60, the excess carries into the minutes, and 60 minutes carry into degrees. The Google Maps link underneath is rebuilt from the raw decimal inputs and opens in a new tab with a rel noopener attribute.

Where it stops

  • The top panel refuses magnitudes above 90 or 180 with a text prompt, but the bottom panel runs no range checks at all; the 59-minute ceiling is only a field attribute, so a typed 90 still converts.
  • There is no parser for pasted text such as 40 degrees 42 minutes N, only the six separate boxes.
  • Decimal-minute and NMEA formats are not supported in either direction.
  • A zero coordinate always reads as N or E, because the hemisphere comes from the sign test.

Questions people ask

Why do my converted coordinates not match the map pin?

Usually the tenth of a second. One decimal place of a second covers roughly three metres of ground, and the six-decimal output is accurate to about ten centimetres, so a pin placed from other software can differ by rounding alone.

Which hemisphere do I pick for a negative longitude?

W. The decimal panel reads the sign directly, while the DMS panel stores it in the select, so enter 74 as degrees and choose W rather than typing a minus.

Measure ground distance between two converted points with the distance calculator, and check what location your own browser leaks through the Geo IP locator.