KML to GPX Converter

Convert KML and KMZ from Google Earth or Google My Maps into GPX for GPS watches, Garmin and hiking apps, in your browser. Free, the file is never uploaded.

Runs in your browser. Your files are never uploaded. How it works

KML to GPX is for when a route or a list of places lives in Google Earth or Google My Maps and you need it on a GPS watch, a Garmin, or a hiking or cycling app. Those almost all want GPX. Drop the KML or KMZ here, keep GPX selected and download.

How the KML is translated

KML and GPX describe the same things with different words. This is how each part of a KML ends up in the GPX:

In the KML In the GPX
Placemark with a point (a pin) Waypoint, with its name and description
Placemark with a line (a drawn route) Track
Several lines in one placemark One track with several segments
Polygon (an area) A closed track around its edge
Altitude Elevation
Folders, styles, icons Not kept (GPX has no place for them)

My test KML, a Google Location History export with 7 named places in Bangkok, came out as 7 GPX waypoints with their names, and the same file zipped as KMZ gave the same result. A KML polygon with a hole in it (a square ring) became a closed track in GPX; in KML and GeoJSON output the hole stays a hole.

Getting the order right for a route

If your GPS app should navigate the waypoints in order, check that they are in the right order in My Maps before exporting: the GPX keeps the order of the KML. For turn-by-turn routes, a drawn line (a track) usually works better than a list of points.

Waypoints, tracks and routes are not interchangeable

GPX has three ways to hold geography, and sending the wrong one to a device is the usual reason an import “works” but does nothing useful:

GPX type What it is Devices do
Waypoint (wpt) A single named point Show a pin; navigate point to point
Track (trk) An ordered line of recorded positions Draw a breadcrumb line to follow
Route (rte) A planned sequence of turn points Give turn-by-turn directions

A KML pin becomes a waypoint; a KML line becomes a track. Nothing here produces a rte, because KML has no equivalent — a drawn line in My Maps records shape, not navigation instructions.

In practice that is what you want. Garmin devices, Wahoo head units, Komoot and most hiking apps follow a track perfectly well. If your device specifically demands a route for turn prompts, convert the track to a route inside that device’s own planner after importing.

KMZ is a zipped KML

.kmz is simply a ZIP containing a .kml (plus any custom icons and overlays). Both work here and give the same result, as the Bangkok test above shows — there is no need to unzip first.

Google Earth exports KMZ by default; Google My Maps exports KML. Either is fine.

What is lost, and why it does not matter

GPX is a plain geographic format with no styling model, so the visual parts of a KML have nowhere to go:

  • Folder structure and layer names
  • Line colours, widths and custom pin icons
  • Ground overlays and images
  • HTML in descriptions (the text is kept; the markup is stripped)

None of it affects navigation. Your GPS watch draws tracks in its own colours anyway, and the data that matters — coordinates, names, elevation, order — comes across intact.

Elevation

KML altitude becomes GPX elevation where it exists. The catch is that it often does not: a route drawn by hand in My Maps has no altitude data at all, because you drew it on a flat map.

So a hand-drawn cycling route converts to a GPX with no elevation, and the climbing figures in your app will read zero. That is the source file, not the conversion. Devices and apps that compute elevation from their own terrain data will fill it in on import; those that rely on the file will not.

A GPS-recorded track exported as KML keeps its real elevation.

Getting it onto a device

  • Garmin — plug in by USB and copy the GPX into the GPX folder, or upload to Garmin Connect and sync.
  • Wahoo, Hammerhead — upload through their app or web dashboard.
  • Komoot, Strava, Ride with GPS — import the GPX, then send it to the watch or head unit.
  • Phone apps (OsmAnd, Gaia, AllTrails) — open the GPX file directly from storage.

Everything runs in your browser; the file is never uploaded, which matters because a location history export is a detailed record of where you have been. For other formats, use GPS Converter.

Frequently asked questions

How do I get a KML out of Google My Maps?

Open the map, click the three-dot menu next to its name, choose Export to KML/KMZ, pick the layer or the whole map, and tick Export to a .KML file if you want plain KML. Either KML or KMZ works here.

My KML shows placemarks only, no track. Is that right?

Probably. Places marked with pins become GPX waypoints; drawn lines become tracks. In my test, a Google Location History KML with 7 named places became 7 named GPX waypoints.

Will my watch or app accept the GPX?

The file is standard GPX 1.1, which Garmin, Suunto, Coros, Strava, Komoot, OsmAnd, Gaia GPS and AllTrails import. Some watches limit the number of points per track; very long tracks may be simplified by the device.

Related tools