Geo Coordinates Converter
Mapping made easy. This tool takes DMS inputs (e.g., 40° 26' 46" N) and calculates the decimal equivalent used in modern APIs.
Copy the Script
<script>
function toDecimal(deg, min, sec) {
return parseFloat(deg) + (parseFloat(min)/60) + (parseFloat(sec)/3600);
}
</script>
Frequently Asked Questions
Decimal = Degrees + (Minutes / 60) + (Seconds / 3600).
If the direction is South or West, the final Decimal Degree result must be negative. North and East are positive.
Yes, but the math is more complex (taking the integer part for degrees, multiplying the remainder by 60 for minutes, etc.).