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.
Practical examples
London’s Trafalgar Square sits at approximately 51.507351, -0.127758 in decimal degrees. Converting:
- Latitude: 51° 30’ 26.5” N
- Longitude: 0° 7’ 39.9” W
The negative sign on longitude becomes the W hemisphere suffix; the negative sign on latitude would become S.
Classic pitfall — rounding to whole seconds: If you only need whole seconds, note that rounding seconds = 59.97 to 60 is mathematically wrong — you should carry it forward as 1'00". This tool keeps two decimal places of seconds to avoid that and lets you round only at display time.
When DMS is required versus decimal
| Context | Preferred format |
|---|---|
| Nautical charts | DMS or DDM |
| Aviation (ICAO) | DMS |
| Google Maps URL | Decimal |
| GIS / PostGIS | Decimal |
| Printed topo maps | DMS |
| GPS receivers (many models) | Both, user-selectable |
DDM (decimal minutes) is a related hybrid format — degrees as whole numbers, minutes with decimals — used by many marine GPS units. This tool outputs full DMS, not DDM. To convert DDM, treat the decimal-minute portion: minutes are the integer part and seconds are the fractional part times 60.
Precision notes
One second of latitude is roughly 31 metres; one tenth of a second is about 3 metres. For cadastral or survey-grade work, keep at least two decimal places on the seconds. For a casual map label, rounding to whole seconds is fine.
The conversion is purely arithmetic and runs entirely in your browser — no coordinates are transmitted anywhere. To reverse the operation, use the DMS to Decimal converter.