Free KML to GPX converter online Convert KML files to GPX in your browser. Nothing is uploaded.

Convert KML to GPX
in your browser.

Drop a .kml file here to convert it to GPX. Your paths come out as GPX tracks and your placemarks as waypoints, ready for a Garmin, Komoot, OsmAnd or any other app that reads GPX files.

The conversion happens on your device. Open the 3D preview if you want to see the route on terrain; that step sends the route to AvoMap, the download does not.

Kilometers0km
Miles0mi
Free converterKML to GPX
01

How to convert a KML file to GPX online

Four steps. The last one is optional.

Step 1

Pick the KML file

Drag the .kml onto this page or click Select KML file. KML files from Google Earth, Google My Maps, AllTrails and most GIS tools work.

Step 1: Pick the KML file
Step 2

Check the outline

The page draws the track, measures it and names the start and end point, so you can see it picked up the right path.

Step 2: Check the outline
Step 3

Download the GPX file

Click Download GPX file. The conversion runs on your device and the GPX is saved to your downloads folder.

Step 3: Download the GPX file
Step 4

Optional: see it in 3D

Open 3D preview puts the same route on satellite terrain in the AvoMap editor. From there you can render a video.

Step 4: Optional: see it in 3D
02

What the KML to GPX conversion keeps

KML can hold more kinds of things than GPX. This is what happens to each of them when you convert.

Paths (LineString)Written as GPX tracks. A MultiGeometry with several lines becomes one track with several segments.
Placemarks (points)Written as waypoints with their name, description and elevation.
PolygonsThe outer boundary is written as a closed track. Holes are dropped.
ElevationKept when the KML has a third coordinate. If every value is 0, as in My Maps exports, no elevation tag is written at all.
TimestampsOnly gx:Track placemarks carry time, and those timestamps are kept. Ordinary paths have none, so the GPX has none either.
Names and descriptionsKept. HTML in a description is reduced to plain text.
Icons, colours, line widthsDropped. GPX has no styling.
FoldersFlattened. GPX has no folders.
Ground overlays, network links, 3D modelsDropped.
03

KML to GPX for Google Earth, My Maps, Garmin and Komoot

Where the KML files come from and where the GPX file goes.

Google My Maps

Open the layer menu next to the map title and choose Export to KML/KMZ. Tick "Export as KML instead of KMZ" and leave the network-link option off. The routes you drew come out as GPX tracks; pins become waypoints.

Google Earth

On the web and on phones, open the project menu and choose Export as KML file. In Google Earth Pro, right-click a path or folder, choose Save Place As and pick .kml. Paths and placemarks both come across.

Garmin

Copy the GPX into the Garmin/NewFiles folder of a connected device, or import it in Garmin Connect under Courses. Connect turns the track into a course you can send to a watch or an Edge.

Komoot

Go to komoot.com/upload or use Upload under your tours in the app and pick the GPX. Import it as a planned tour. A KML path has no timestamps, which Komoot would need for a recorded one.

Strava

Strava's upload turns a GPX into an activity and needs a timestamp on every point to do that. A path drawn in Google Earth or My Maps has none, so use the GPX in the route builder instead (Routes, Create new route, Upload GPX). Recorded gx:Track files from Google Earth do carry time and upload as activities.

AllTrails

AllTrails imports KML directly, so you don't need this tool for it. Convert here when you want the same route on a watch or in OsmAnd, which take GPX only.

04

KML vs GPX

What a KML file and a GPX file each hold, and which one the app you are heading for expects.

What is a KML file?

KML is Google Earth's file format. Besides lines and points it stores how things look: icons, line colours, folders, pop-up descriptions with HTML, even camera positions for a fly-through. Google Earth, Google My Maps, QGIS and ArcGIS read it. Sports apps mostly don't.

What is a GPX file?

GPX is the plain XML format GPS devices and sports apps trade files in. It holds tracks (what you recorded), routes (what you plan to follow) and waypoints. Every point has latitude and longitude, and can carry elevation and a timestamp. Garmin, Wahoo, Strava, Komoot, AllTrails and OsmAnd all import it.

KMLGPX
Made forGoogle Earth and map presentationsGPS devices and sports apps
HoldsPoints, lines, polygons, overlays, stylingWaypoints, routes, tracks
Timestamps per pointOnly in gx:TrackYes, in tracks
StylingIcons, colours, widths, HTML pop-upsNone
Opens inGoogle Earth, My Maps, QGIS, ArcGISGarmin, Wahoo, Strava, Komoot, OsmAnd, AllTrails

Animate the KML file as a 3D map video in the AvoMap editor

The converter shows you the outline. The editor puts the same track on satellite terrain, flies a camera along it and exports an MP4 in up to 4K.

The editor is free to use. You pay per exported video, and that pays for the free tools on this site.

Create a video from a KML file

Videos Made With AvoMap

Explore the full range of AvoMap features in action with these videos, all created using the easy-to-use editor.

See all videos
Motorcycling · Mountain Pass · Switzerland · Italy

Splügen Pass to Italy 🇮🇹

The Splügen Pass connects Switzerland and Italy, linking Splügen with Chiavenna. At 2,113 meters (6,929 feet), it provides a direct route through the Alps, offering impressive views of the surrounding mountains and valleys.

