KML to GPX

You drew the route in Google Earth or My Maps, and the GPS or the hiking app only takes GPX. Drop the KML or KMZ here and load the result onto the device.

Options

Your file is converted on your computer. It is not uploaded anywhere.

How it works

  1. Drop your file in the box above, or click it to pick one.
  2. Pick the output format and press Convert.
  3. Download the result. Nothing was uploaded on the way.

Is it safe?

Your route never leaves this device: the KML is read and the GPX built by code running in your browser.

Want to check? Open your browser DevTools, switch to the Network tab and convert a file. Or convert a small file once, because each converter downloads its code the first time, then go offline and convert your real file.

How Google Earth things map to GPX

GPX knows three things: waypoints, routes and tracks. KML knows a lot more, so it gets sorted like this:

  • Pins become waypoints, with name, description and time if they had one.
  • Paths become tracks. KML has no route type, so nothing is written as a GPX route.
  • Polygons become closed tracks along their outline, since GPX has no areas. Fine for a field boundary or a search area you want to walk around.
  • Recorded tracks (gx:Track, the kind Google Earth makes when it imports a GPS log) keep a time for every point.

Line colours, icons, ExtendedData and folders stay behind, because GPX has nowhere to put them. Network links in the KML aren't downloaded; you get a note.

The elevation catch

Paths drawn by hand in Google Earth or My Maps usually store an altitude of 0 for every point, because they're stuck to the ground. That 0 is copied into the GPX as the elevation. Some apps fill in heights from their own terrain data when you import; others take the 0 at face value and show a ride along sea level. If your profile looks suspiciously flat, that's why.

Why the route is in KML to begin with

My Maps only exports KML or KMZ, and Google Earth saves places as KMZ. Both are good at showing a route and no help at all on a trail, where the GPS unit or the phone app wants GPX. KMZ goes in here directly; there's no need to unzip it first.

Files up to 50 MB are fine. The same page writes GeoJSON or CSV if that's what you need instead.

Questions about this format

Will my Garmin accept the GPX file?

The output is standard GPX 1.1, which Garmin devices and apps read. Copy it to the device (many units have a GPX folder for this) or import it through the device's companion app.

Why did my polygon turn into a track?

GPX has no shapes, only lines and points. The outline is written as a closed track, so it still shows the boundary on the device.

My KML has hundreds of pins. Do they all become waypoints?

Yes, every one. Some older handhelds can only store a limited number of waypoints, so check your device's limit if it refuses the file.

Can I convert a My Maps link instead of a file?

No, it needs the file. In My Maps, open the menu, export to KML/KMZ and drop that here. Leave the option for a network link (live updating) unticked: that file only points at the online map and has no places in it.

Last updated: