Convert GPX to KML
Free, private and fast: everything runs in your browser and your GPX file is never uploaded.
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, and tick the box if you also want every track point with its time.
- 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. Each kind that the file contains becomes its own KML folder, named waypoints, routes and tracks, so you can switch them on and off in Google Earth. 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 stay with the track points
In a GPX track every point can carry a time stamp, but a KML line cannot. The track line therefore has no times. Tick "Also include every track point" to get an extra folder with one placemark per point, each with its time (in ISO form, such as 2024-05-01T08:07:30Z) and elevation as data. The times are stored as data fields, not as KML time stamps, so Google Earth's time slider does not animate them.
Heart rate, cadence and power are not carried over
Garmin watches and bike computers add heart rate, cadence, temperature and power as extensions to each track point. These device-specific extensions are not read, so the KML holds 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.