You have drawn your route in Google My Maps or Google Earth and now you want to take it to your GPS, to Komoot, to Strava or to the range calculator. The problem is that Google saves routes as KML or KMZ, and almost all apps and bike computers expect a GPX file. This guide takes you from one format to the other, step by step, and tells you what to do when something does not work first time.

Short answer. Export your map from Google as KML or KMZ, upload it to the electroruta converter and download the GPX. It is free, needs no sign-up and the file is converted in your browser: it is not uploaded to any server.

KML, KMZ and GPX: what each one is

All three store the same thing, a course on the map, but for different purposes:

FormatWhat it is and where it is used
KMLA Google text file with drawn routes, points and areas. Used by Google Earth and Google My Maps.
KMZA compressed KML, sometimes with images inside. Used in the same places.
GPXThe standard format for GPS routes. Understood by GPS devices, bike computers, Komoot, Strava and most route apps.

A KMZ is simply a KML put in a zip file, so the result is the same. What changes is that GPX only stores routes and points, which is why drawn areas (polygons) do not carry over when converting.

Step 1. Export your route from Google

From Google My Maps

  1. Go to My Maps on a computer and open your map.
  2. In the left-hand panel, click the three-dot menu next to the map title.
  3. Choose the option to export to KML/KMZ and follow the steps it asks for. If it lets you choose, export the whole map or just the layer where your route is.
  4. A file with the extension .kmz (or .kml, depending on what you chose) will be downloaded.

From Google Earth

In the project where you saved the route, open the three-dot menu and export the project as a KML file. The exact name of the option changes a little between versions of Google Earth, but it is always in that project menu.

Step 2. Convert it to GPX

  1. Open the KML and KMZ to GPX converter.
  2. Drag your file in or choose "Choose your KML or KMZ file".
  3. In a few seconds you will see a summary: how many routes it has found, how many points, the kilometres and, if the file includes it, the altitude.
  4. Press the download button and save the .gpx file.

The conversion happens inside your browser. Your route does not travel over the internet, which is useful if it is a route you do not want to share.

Step 3. Use the GPX wherever you need it

In the range calculator

Upload the GPX to the range-on-route calculator, enter your battery, your weight and how you use assist, and it will tell you whether the battery lasts given the real elevation gain of your route.

In Komoot

Komoot accepts GPX, TCX and FIT files, but not KML, so you need to convert it first. From your profile, go to your saved routes, press import, choose the file, indicate the sport and save the route with a name. Only one file can be imported at a time.

If your route goes through places that Komoot does not have as a known path, it will ask whether you prefer to keep your route as it is (truer to the original, with sections without precise navigation) or adjust it to known paths (more reliable for navigating, but it will no longer be identical). If you are going to send it to a watch or a GPS, Komoot's help recommends keeping the original route.

In Strava

From the Strava website, go to the routes section, choose to create a new route and use the upload button to load the GPX. Then you can adjust the waypoints on the map and save. In the mobile app the process is different, and Strava explains it in a separate help article.

On a GPS or bike computer

Each brand does it its own way: some copy the GPX by cable to a folder on the device and others receive it through their app. The safest way is to look at the manual or help for your model, searching for "import route" or "load GPX". What is common to all: the file you need is the GPX that comes out of this converter.

If something does not turn out as expected

The file has no altitude

This often happens with routes drawn by hand in Google My Maps or Google Earth: they carry the line of the course, but not the height of each point. The converter warns you when this happens. For the calculator it is not a problem, because when you upload the GPX the altitude and elevation gain are calculated automatically from the map.

The converter finds points, but not a route

If your map only has markers (a starting point, a bar, a viewpoint) and not a drawn line, the GPX will have points of interest but no route to follow. Go back to Google and check that your course is drawn as a line, not just as loose markers.

The map has several routes or several layers

If your map contains several courses, the GPX will include them all and the summary will tell you how many it has found. To use only one, the easiest thing is to export only the layer with that route from Google, or to separate the courses into different maps.

Areas or drawn zones are missing

Polygons (for example, a shaded area of a park) cannot be saved in GPX. The converter tells you how many were left out. The route and the points do carry over.

The file does not open or gives an error

Check that the extension is .kml or .kmz. If the file comes from another tool or is damaged, try exporting it again from Google. If it still does not work, write to us at contacto@electroruta.net and we will take a look.

Summary

Sources

The steps for Komoot, Strava and Google may change with each service's updates. If a menu does not match, follow the official help.