Convert Lat Long from DMS to Decimal DegreesType, paste, or convert a whole list

Add degrees, minutes ÷ 60, and seconds ÷ 3600, and make south and west values negative. Type the numbers or paste a string like 40°26'46"N 79°58'56"W, and the converter fills in every format.

Your input is never sent anywhere.

Details

Sample locations

Paste coordinates (latitude first)

Latitude

Decimal degrees (DD)
Degrees, minutes, seconds (DMS)

Deg

Min

Sec

Dir

Longitude

Decimal degrees (DD)
Degrees, minutes, seconds (DMS)

Deg

Min

Sec

Dir

Converted formats

Decimal degrees (DD)

40.446111, -79.982222

Decimal degrees with direction

40.446111° N, 79.982222° W

Degrees decimal minutes (DDM)

40°26.7667'N, 79°58.9333'W

Degrees, minutes, seconds (DMS)

40°26'46.00"N, 79°58'56.00"W

Open in Google Maps

Convert a list of coordinates

One pair per line, latitude first. Each line can be decimal degrees, DDM, or DMS. The first 500 lines are converted.

Distance and bearing between two points

Point A is the latitude and longitude above. Enter point B in decimal degrees.

Straight-line distance

312.04 mi

502.18 km

Bearing from point A

85° (E)

Degrees clockwise from north

Tip

Most map APIs and spreadsheets expect decimal degrees. Geocaching sites and handheld GPS units often show degrees decimal minutes, and printed charts and encyclopedias often use degrees, minutes, seconds. For south latitude or west longitude, choose S or W in the Dir menu, or type a negative number in the decimal box.

How to convert DMS to decimal degrees (formula and example)

Decimal degrees = degrees + minutes ÷ 60 + seconds ÷ 3600. Make the result negative for south latitude or west longitude. For example, 40°26'46"N is 40 + 26/60 + 46/3600 = 40.446111, and 79°58'56"W is -79.982222.

This page does the math as you type. Enter degrees, minutes, and seconds, or paste a coordinate string, and it fills in decimal degrees, degrees decimal minutes (DDM), and DMS together. It reads text such as 40°26'46"N 79°58'56"W, N 40° 26.767' W 79° 58.933', and 40 deg 26' 46.00" N, and it links to Google Maps so you can check where the point lands.

To go the other way, type decimal degrees and the Deg, Min, and Sec boxes update. The same page converts a whole list of points and gives the distance and bearing between two points in miles and kilometers.

Where you run into DMS, DDM, and EXIF coordinates

A photo's metadata lists the location as 40 deg 26' 46.00" N

Some metadata viewers print GPS positions with the word deg. Paste the latitude and longitude into Paste coordinates and the converter reads the words as degrees, minutes, and seconds.

A geocache or handheld GPS shows degrees and decimal minutes

Coordinates like N 40° 26.767' W 79° 58.933' are DDM. Paste them to get decimal degrees, and use the Degrees decimal minutes (DDM) row to copy a value back in that style.

An atlas or encyclopedia gives DMS, but your map API wants decimal

Leaflet, the Google Maps API, and most GIS tools take decimal degrees. Convert the point, then copy the Decimal degrees (DD) row. GeoJSON lists longitude first, so check the order before you paste it in.

A spreadsheet column holds dozens of DMS coordinates

Paste the column into Convert a list of coordinates, one pair per line. Each line is converted separately, and lines that can't be read are marked so you can fix them.

A form or report asks for degrees, minutes, and seconds

Type decimal degrees such as 40.446111 and read the Degrees, minutes, seconds (DMS) row: 40°26'46.00"N. Select Copy to paste it into the form.

You need the distance between two coordinates in miles

Enter point B in decimal degrees. The page shows the straight-line distance in miles and kilometers, plus the compass bearing from point A.

Paste, convert, and copy coordinates

  1. Type latitude and longitude in the Decimal degrees (DD) boxes, or enter degrees, minutes, and seconds in the Deg, Min, and Sec boxes. Choose N or S and E or W in the Dir menu.
  2. Or paste text such as 40°26'46"N 79°58'56"W into Paste coordinates, with latitude first, and select Convert pasted text.
  3. Read the result under Converted formats and select Copy next to the format you need.
  4. For many points, paste one pair per line into Convert a list of coordinates and select Copy decimal results.

