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.

Options
Save as

Keeps the time of each point, with heart rate and other sensor data, as a timed track. Google Earth Pro reads timed tracks, but Google My Maps may leave them out.

How to use

  1. Under Options, choose to save as KML or KMZ. Google Earth opens both.
  2. Drop a GPX file on the box above, choose one, or paste the GPX text.
  3. 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

What the KML file holds

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:

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.

About the formats