Desert · Ocean view · Nature · Extreme

Ride Through The Desert — Chile

Taking a motorcycle trip through the Chilean desert, starting from Combarbala and heading to La Serena on the coast.

Trail Run · Ultra · Mountains · Nature

UTMB Eiger Ultra 2024

With a distance of 101 km and an elevation gain of 6,700 meters, the Eiger Ultra 101 is a tough challenge for even the most seasoned trail runners. The route includes stunning viewpoints such as Grosse Scheidegg, First, Bachalpsee, Berghotel Faulhorn, Schynige Platte, Wengen, Männlichen, and the base of the legendary Eiger North Face.

Beach · Vineyards · Forest · Ocean view

Otter Trail — South Africa

The Otter Trail is a five-day hiking route in South Africa, starting at Storms River Mouth Rest Camp and finishing at the small resort village of Natures Valley in the de Vasselot section of the park.

Trail Run · Mountains · Forest · Nature

Kepler Track — New Zealand

The Kepler Track is one of New Zealand's Great Walks, renowned for its stunning natural beauty and varied landscapes. It's a 60-kilometer (37-mile) circular hiking trail located in Fiordland National Park on the South Island of New Zealand. The track typically takes around 3 to 4 days to complete and passes through diverse terrain, including beech forests, alpine meadows, and alongside pristine lakes and rivers.

Lakeside · Nature · Trail Run · Extreme

170 Miles Around Lake Tahoe

The Tahoe Rim Trail is a 170-mile long hiking path encircling the Lake Tahoe Basin in the Sierra Nevada, traversing parts of Nevada and California in the United States. It spans elevations from 6,223 feet at Lake Tahoe's outlet to 10,338 feet at Nevada's Relay Peak.

Ocean view · Nature · Trail Run · Extreme

The Grand Raid — La Reunion

The Grand Raid de la Réunion, known as La diagonale des fous, is an ultramarathon held annually in October on Réunion island, a French overseas department located in the Indian Ocean between Madagascar and Mauritius.

Extreme · Overlanding · Globe View · Multi Countries

Frankfurt To Dubai In 30 Seconds

As a break from my usual routine, I decided to embark on an epic journey by motorbike from Frankfurt to Dubai. It took me 62 days to complete the trip, and along the way I crossed through 11 different countries including France, Switzerland, Italy, Greece, Albania, North Macedonia, Bulgaria, Turkey, Georgia, Armenia and Iran.

Extreme · Mountain range · Trail · Forest

Zugspitze Ultra — Germany

The Zugspitz Ultratrail stands as Germany's premier trail running event. Drawing over 4400 participants, it features six distinct routes spanning from 16 to 106 kilometers in length.

Marathon · Flat Terrain · City · Checkpoints

San Francisco Marathon

The San Francisco Marathon is a renowned race featuring a full marathon, half marathon, and 5K. Held in late July, it navigates iconic landmarks like the Golden Gate Bridge and Fisherman's Wharf. The hilly terrain presents a challenge, but the stunning views and community support make it memorable.

Frequently asked questions

Is the KML to GPX converter free?

Yes. Converting, the outline and the 3D preview cost nothing, and there is no account to make. AvoMap charges for exported videos, and that pays for the free tools.

Is my KML file uploaded when I convert it?

No. The file is read and converted in your browser. Two things do leave your device: the coordinates of the first and last point, which are looked up to show place names, and the whole route if you click Open 3D preview. The download itself stays on your device.

How do I convert a KML file to GPX for Garmin?

Convert it here, then copy the GPX into the Garmin/NewFiles folder of the device, or import it as a course in Garmin Connect and send it to the watch from there. Garmin devices do not read KML, which is the usual reason for the conversion.

Can I convert a Google My Maps or Google Earth export?

Yes, those are the most common files people drop here. My Maps exports KML from the layer menu; Google Earth exports it from the project menu, or with Save Place As in Google Earth Pro. Google Maps itself has no KML or GPX export, so My Maps is the way to get a route out of Google.

Why does Strava reject the GPX?

Strava uploads must have a timestamp on every point, and a path drawn in Google Earth or My Maps has none. The GPX itself is fine; Strava just cannot file it as an activity. Import it as a route instead, or use an app that plans from GPX, such as Komoot or Garmin Connect.

Does it keep elevation?

Yes, when the KML has it. Google Earth writes the third coordinate for paths drawn with altitude. My Maps writes 0 for everything, and in that case the GPX gets no elevation tags at all, which beats a flat line of zeros.

What happens to several paths in one file?

Each path becomes its own GPX track. A MultiGeometry becomes one track with several segments. Nothing is merged or reordered.

How large a file can it handle?

There is no fixed limit because nothing is sent to a server. Very large files take longer to parse, especially on a phone, and the outline drawn on the page gets dense. The download works regardless.

Can I convert GPX back to KML?

Yes, with the GPX to KML converter. KMZ files go through the KMZ to GPX converter, which unzips them first.

Is there a KML to GPX app for my phone?

You don't need one. This page is the app: open it in the browser on an iPhone or Android phone, pick the file from your files app, and the GPX lands in your downloads. Nothing to install.