KML to GPX Converter
Free, no sign-up. Converts Google Earth KML and KMZ in your browser.
Your converted file shows here
- Runs in your browser
- No sign-up
- Reads KMZ without unzipping
- Converts every folder in a KML
- Keeps gx:Track times
How to convert KML to GPX
You get a GPX file from your KML or KMZ right on this page. Need the file first? See how to export it.
- Add your file: Drag one KML or KMZ onto the Drop KML or KMZ box, or click the box to choose it.
- Choose what goes in: Folders in your file are listed under Pick folders, all ticked. Untick any you want to leave out.
- Shape the track: If your app wants a single track, tick Merge into one track. Each source line becomes one segment inside it.
- Download: Press Download GPX. Your file converts and saves under its original name, ending in .gpx.
- Check the result: See your route on the map preview. The table below it compares points, waypoints, elevation values, timestamps and names, in and out.
- Keep editing: Press Open in editor to carry the new GPX into the route editor.
What stays and what changes when you convert KML to GPX
Converting KML to GPX keeps names, descriptions, elevation and times. We checked each field below with our own sample files.
| KML data | Result | In the GPX file |
|---|---|---|
| Document name and description | Kept | File name and description |
| Line names and descriptions | Kept | Track name and description |
| Placemark names and descriptions | Kept | Waypoint name and description |
| Placemark icon link | Kept | Waypoint symbol |
| Placemark time | Kept | Waypoint time |
| gx:Track times | Kept | Track point times |
| Altitude in coordinates | Kept | Elevation, if any height is not 0; zeros are removed when every height is 0 |
| Folder names | Kept | Type field |
| Line color and width | Kept | GPX style extension |
| Icon color | Lost | Not written |
| Heart rate, cadence, power, temperature | Lost | Not written |
Each line becomes its own GPX track. A placemark that holds several lines becomes one GPX track with several segments.
In our own sample test, a synthetic 6,279-point ride kept every point with its elevation and time. Polygons were not part of the test.

