Convert KML to GPX

Free, private and fast: everything runs in your browser and your KML file is never uploaded.

KML to GPX: why convert

Google Earth and Google My Maps are handy for planning: you draw a path along a trail, mark a few places and save the result as KML. GPS devices and outdoor apps, such as Garmin handhelds and watches, OsmAnd or Gaia GPS, want GPX instead. This converter writes a GPX 1.1 file in which placemarks become waypoints and paths become tracks, so a device can show the line and guide you along it. Names and descriptions are carried over, real heights become elevation, and all folders end up in one file that most GPS software can import. The conversion runs in your browser with GDAL, the library QGIS uses, so your planned trip is not uploaded anywhere.

How to convert KML to GPX

  1. Drop your .kml file in the box, or click to choose it. For a .kmz, extract the KML first.
  2. Check the placemarks and paths on the map.
  3. Click Convert to GPX and copy the file to your device or import it into your app.

What changes when you convert

Paths become tracks, not routes

GPX has two kinds of lines. A track is a path to be followed as drawn; a route is a short list of points to navigate between, and many devices recalculate the way between them along roads. Lines from Google Earth are usually drawn along a trail, so they are written as tracks, which every device and app shows exactly as you drew them. Placemarks with a point become waypoints.

Polygons become their outline

GPX has no areas. A polygon, such as a park or a search area, is written as a track that runs along its outline, with one segment for each ring, and the message after converting says how many. On the device it looks like a closed line.

Only names and descriptions come along

The placemark name becomes the waypoint or track name and the description becomes the GPX desc. Styles, icons, colors and the folder structure cannot be stored in GPX; all folders are combined into one file with the waypoints first and the tracks after them. Values in ExtendedData are not read. Descriptions written in My Maps or Google Earth can contain HTML, which a GPS shows as plain text with the tags in it.

Heights of 0 are left out

Google Earth saves the altitude 0 for every point that is clamped to the ground. Passed on as elevation, it would make a mountain walk look flat at sea level in a GPS app. When every height in a folder is 0, the GPX gets no elevation, and apps fall back on their own elevation data. Paths drawn with real heights, for example in absolute altitude mode, keep them.

No times

A planned path has no time stamps, so the GPX has none either. That is fine for navigation and for importing a planned route, but sites such as Strava expect a time for each point before they accept a file as a recorded activity.

About the formats

KML

KML (Keyhole Markup Language) is the XML format behind Google Earth and Google My Maps, and an OGC standard since 2008. Besides geometry it can hold styles, icons, folders and descriptions in HTML.

  • Always WGS84 longitude, latitude and optional altitude.
  • Folders group placemarks; each folder can become its own layer when converting.
  • Styles (colors, line widths, icons) are specific to KML and Google Earth.

GPX

GPX (GPS Exchange Format) is the XML format used by GPS devices and apps such as Garmin, Strava and Komoot. It stores waypoints, routes and tracks with optional time and elevation. Version 1.1 from 2004, published by TopoGrafix, is the one in use today.

  • Waypoints are single points; a route is a planned line through a few points; a track is the recorded path, often thousands of points.
  • Tracks can carry a time stamp and elevation for every point.
  • Coordinates are always WGS84 latitude and longitude.
  • GPX has a fixed set of fields (name, description, symbol, type and a few more); anything else must go into extensions.

Frequently asked questions

How do I put the GPX on my Garmin?

Many Garmin handhelds read GPX files that are copied into the Garmin/GPX folder over USB. For watches and bike computers, the usual way is to import the file as a course in Garmin Connect and send it to the device from there.

Can I convert a KMZ to GPX?

Use the KMZ to KML converter first to get the KML out of the KMZ, then convert that KML here.

Will the waypoints keep their names?

Yes. Each placemark name becomes the waypoint name. Some older GPS devices show only the first few characters of long names.

Is my KML uploaded?

No. The GPX is written by your browser on your own computer. Nothing is sent to a server.

Are the coordinates changed?

No. KML and GPX both use WGS84 longitude and latitude, so the positions stay exactly as they are.