GPX to KML converter
Turn a GPX file into a KML or KMZ file for Google Earth. The conversion runs in your browser, and the file is never uploaded.
How to use
- Under Options, choose to save as KML or KMZ. Google Earth opens both.
- Drop a GPX file on the box above, choose one, or paste the GPX text.
- Check the summary, then select Download. The file keeps your file’s name, with the new extension.
If you change an option after opening a file, the file is converted again with the new choice.
The options
- Save as KML or KMZ. A KMZ file is the same KML document compressed in a ZIP archive, so it is smaller. The KML vs KMZ page explains the difference.
- Keep timestamps. Off, every track becomes a plain line, which every app that reads KML shows. On, each track whose points all have times becomes a timed track (
gx:Track), with its heart rate, cadence, power, temperature and speed. Google Earth Pro reads timed tracks. Google My Maps may leave them out, and Google’s documentation for Google Earth on the web lists points, lines and areas among the features it supports, without timed tracks.
What the KML file holds
- Each GPX track becomes one placemark with a line. A track with several segments becomes one placemark with several lines.
- Each route becomes a line too, because KML has no separate idea of a route.
- Each waypoint becomes a point placemark, with its name, its description and its time.
- Elevation is kept as the altitude of each point.
- The lines get a bright style, so they stand out on the satellite images of Google Earth.
KML has no place for the author, the links, the creation time or the activity type of a GPX file, so they are left out. The table under the summary lists every field and whether the KML file keeps it.
Opening the file in Google Earth
On the web, Google Earth offers two ways, according to Google’s documentation:
- To keep the file in a project, select New, then Import file to project, then Upload from device, and choose the file. This needs a Google account, and the project is saved in Google Drive.
- To only look at it, select Open local KML editor on the home screen, then Open KML from device.
Google My Maps imports GPX files directly, so there is no need to convert a file for it.
Your file stays on your device
TrackLoupe reads the GPX file and writes the KML or KMZ 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
Should I choose KML or KMZ?
Both open in Google Earth. KMZ is smaller and is the format Google Earth on the web exports. KML is plain text, so you can open it in a text editor.
Why does my track have no times in Google Earth?
Keep timestamps is off by default, so the track is a plain line. Turn it on to keep the times, as long as every point of the track has one.
Why does my track not appear in Google My Maps?
My Maps may leave out timed tracks and placemarks with several lines. Import the GPX file into My Maps directly instead.
Can Google Earth open a GPX file without converting it?
Google Earth on the web imports KML, KMZ, GeoJSON and shapefiles. For GPX, Google’s documentation says to convert the file to KML first, which is what this page does.
Is my file uploaded?
No. It is read and converted in your browser and stays on your device.