Coordinate Converter
Free online coordinate converter, no installation required. DD to DMS conversion for GIS and mapping
About Coordinate Converter
This tool converts a single latitude / longitude pair between decimal degrees (DD) and degrees-minutes-seconds (DMS) format. If the input contains degree, minute, second symbols or a cardinal letter (N/S/E/W) it is treated as DMS and converted to decimal; otherwise it is treated as decimal and converted to DMS with cardinal directions. The output is shown as a comma-separated lat, lon string.
How to Use
1. Type or paste a coordinate pair into the text area. Decimal form uses 'lat,lon' (for example '39.9042,116.4074'); DMS form uses two components separated by a comma, each ending in N, S, E, or W (for example 39 deg 54' 15.1" N, 116 deg 24' 26.6" E). 2. Press Convert. 3. Read the converted coordinate and use Copy to copy it. If the input cannot be parsed, an 'invalid' message is shown.
Formats and Parsing Rules
Decimal input must match two signed decimal numbers separated by a comma, Chinese comma, or whitespace. DMS input is matched with a regex that captures degrees, minutes, seconds and a direction letter (N, S, E, W); S and W make the value negative. Decimal-to-DMS output uses the formula degrees = floor(abs(value)), minutes = floor(remainder * 60), seconds = (remainder * 60 remainder) * 60 rounded to 6 decimals and displayed to 1 decimal, with N/S for latitude and E/W for longitude. Decimal output is shown to 6 decimal places.
▶How does the tool decide whether my input is decimal or DMS?
▶Do I need to include both N/S and E/W letters for DMS input?
▶What precision does the output use?
▶Is my data sent to a server?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee