My Location Tool

GPX to KML Converter

Upload or paste a .gpx GPS file, verify your route on the map, and download a clean Google Earth .kml file in one click.

100% Browser-Side

GPX to KML Converter

Upload or paste a GPX GPS track and download a Google Earth KML file instantly — everything converts locally inside your browser.

Upload a file, paste GPX/KML/GeoJSON text, or click Load Sample Track.

Map is loading…
Drag, zoom or tap the map to choose a point.© Esri, HERE, Garmin, OpenStreetMap contributors

Convert GPX GPS tracks for Google Earth & My Maps

Fitness watches, cycling computers and hiking apps record routes as GPX files, while Google Earth and Google My Maps expect KML. Load any .gpx file above to inspect the path on our interactive map, check point count and distance, and export a clean .kml file in one click — without uploading your route to any server.

How GPX elements map to KML

GPX 1.1 TagKML 2.2 Output
<wpt lat="..." lon="..."><Placemark><Point><coordinates>lon,lat,ele</coordinates>
<trk> / <trkseg> / <trkpt><Placemark><LineString><coordinates>…</coordinates>
<rte> / <rtept><Placemark><LineString> route geometry

Automatic latitude/longitude swap

GPX writes latitude first and longitude second, whereas KML strictly requires longitude,latitude,elevation separated by commas with no spaces inside each tuple. Our converter flips the axis order automatically and keeps elevation values intact so 3D elevation profiles render accurately in Google Earth Pro.

Importing into Google My Maps

Open Google My Maps, create a new map, click Import on an empty layer, and drop in the downloaded .kml file. All waypoints and tracks appear immediately.

Prepare a hiking track for visual inspection in Google Earth

GPX commonly stores track points in sequence, sometimes with elevation and recorded timestamps. KML can display the resulting path on terrain imagery, which makes it useful for reviewing the route against landmarks. Before sharing it, check that the first and last points align and that named waypoints have not been mistaken for part of a continuous line.

If the GPX came from a fitness device, do not assume heart-rate samples, lap markers or proprietary extensions will appear in KML. Keep the original recording for those details.