KML to GPX Converter: Google Earth to GPS Track Converter
Convert KML files from Google Earth or Google Maps to GPX for your GPS device, and GPX tracks back to KML, right in your browser. Waypoints, tracks, names, and descriptions carry over.
Drag and drop a .kml file here, or
What this tool does
This tool converts geographic data between KML, the format used by Google Earth and Google My Maps, and GPX, the format most GPS units, Garmin devices, and hiking apps expect. Switch between the KML to GPX and GPX to KML tabs depending on which direction you need. Point placemarks become GPX waypoints, and line placemarks or tracks become GPX tracks with ordered trackpoints, with coordinate order converted correctly between the two formats along the way. Names and descriptions attached to each placemark or waypoint are preserved in the output, and the tool validates the uploaded XML before converting so a malformed file produces a clear error instead of a broken download.
Who it's for
Hikers, cyclists, and drivers who planned a route in Google Earth or Google My Maps and need a GPX file to load onto a Garmin, Wahoo, or other GPS unit, plus GPS device owners who recorded a track and want to view or share it as a KML file in Google Earth or Google Maps. It is also useful for surveyors, real estate mapping, and anyone juggling location data between mapping tools that only accept one of the two formats.
How to use it
- Choose the KML to GPX tab or the GPX to KML tab depending on which direction you need.
- Drag and drop your file onto the drop zone or choose it with the file picker.
- The tool parses the file and reports how many waypoints and tracks it found.
- Review any parsing errors if the file could not be read as valid XML.
- Click Download to save the converted file with the correct extension.
Good to know
Styling, icons, colors, polygons, and KML-specific visual elements are not carried over since GPX has no equivalent for them, only geographic points, lines, names, and descriptions convert. Very large files with thousands of points may take a moment to process since everything runs in your browser rather than on a server, and the file itself is never uploaded anywhere.
Frequently asked questions
Does this tool support gx:Track elements used by some Google Earth tours?
Yes, gx:Track elements that pair a sequence of gx:coord positions with when timestamps are converted into a GPX track with timestamped trackpoints, in addition to standard LineString placemarks.
Why did my Placemark not appear as a waypoint after conversion?
Only Placemarks containing a Point geometry become GPX waypoints. A Placemark with a LineString or gx:Track becomes a track instead, and a Placemark with no geometry at all, or a Polygon, has nothing to convert since GPX has no polygon equivalent.
Does converting KML to GPX and back preserve my waypoint names?
Yes, the name and description fields on each Placemark or waypoint are read and written on both sides of the conversion, so round-tripping a file between KML and GPX keeps the labels intact even though styling and icons do not carry over.
What GPS coordinate order does GPX use compared to KML?
KML lists coordinates as longitude, latitude, altitude separated by commas, while GPX uses separate lat and lon attributes with latitude first. This tool handles that reordering automatically in both directions so you never need to manually swap coordinates.
Can I convert a GPX file with multiple tracks or track segments at once?
Yes, every trk element in a GPX file, along with each of its trkseg segments, is converted into its own Placemark with a LineString, and the converted-item count shown after processing reflects the total number of tracks found.
Is my location data uploaded to a server when I use this converter?
No. The file is parsed with the browser's built-in DOMParser and converted entirely on your device using JavaScript, which matters for anyone converting a personal route, a client's property boundary, or another location you would rather not send anywhere.