Get a track, route or waypoints from your KML
You can tell what your app will receive before you press Download GPX. For lines, see what stays and what changes.
| What your KML holds | Your setting | What your GPX holds |
|---|---|---|
| Only pins | Pins to route | One route through your pins, with each pin also saved as a waypoint |
| Only pins | Pins to route and Follow roads | One track along roads, plus the same waypoints |
| A polygon | No box to tick | A closed track around the shape, with any holes as extra segments |
You can read the result straight from the file: trk marks a track, rte a route and wpt a waypoint.
Your download still holds a straight route if a road line cannot be built.
KMZ to GPX: which file inside gets converted
You can predict what your GPX will contain from the files packed in your KMZ.
- A file named doc.kml
- This is the first choice, so its lines and pins go into your GPX.
- Another .kml name
- Without a doc.kml, you get the first file ending in .kml, even from a subfolder.
- Several .kml files
- For a GPX from each one, unzip the KMZ on your computer. Then drop the .kml files onto the box one at a time.
- Elevation, times and names
- The chosen file follows the same field-by-field table as a plain KML.
Still need to make the KMZ? Follow the Google Earth Pro save steps.
Taking the GPX to a Garmin next? Continue with the Garmin Connect steps.
KML to GPX with elevation: fix missing or flat heights
You can give a flat KML terrain heights before you download the GPX. Find your file in the table to see what happens to its altitude values.
| Altitude in your KML | Elevation prompt | Heights in your GPX |
|---|---|---|
| None written | No elevation found | None, unless you press Add elevation |
| Zero wherever it is written | No elevation found | Zeros removed, ready for Add elevation |
| Any other value, even on one pin | No prompt | Written values copied, zeros included |
Filled heights describe the ground at each point, in meters rounded to one decimal place. To get them, your browser downloads only the terrain data around your points.
- Add your file, then press Add elevation in the message under the box.
- When Elevation added from terrain data appears, press Download GPX.
- Check the Elevation values row, which counts the line points carrying a height.
Already downloaded the flat version? Press Add elevation, then Download GPX again. If the terrain data fails to load, no heights are added, so retry with the same button.
Do only some line points carry a height? Open the downloaded GPX in the GPX viewer, press Add elevation, then Apply. Terrain heights then replace the old ones throughout the file.
Export KML from Google Earth and My Maps
Google Earth and Google My Maps both save KML or KMZ. Either file can go straight into the converter above.
Google Earth on the web
- Open Projects and choose your project.
- Open the project menu and choose Export as KML file.
Google Earth Pro
- Right-click the folder or place in the Places panel.
- Choose Save Place As, then pick KML or KMZ.
Google My Maps
- Open your map and click the three-dot menu.
- Choose Export to KML/KMZ and pick the whole map or one layer.
- Tick the box for a .KML file, or leave it for KMZ.
A My Maps export often holds several layers. Use Pick folders to keep only the ones you need.
Import the GPX into your app or watch
For Garmin, export KML or KMZ from Google Earth, convert it here, then import the GPX in Garmin Connect as a new course.
Garmin Connect
- Open Training & Planning, then Courses.
- Choose Import and select your GPX file.
- Save the course and sync your watch.
For turn cues, import the GPX in the route planner, choose Plan along roads, then export a FIT course on Pro.
Other apps
- Strava: Import the GPX as a route from the web.
- OsmAnd: Open the GPX file on your phone to add it to your tracks.
- Gaia GPS: Import the file from the web or the app.
Check the GPX in the viewer, then check the course on the watch before a long trip.
Who converts KML to GPX, and for what
Start with where your KML came from and where the GPX needs to go.
Google My Maps trip, one day at a time on a Garmin
Your Garmin can get Saturday's hike without the rest of the trip. If each day has its own layer, leave only Saturday ticked before downloading. Repeat for Sunday and rename each download, then use the Garmin Connect steps.
My Maps stops with no line between them
Your saved campsites or trailheads can become a route. When the ticked folders hold only pins, tick Pins to route for straight legs between them. For legs along roads, add Follow roads and pick Walk, Bike or Drive; this uses route planning.
Google Earth path headed for your watch
The path you drew in Google Earth can become a course to follow on your watch. After downloading, choose Export to watch in the pop-up; if you closed it earlier, use GPX to FIT. In Export to watch, Garmin, COROS and Suunto get GPX, while Wahoo gets a FIT course.
KMZ from a trip partner, opened in Garmin BaseCamp
Your partner's KMZ can give BaseCamp a GPX with its lines and pins. Import the downloaded GPX to work with those lines and pins in BaseCamp. Custom pictures packed inside the KMZ stay behind.
QGIS or ArcGIS points on a handheld GPS
Your site points from a QGIS or ArcGIS KML can travel as GPX waypoints. Leave Pins to route unticked so each point stays separate, and tick only today's folders if you have them. The Waypoints row shows how many reached your GPX.
Common problems converting KML to GPX
- Only one route converted
- Some converters read only the first folder. Here every folder and line in a single KML is converted, and you can merge them into one track. From a KMZ holding several .kml files, only one is converted.
- Timestamps missing
- Timestamps are missing after converting KML to GPX when the converter drops gx:Track times. This converter keeps them as the GPX time on each point.
- No elevation
- Many KML lines are drawn on the ground and carry no altitude. When you see No elevation found, press Add elevation before downloading to fill it from terrain data.
- Track looks shifted
- Coordinates are copied unchanged. Check the line in Google Earth first, since the shift is usually in the source file.
- Too many points for a watch
- Open the GPX in the editor and run Reduce points. It keeps the shape with fewer points.
- Only pins, no line
- Use Pins to route to connect them in order.
Why your KML or KMZ will not convert to GPX
You can get a refused file loading again by following the fix for its message. If a good file is already loaded, a refused one does not replace it.
- We couldn't read this file
- Check the ending, because a zipped file needs .kmz and a plain text file needs .kml. A KMZ renamed to .zip is refused too. If the ending is right, export a fresh copy from the source app.
- This file is empty
- The file holds 0 bytes. Download or export it again, then check its size before you drop it.
- This KMZ has no KML file inside
- Nothing in the archive ends in .kml, as happens when it holds only pictures. Unzip it to look, then save your places again as KML or KMZ.
- This file has no lines or pins to convert
- One cause is a KML holding only a NetworkLink, which points to map data stored elsewhere. The converter does not follow that link, so export the paths and places themselves.
Seeing This file has pins but no lines instead? That file loaded fine, and common problems shows how to join the pins.
Why your converted GPX file loses some route points
You can trace missing points to your file or your folder ticks with this list. The In column counts only points read from ticked folders, so matching figures can hide a gap.
- A folder is unticked
- Its lines and pins stay out of the GPX. Tick the folder again, press Download GPX and watch Line points rise.
- Your KMZ holds several .kml files
- Points in the other files are left behind. See which KMZ file is read.
- Part of the map sits behind a NetworkLink
- Lines stored in your file convert, while linked data stays out. Export those places into the file itself.
- Some coordinates are invalid
- A latitude past 90, a longitude past 180 or a non-number is skipped. Swapped latitude and longitude values can cause this.
- A line has only one point
- It is left out, because a line needs at least two points.
Converting does not thin your lines, and repeated points stay too. Does your watch show less than the file? Some watches cut long tracks, so use the point reduction under common problems.
KML to GPX FAQ
How can I convert a KML file to GPX?
GPX Editor lets you convert KML or KMZ: drop the file, pick folders, press Download GPX, and get a same-named .gpx file (steps).
How can I convert Google Earth KML files to GPX for Garmin?
Export KML or KMZ from Google Earth, convert it here to GPX, then import it in Garmin Connect as a new course. For turn cues, import the GPX in the route planner, choose Plan along roads, then export a FIT course on Pro.
KML vs KMZ: which one can I convert?
Both: KMZ is a KML file packed into a zip archive, and GPX Editor, an online GPX editor and converter, reads it.
Why are my timestamps missing?
The usual cause is a converter that skips gx:Track times. This one writes them to each GPX point. In our test, all 6,279 times in a synthetic ride came through.
Why did only one route convert?
Some converters stop after the first folder. Here every folder and line in a single KML is converted. From a KMZ holding several .kml files, only one is converted. Pick folders lets you leave out the layers you do not want.
Is it free, is it uploaded?
Yes, it is free with no sign-up, and no, the file stays on your device. Conversion runs in your browser, with files up to 20 MB on the free plan. Pro costs $6.99 a month or $39 a year.
Can I convert KMZ to GPX on my phone without installing software?
Yes, GPX Editor converts KMZ or KML online in your phone's browser, with nothing to install. Tap Drop KML or KMZ to pick a saved file, then tap Download GPX.
Can I convert multiple KML files to GPX?
Yes, run them through this page one after another and keep each download. To combine the results, add them to Merge GPX, which joins 5 files without charge.
Convert your KML or KMZ file to GPX
Free, no sign-up, and the file stays on your device.