Convert GPX to KML
This converter turns the waypoints, routes and tracks of a GPX file from Garmin, Strava or Komoot into one KML file for Google Earth or My Maps, keeping names, descriptions and elevation. Your GPX is converted in your browser and is not uploaded. Tick the time track box to keep the time of every point, plus heart rate, cadence and power, for Google Earth's time slider; Google My Maps reads only the plain line.
Did a file not convert correctly? E-mail [email protected], ideally with a small sample file, and it will be fixed.
Key facts
- Input: GPX (.gpx). Output: KML (.kml).
- Your files are not uploaded: the work is done in your browser, on your own device.
- File size: no fixed limit; very large files are limited by your device's memory.
- Needs a current browser (Chrome, Edge, Firefox or Safari) on a computer, tablet or phone; nothing to install.
- Free to use, with no sign-up.
GPX to KML: why convert
A GPX file is what you get when you export a hike, ride or run from a Garmin device, Strava, Komoot or a phone app. Google Earth and Google My Maps prefer KML, and Google Earth is a good place to look at a trip on 3D terrain or to share it with people who have no GPS software. This converter turns the waypoints, routes and tracks of a GPX file into one KML file with a folder for each, keeps the names and descriptions as placemark labels and balloon text, and keeps the elevation of every point as altitude. Fields the GPX does not use are left out, so the placemark data stays short. The file is read and converted in your browser with GDAL, the open-source library behind QGIS; your track, which shows where you live and when you are out, is never uploaded.
How to convert GPX to KML
- Drop your .gpx file in the box, or click to choose it.
- Check the track on the map. Tick the time track box for Google Earth's time slider, or the track point box for one placemark per point.
- Click Convert to KML and open the file in Google Earth or import it into My Maps.
What changes when you convert
Waypoints, routes and tracks become folders
GPX keeps three kinds of data apart. Waypoints are single places such as a summit or a parking spot, a route is a planned line through a few points, and a track is the path you actually recorded. When the file contains more than one kind, each becomes its own KML folder, named waypoints, routes and tracks, so you can switch them on and off in Google Earth; a file with only a track gets one folder named after the file. A track that was paused and resumed has several segments; it stays one placemark with several lines.
Elevation is kept, the line still follows the ground
The ele value of each point becomes the altitude in the KML coordinates. The KML does not set an altitude mode, so Google Earth draws the track on the terrain, which is usually what you want for a hike. To see the recorded heights instead, open the placemark properties in Google Earth Pro and set the altitude to absolute. Points without an elevation stay two-dimensional.
Times need a time track
In a GPX track every point can carry a time stamp, but a plain KML line cannot, so by default the track line has no times. Tick "Write recorded tracks as time tracks for Google Earth" to write each recorded track as a Google Earth time track (gx:Track) instead: every point keeps its time, and the time slider in Google Earth Pro plays the trip. A paused track keeps its segments, without a line across the pause. Google My Maps, QGIS and other GIS programs do not read time tracks, so leave the box empty for them. The box only appears when every point of a track has a time. "Also include every track point" adds one placemark per point instead, with its time and elevation as data.
Heart rate, cadence and power go with the time track
Garmin watches and bike computers add heart rate, cadence, temperature and power as extensions to each track point. In a time track these values are kept as data arrays, one value per point, and Google Earth Pro can draw them in the elevation profile next to speed and height. The plain line and the separate track points hold position, elevation and time only.
Names and descriptions
The GPX name becomes the placemark name that Google Earth shows on the map, and the GPX description becomes the balloon text. Other values that are present, such as the waypoint symbol, comment or type, are kept as placemark data. You can pick a different field for the names before converting.
About the formats
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.
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.
Frequently asked questions
Is my GPX file uploaded?
No. Your browser reads the file and writes the KML on your own device. Nothing is sent to a server, so the places you have been and the times you were there stay private.
How do I get a GPX file out of Strava or Garmin Connect?
On the Strava website, open the activity, click the menu with three dots and choose Export GPX. In Garmin Connect, open the activity, click the gear icon and choose Export to GPX. Most other apps have a similar export or share option.
Can I import the KML into Google My Maps?
Yes. Add a layer in My Maps, click Import and choose the file. A track with thousands of points is fine as one line, but the extra track points option creates one placemark per point, which can be too many for a My Maps layer.
Do I get a KMZ?
You get plain KML, which Google Earth and My Maps open directly. To make a KMZ, open the KML in Google Earth Pro and save the place with the KMZ file type.
Are the coordinates changed?
No. GPX and KML both use WGS84 longitude and latitude, so the positions are copied as they are.