HomeTime & Geography › Coordinate Converter

Coordinate Converter

Parses a latitude and longitude given either as signed decimal degrees or as degrees-minutes-seconds text (with N/S/E/W letters, symbols, colons or spaces) and returns all three standard forms: decimal degrees, DMS and degrees with decimal minutes, with hemisphere letters.

When to use

You have coordinates in one notation (e.g. 33°52′6″S from a map or a marine GPS in degrees-decimal-minutes) and need them as decimal degrees for an API, or the other way round.

Do not use when: You need distances or bearings between points (use haversine-distance or compass-bearing) or conversions between datums or projected systems such as UTM.

Formula

decimal = sign × (degrees + minutes / 60 + seconds / 3600), sign −1 for S or W; DMS: degrees = trunc(|decimal|), minutes = trunc(60 × fraction), seconds = 3600 × remaining fraction

Accepts °, ′, ″, ', ", :, comma or spaces as separators and a hemisphere letter at either end; a minus sign and a hemisphere letter together are rejected. Latitude must lie within ±90°, longitude within ±180°; seconds are rounded to 0.1″ (≈3 m).

Inputs

ParameterTypeUnitRequiredDescription
latitudestringyesLatitude as decimal degrees (-33.8688 or 33.8688S) or DMS/DM text such as 33°52'6"S, 33 52 06 S or 33°52.1'S.
longitudestringyesLongitude as decimal degrees (151.2093 or 151.2093E) or DMS/DM text such as 151°12'33"E or 151 12 33 E.

Outputs

OutputTypeUnitDescription
latitude_decimalnumber°Signed decimal degrees, north positive.
longitude_decimalnumber°Signed decimal degrees, east positive.
latitude_dmsstringDegrees, minutes and seconds with hemisphere letter, seconds to 0.1″.
longitude_dmsstringDegrees, minutes and seconds with hemisphere letter.
latitude_ddmstringDegrees and decimal minutes (GPS/marine style), minutes to 0.001′.
longitude_ddmstringDegrees and decimal minutes with hemisphere letter.
latitude_hemispherestringN or S.
longitude_hemispherestringE or W.
decimal_pairstring'latitude, longitude' in decimal degrees, ready to paste into a map search.

Example

Sydney in DMS: {"latitude":"33°52'6\"S","longitude":"151°12'33\"E"}{"latitude_decimal":-33.868333,"longitude_decimal":151.209167,"latitude_dms":"33°52′06.0″S","longitude_dms":"151°12′33.0″E","latitude_ddm":"33°52.100′S","latitude_hemisphere":"S","longitude_hemisphere":"E","decimal_pair":"-33.868333, 151.209167"}

New York in decimal degrees: {"latitude":"40.7128","longitude":"-74.0060"}{"latitude_decimal":40.7128,"longitude_decimal":-74.006,"latitude_dms":"40°42′46.1″N","longitude_dms":"74°00′21.6″W","longitude_ddm":"74°00.360′W","latitude_hemisphere":"N","longitude_hemisphere":"W"}

GET https://tttkmbb.com/api/v1/calculate/coordinate-converter?latitude=33%C2%B052%276%22S&longitude=151%C2%B012%2733%22E

Machine access

Sources

FAQ

Which input formats are recognised?

Decimal degrees with sign or hemisphere letter (-33.8688, 33.8688S, S33.8688), degrees-minutes-seconds with symbols, colons or spaces (33°52'6"S, 33:52:06 S, 33 52 6 S) and degrees with decimal minutes (33°52.1'S). Letters other than N/S/E/W are rejected.

How precise is one decimal place of seconds?

0.1″ of latitude is about 3 m on the ground; six decimal places of decimal degrees (≈0.11 m) are kept in the numeric outputs.

Related calculators