KML to GPX Converter

Convert Google Earth KML to GPX for Garmin, Strava and mapping apps

Ad placeholder (leaderboard)

KML (Keyhole Markup Language) is Google Earth’s format, while GPX (GPS Exchange Format) is what Garmin devices, Strava, Komoot and most GPS apps import. This free converter remaps one to the other entirely in your browser, so you can move a route out of Google Earth and onto your watch without uploading your private tracks anywhere.

How it works

The converter walks the KML document and rebuilds it as GPX:

  1. DOMParser reads the KML and collects every Placemark, no matter how deeply nested inside Folder elements.
  2. For each Placemark it inspects the geometry, including each child of a MultiGeometry:
    • a Point becomes a GPX waypoint (wpt),
    • a LineString becomes a track (trktrksegtrkpt),
    • a Polygon outer ring is exported as a track too, since GPX has no polygon type.
  3. KML coordinate tuples are lon,lat,ele; the tool splits them and writes GPX’s separate lat and lon attributes plus an ele child — handling the order swap for you.
  4. Everything is wrapped in a GPX 1.1 root with the correct namespace.

Tips and example

A KML Placemark like:

<Placemark><name>Summit</name>
  <Point><coordinates>16.3738,48.2082,171</coordinates></Point>
</Placemark>

becomes a GPX waypoint with lat="48.2082" lon="16.3738" and <ele>171</ele> — note that KML’s first number is longitude. If an imported route appears mirrored or in the wrong hemisphere, a lon/lat swap is almost always the cause, and this tool gets the order right.

All processing is local; your KML never leaves your browser.

Ad placeholder (rectangle)