KML to GPX
Convert KML files to GPX format
🔒 All processing happens locally in your browser. Your files never leave your device.
What is KML to GPX conversion?
KML files come from Google Earth, Google Maps, and Google My Maps. They are designed for visualisation — styled points, labelled placemarks, polygons with fill colours, and overlays. GPX files are designed for GPS devices and fitness apps. They strip out the styling and keep only what a navigation device cares about: where you are, where you were, and where you plan to go.
Converting KML to GPX is the most common path between “I built this route in Google Earth” and “I want to follow it on my Garmin tomorrow”. The converter extracts points, lines, and routes from the KML and writes them as waypoints, tracks, and routes in standard GPX 1.1.
Common uses for KML to GPX conversion
Loading routes onto a Garmin
Design a route in Google Earth or Google My Maps, convert to GPX, then copy to your Garmin device or upload via Garmin Connect.
Sharing with cycling and hiking apps
Strava, Komoot, Ride with GPS, AllTrails, and Gaia GPS all import GPX. Convert from KML once, then import everywhere.
Geocaching imports
Geocaching apps and devices typically prefer GPX over KML. Convert lists of cache locations from Google Earth into GPX waypoints.
Off-road and overlanding planning
Build a multi-day route in Google Earth, convert to GPX, and load it onto an OsmAnd, Gaia, or Locus Map device for the trip.
How to convert KML to GPX
- Drag your
.kmlor.kmzfile onto the converter above. - Click “Convert” — your GPX file is generated in seconds.
- Download the
.gpxfile and load it onto your GPS device or fitness app. - If your KML came from Google My Maps, layers become folders inside the KML — the GPX flattens them into waypoints and tracks.
Conversion is fully client-side via GDAL WebAssembly. Your file is never uploaded.
How KML elements map to GPX
KML <Point> placemark
Becomes a GPX <wpt> waypoint with the same name and description.
KML <LineString> (recorded path)
Becomes a GPX <trk> track with one <trkseg> per LineString.
KML <LineString> (planned route)
Becomes a GPX <rte> route if explicitly tagged, otherwise a track.
KML <Polygon>
No direct GPX equivalent — converted to the outer ring as a track.
KML <Folder>
Folders are flattened; their contents are output as siblings in the GPX file.
KML styling
Colours, icons, and labels are dropped — GPX is data-only by design.
Frequently Asked Questions
How do I convert a KML file to GPX?
Drop your .kml or .kmz file onto the converter above, and download a .gpx file in seconds. The converter extracts points, tracks, and routes from the KML and writes them as GPX waypoints, tracks, and routes. Runs entirely in your browser — your file is never uploaded.
Will my GPS device read the GPX file?
Yes. The output is standard GPX 1.1, the format expected by virtually every GPS device and fitness app — Garmin (Edge, eTrex, Fenix), Wahoo, Strava, Komoot, Ride with GPS, Gaia GPS, AllTrails, Locus Map, OsmAnd, and more.
What is the difference between KML and GPX?
KML (Keyhole Markup Language) is the format used by Google Earth and Google Maps for sharing rich placemarks, styled overlays, and 3D content. GPX (GPS Exchange Format) is a simpler XML schema designed for GPS data — waypoints, tracks (a recorded path), and routes (a planned sequence). KML is for visualisation; GPX is for navigation devices.
Does the converter handle KMZ (zipped KML)?
Yes. KMZ is just a ZIP file containing a KML and optional resources. Drop a .kmz on the converter and it will unpack the inner doc.kml automatically before converting.
How are KML placemarks mapped to GPX?
KML <Point> placemarks become GPX <wpt> (waypoints). KML <LineString> features that represent a recorded path become GPX <trk> (tracks). KML <LineString> features intended as planned routes become GPX <rte> (routes). KML <Polygon> features have no direct GPX equivalent and are converted to their boundary as a track.
Is my KML data uploaded to a server?
No. The conversion is performed in your browser using GDAL compiled to WebAssembly. Nothing leaves your device — safe for confidential routes, private property locations, or any sensitive data.
Can I batch-convert many KML files at once?
Yes. Use the Pro batch KML-to-GPX converter for dozens or hundreds of files in a single run — also browser-only, files never uploaded.
What if my KML file is from Google My Maps?
Google My Maps exports as KML or KMZ — both work. Layers in My Maps become folders in KML, and the converter flattens them into waypoints and tracks in the GPX output.
Need to convert multiple KML files?
Use our batch KML to GPX converter to process dozens or hundreds of files in a single run — Pro feature, files never leave your browser.
More KML Conversions
Convert KML files to other popular formats
to GeoJSON
.geojson
to Shapefile
.zip
to CSV
.csv
to GeoPackage
.gpkg
to FlatGeobuf
.fgb
to JSON-FG
.json
to MVT
.mvt
to PostgreSQL Dump
.sql
to PMTiles
.pmtiles
to MBTiles
.mbtiles
to DXF
.dxf
to PDF
to GML
.gml
to Excel (XLSX)
.xlsx
to OpenDocument Spreadsheet
.ods
to GeoRSS
.xml
to MapInfo TAB
.tab
to File Geodatabase
.gdb.zip
to SpatiaLite
.sqlite
to GeoJSON Sequences
.geojsonl
to DGN (Microstation)
.dgn
to S57 Nautical Charts
.000
Convert to GPX From Other Formats
Convert other geospatial formats to GPX
from GeoJSON
.geojson
from Shapefile
.zip
from CSV
.csv
from GeoPackage
.gpkg
from FlatGeobuf
.fgb
from JSON-FG
.json
from MVT
.mvt
from PMTiles
.pmtiles
from MBTiles
.mbtiles
from DXF
.dxf
from TopoJSON
.topojson
from GML
.gml
from OpenStreetMap
.osm
from Excel (XLSX)
.xlsx
from OpenDocument Spreadsheet
.ods
from SVG
.svg
from GeoRSS
.xml
from MapInfo TAB
.tab
from File Geodatabase
.gdb.zip
from SpatiaLite
.sqlite
from Esri JSON
.json
from GeoJSON Sequences
.geojsonl
from DGN (Microstation)
.dgn
from S57 Nautical Charts
.000
Visualize Your Data
View your geospatial files on an interactive map
Coordinate Conversion Tools
Convert between different coordinate systems