Note: Select Open in Google Maps to check where the point lands.

Rounding, input limits, and the distance formula

  • Decimal degrees are shown to 6 decimal places (about 4 inches). Seconds are shown to 2 decimal places and DDM minutes to 4. Seconds are rounded to two decimals before they are split into minutes and seconds, so you won't see 60.00.
  • Typed latitude is limited to -90 to 90 and longitude to -180 to 180. A typed value outside that range is set to the nearest limit. Pasted text outside the range is rejected with an error message.
  • The Min box accepts 0 to 59, and the Sec box accepts 0 to 59.999.
  • In pasted text, a second number after the degrees is read as minutes (decimals allowed), and a third number is read as seconds. A leading minus sign, or S or W, makes the value negative.
  • The converter changes notation only. It does not change datums. If a source uses an older datum such as NAD27, the point can move by tens of meters when it is converted to WGS 84, and this page won't make that adjustment.
  • Distance uses the haversine formula on a sphere with a 6,371 km radius. Distances measured on the WGS 84 ellipsoid can differ by up to about 0.5%. Bearing is the initial bearing from point A toward point B.
  • The conversion runs in your browser, and the page does not upload the coordinates you enter. Open in Google Maps sends the coordinates to Google only when you select it.

Landmark coordinates in DMS and decimal degrees

Each row writes the same point both ways, in the format the converter outputs. Select a name under Sample locations to load it.

PlaceDecimal degrees (lat, long)DMS (lat, long)
Statue of Liberty40.689167, -74.04444440°41'21.00"N, 74°2'40.00"W
Golden Gate Bridge37.819722, -122.47861137°49'11.00"N, 122°28'43.00"W
Eiffel Tower48.858333, 2.29444448°51'30.00"N, 2°17'40.00"E
Sydney Opera House-33.856944, 151.21527833°51'25.00"S, 151°12'55.00"E
Mount Everest27.988056, 86.92527827°59'17.00"N, 86°55'31.00"E
Christ the Redeemer-22.951944, -43.21055622°57'7.00"S, 43°12'38.00"W

Size of one degree, minute, and second of latitude
1° is about 69 mi (111 km), 1′ is about 1.15 mi (1.85 km), and 1″ is about 101 ft (31 m). Degrees of longitude get shorter toward the poles. At 40°N, 1° of longitude is about 53 mi (85 km).

Landmark points are approximate and rounded to the nearest second.

How many decimal places do GPS coordinates need?

Use these reference sizes to decide how much precision to keep when you round a coordinate.

Decimal places and ground distance

Four decimal places of latitude is about 36 ft (11 m), five is about 3.6 ft (1.1 m), and six is about 4 in (0.11 m). Longitude steps are the same at the equator and shorter farther north or south. Phone GPS is typically accurate to about 16 ft (5 m) in open sky, so five or six places is enough for most uses.

One degree, minute, and second in miles and feet

One degree of latitude is about 69 mi (111 km). One minute is about 1.15 mi (1.85 km), and one second is about 101 ft (31 m). A second of longitude is the same size at the equator and about 78 ft (24 m) at 40°N.

DMS, DDM, and DD: one point, three notations

The same point can be written as 40°26'46"N (degrees, minutes, seconds), 40°26.7667'N (degrees decimal minutes), or 40.446111°N (decimal degrees). Only the notation differs. The location is the same.

Why west and south are negative

Latitude is measured from the equator and longitude from the prime meridian through Greenwich. North and east are positive, south and west are negative, so latitude runs from -90 to 90 and longitude from -180 to 180. The letters N, S, E, and W carry the same information as the sign, so use one or the other, not both.

Why converted coordinates land in the wrong place

A west longitude entered without the minus sign

The point 40°26'46"N 79°58'56"W is 40.446111, -79.982222. Entering 79.982222 without the minus sign puts the point in western China instead.

