KML to GPX converter

Turn a KML or KMZ file from Google Earth, Google My Maps or a GPS app into a GPX file. The conversion runs in your browser, and the file is never uploaded.

How to use

  1. Drop a KML or KMZ file on the box above, choose one, or paste the KML text.
  2. Check the summary: the track, the distance, the ascent and, for recorded tracks, the time.
  3. Select Download to save the GPX file. It keeps the name of your file, with .gpx at the end.

A KMZ file is unpacked in your browser first. The converter reads the first KML document inside it, and a note says when the archive holds more than one.

What the GPX file holds

GPX has no place for some parts of a KML file, so the converter leaves them out:

The table under the summary lists every field and whether the GPX file keeps it.

Getting a KML file

Both files open here, whether they come out as KML or as KMZ.

Your file stays on your device

TrackLoupe reads the KML and writes the GPX file with JavaScript in your browser, in a background worker. The download is made from your browser’s memory, so no part of the file, its name or its coordinates is sent to a server. To check, open the page, turn on airplane mode, and then convert a file: it works the same.

Questions

Why convert KML to GPX?

Many GPS devices, sports watches and fitness apps import GPX. KML is made for showing places and lines in Google Earth and on maps, and many of these apps do not read it. The GPX vs KML page compares the two formats.

Does the GPX file have times?

Only when the KML file has them. A line drawn in Google My Maps or Google Earth has positions and sometimes elevation, but no times. A recorded track saved as a gx:Track keeps its times.

Are my lines saved as tracks or routes?

As tracks. KML does not tell a planned route from a recorded track, and GPS apps and devices import GPX tracks.

Can I convert a GPX file to KML?

Yes. GPX to KML converts in the other direction, to KML or KMZ.

Is my file uploaded?

No. It is read and converted in your browser and stays on your device.

About the formats