DMS to decimal converter (lat long coordinates)
Paste coordinates like 40°26′46″N 79°58′56″W and get decimal degrees (40.446111, -79.982222), plus DMS and decimal-minute versions. Paste a whole column to convert hundreds of rows at once.
Everything runs in your browser. Your text and files stay on your device and are never uploaded.
2 converted.
| Input | Decimal degrees | Degrees, minutes, seconds | Degrees, decimal minutes |
|---|---|---|---|
| 40°26'46"N 79°58'56"W | 40.446111, -79.982222 | 40°26′46.00″N 79°58′56.00″W | 40°26.7667′N 79°58.9333′W |
| 51.5074, -0.1278 | 51.507400, -0.127800 | 51°30′26.64″N 0°07′40.08″W | 51°30.4440′N 0°07.6680′W |
How to use it
- Paste your coordinates into the box, one location per line. Degrees-minutes-seconds, decimal minutes and decimal degrees can be mixed.
- Check the table. Each row shows decimal degrees, DMS and degrees with decimal minutes, and lines that cannot be read say why.
- Set how many decimal places you want. Six places is about 11 centimeters on the ground.
- Copy a column, copy latitude and longitude as two columns for Sheets, or download a CSV.
The formula, with an example
Decimal degrees = degrees + minutes / 60 + seconds / 3600. For 40°26′46″N that is 40 + 26/60 + 46/3600 = 40.446111. South latitudes and west longitudes are negative, so 79°58′56″W is -79.982222.
Going the other way
Keep the whole degrees, multiply the leftover fraction by 60 for minutes, then multiply the leftover fraction of the minutes by 60 for seconds. 40.446111 gives 40 degrees, 0.446111 x 60 = 26.76666 minutes, 0.76666 x 60 = 45.9996, which rounds to 46 seconds.
Formats this reads
- Symbols: 40°26′46″N 79°58′56″W, or plain quotes like 40°26'46"N
- Letters or words: 40d26m46s N, 40 degrees 26 minutes 46 seconds north
- Spaces only: 40 26 46 N 79 58 56 W, or N 40 26 46 W 79 58 56
- Degrees and decimal minutes: 40 26.767 N
- Decimal pairs: 40.446111, -79.982222
Questions
How do you convert degrees minutes seconds to decimal degrees?
Add the degrees, the minutes divided by 60 and the seconds divided by 3600. For 40°26′46″ that is 40 + 0.43333 + 0.01278 = 40.44611. Make the result negative for south latitudes and west longitudes.
How do I convert decimal degrees to DMS?
Paste the decimal pair, for example 51.5074, -0.1278. The DMS column shows 51°30′26.64″N 0°07′40.08″W. Latitude gets N or S and longitude gets E or W from the sign.
Which way round do latitude and longitude go?
Latitude first, then longitude, which is the order Google Maps and most spreadsheets use. If your line has a W or E value before an N or S value, the tool swaps them and tells you.
Why is my longitude negative?
Longitudes west of the prime meridian and latitudes south of the equator are written as negative decimals. 79°58′56″W is -79.982222. A value with both a minus sign and a W or S is rejected as ambiguous.
What are the valid ranges?
Latitude runs from -90 to 90 and longitude from -180 to 180. Minutes and seconds must be under 60. Anything outside those limits is flagged on its own line instead of being guessed.
How many decimal places do I need?
Four places is about 11 meters, five about 1 meter and six about 11 centimeters at the equator. Six is a safe default for mapping and geocoding.