Home › Time & 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
| Parameter | Type | Unit | Required | Description |
|---|---|---|---|---|
latitude | string | yes | Latitude 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. | |
longitude | string | yes | Longitude as decimal degrees (151.2093 or 151.2093E) or DMS/DM text such as 151°12'33"E or 151 12 33 E. |
Outputs
| Output | Type | Unit | Description |
|---|---|---|---|
latitude_decimal | number | ° | Signed decimal degrees, north positive. |
longitude_decimal | number | ° | Signed decimal degrees, east positive. |
latitude_dms | string | Degrees, minutes and seconds with hemisphere letter, seconds to 0.1″. | |
longitude_dms | string | Degrees, minutes and seconds with hemisphere letter. | |
latitude_ddm | string | Degrees and decimal minutes (GPS/marine style), minutes to 0.001′. | |
longitude_ddm | string | Degrees and decimal minutes with hemisphere letter. | |
latitude_hemisphere | string | N or S. | |
longitude_hemisphere | string | E or W. | |
decimal_pair | string | '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
- API:
GET https://tttkmbb.com/api/v1/calculate/coordinate-converter(query parameters) orPOSTwith a JSON body{"inputs": {...}} - Schema: https://tttkmbb.com/api/v1/calculators/coordinate-converter · Markdown: https://tttkmbb.com/time/coordinate-converter.md · JSON definition: https://tttkmbb.com/time/coordinate-converter.json
- MCP: server
https://tttkmbb.com/mcp, toolrun_calculator with calculator_id="coordinate-converter" - OpenAPI operationId:
convert_coordinates - Freshness:
static. Authentication: none. Rate limit: fair use (see rate limits).
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
- Haversine Distance Calculator — Distance between two decimal-degree points.
- Compass Bearing Calculator — Heading between two points.
- Angle Converter — General angle unit conversion (degrees, radians, gradians).