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
- Drop a KML or KMZ file on the box above, choose one, or paste the KML text.
- Check the summary: the track, the distance, the ascent and, for recorded tracks, the time.
- Select Download to save the GPX file. It keeps the name of your file, with
.gpxat 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
- Every line and every recorded track (
gx:Track) becomes a GPX track. A placemark with several lines becomes one track with several segments. - Every point placemark becomes a waypoint, with its name, its description and its time.
- Times, heart rate, cadence, power, temperature and speed recorded in a
gx:Trackgo into the GPX file. Times are part of GPX. The sensor values go into Garmin’s TrackPointExtension and PowerExtension, the usual places for them in a GPX file. - Elevation is kept. When every altitude of a line is 0, which some apps write when they do not know the elevation, the line is written without elevation instead.
GPX has no place for some parts of a KML file, so the converter leaves them out:
- Polygons and network links. A note above the summary says how many were left out.
- Styles: colours, line widths and icons.
- Folders. Their tracks and points are kept, but not the folder structure.
The table under the summary lists every field and whether the GPX file keeps it.
Getting a KML file
- Google My Maps: open the map, open the menu in the left panel, and choose Export to KML/KMZ.
- Google Earth on the web: open the menu of the project and choose Export as 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.