Lat/Lng to DMS Converter

Convert decimal latitude/longitude to degrees, minutes and seconds

Ad placeholder (leaderboard)

This tool converts decimal latitude and longitude into DMS — degrees, minutes and seconds — the sexagesimal notation still used on nautical charts, aviation maps and many GPS receivers. Enter a signed decimal coordinate such as 51.507351, -0.127758 and get back 51°30'26.5" N, 0°7'39.9" W.

How it works

A decimal degree value is split into three parts. Take the absolute value of the coordinate, then:

degrees = floor(value)
minutes = floor((value - degrees) * 60)
seconds = (((value - degrees) * 60) - minutes) * 60

The original sign decides the hemisphere letter: positive latitude is N, negative is S; positive longitude is E, negative is W. Because there are 60 minutes in a degree and 60 seconds in a minute, the conversion is exact — only display rounding introduces any error.

Tips and notes

One second of latitude is roughly 31 metres, so keep a decimal place or two on the seconds for survey-grade precision. The conversion is purely arithmetic and runs entirely in your browser; no coordinates leave your device. To go the other way, use the DMS to Decimal converter.

Ad placeholder (rectangle)