💡 See the solution▼
Choose W in the Dir menu or type a minus sign in the Decimal degrees (DD) box. The Decimal degrees with direction row shows N, S, E, or W, so you can compare it with your source.

DMS digits typed into a decimal field

Typing 40.2646 for 40°26'46" reads as a decimal value. It is about 12 miles south of the real point at 40.446111.

💡 See the solution▼
Enter degrees, minutes, and seconds in the Deg, Min, and Sec boxes, or paste the full text into Paste coordinates. Then check the Decimal degrees (DD) row.

Decimal minutes read as seconds

Geocaching sites and many handheld GPS units show degrees and decimal minutes, such as N 40° 26.767'. The 26.767 is minutes with a decimal part. Converting it as minutes and seconds gives the wrong point.

💡 See the solution▼
Paste the full text into Paste coordinates. A second number after the degrees is read as minutes, decimals included, and only a third number is read as seconds.

Latitude and longitude swapped

Some sources list longitude first, as GeoJSON does. Pasting -79.982222, 40.446111 as latitude, longitude gives a latitude near 80°S, which is in Antarctica.

💡 See the solution▼
Check that the first number is the latitude, between -90 and 90. The paste box reads the first value as latitude, so swap the two values before you paste if your source lists longitude first.

Latitude and longitude format questions

Q.How do you convert degrees minutes seconds to decimal degrees?

Q.

A. Add the degrees, the minutes divided by 60, and the seconds divided by 3600. For 40°26'46", that is 40 + 26/60 + 46/3600 = 40.446111. If the point is south or west, make the result negative.

Q.How do you convert decimal degrees to degrees minutes seconds?

Q.

A. The whole number is the degrees. Multiply the decimal part by 60: the whole number of that result is the minutes. Multiply the remaining decimal part by 60 to get the seconds. For 40.446111, 0.446111 × 60 = 26.76666, so the minutes are 26, and 0.76666 × 60 = 46.0, so the seconds are 46. The result is 40°26'46".

Q.How do you write south latitude and west longitude in decimal degrees?

Q.

A. Use a minus sign. South latitudes and west longitudes are negative, and north and east are positive. For example, 33°51'25"S 151°12'55"E is -33.856944, 151.215278. In the converter, you can choose S or W in the Dir menu, or type a negative number in the Decimal degrees (DD) box.

Q.What is degrees decimal minutes (DDM), and how do you convert it?

Q.

A. DDM keeps whole degrees and writes the minutes with a decimal part, as in N 40° 26.767'. Decimal degrees = degrees + minutes ÷ 60, so 40° 26.767' is 40 + 26.767/60 = 40.446117. Paste the full text into Paste coordinates and select Convert pasted text.

Q.Does Google Maps accept DMS coordinates?

Q.

A. Yes. The Google Maps search box accepts decimal degrees, degrees decimal minutes, and degrees, minutes, seconds, with latitude first. You still need decimal degrees for spreadsheets, code, and most map APIs. The Open in Google Maps button shows the point you converted so you can check it.

Q.How many decimal places do GPS coordinates need?

Q.

A. Five decimal places locate a point to about 3.6 feet (1.1 m), and six places to about 4 inches (0.11 m). Four places is about 36 feet (11 m). The converter shows six decimal places. Phone GPS is typically accurate to about 16 feet (5 m) in open sky, so six places is more than a phone fix can support.

Q.How do you convert degrees, minutes, and seconds to decimal in Excel or Google Sheets?

Q.

A. If degrees, minutes, and seconds are in separate cells (A2, B2, C2), use =A2+B2/60+C2/3600, then multiply by -1 for south or west. If you have a long list of coordinates as text, paste it into Convert a list of coordinates and copy the decimal results.

Q.Is latitude or longitude written first?

Q.

A. Latitude comes first in most places, including GPS devices and Google Maps. GeoJSON and some GIS tools list longitude first. The paste box and the list converter read the first value on each line as latitude, so swap the values before pasting if your source lists longitude first.

User Feedback & Request

Your feedback
makes this tool better.

Tell us which features you'd like, what should be fixed, or which new tool you'd like to see. An engineer reads every submission and uses it to guide development.

Send feedback