GPX vs KML: GPS Tracks vs Google Earth Overlays
GPX and KML are both XML-based geographic formats, but they were built for entirely different audiences. GPX is the universal standard for GPS devices and fitness apps — tracks, routes, and waypoints with elevation and timestamps. KML is Google's format for styled geographic overlays. Here is how to choose between them.
Bottom line
Use GPX for GPS recordings and fitness apps. Use KML for styled geographic overlays in Google Earth or Google My Maps.
GPX vs KML: feature comparison
| Feature | GPX | KML |
|---|---|---|
| Primary audience | GPS devices & fitness apps | Google Earth & mapping tools |
| Format type | XML | XML |
| Polygon support | No | Yes |
| GPS tracks | Yes (native) | Yes (as LineString) |
| Waypoints | Yes | Yes (as Placemarks) |
| Elevation data | Yes (per trackpoint) | Yes (optional) |
| Timestamps | Yes (per trackpoint) | Yes (via TimeStamp) |
| Styling | None | Rich (colors, icons, labels) |
| Strava / Garmin | Native | Limited |
| Google Earth | Yes | Native |
| Coordinate system | WGS 84 | WGS 84 |
GPXWhen to use GPX
- Exporting GPS tracks from a Garmin, Suunto, or Wahoo device
- Sharing running or cycling routes via Strava, Komoot, or RideWithGPS
- Preserving precise timestamps and elevation data per point
- Importing a route into a navigation device or app
KMLWhen to use KML
- Creating styled geographic overlays for Google Earth
- Mapping areas with polygon geometry (boundaries, regions)
- Annotated maps with custom icons, labels, and descriptions
- Sharing data via Google My Maps with non-technical users
Convert between GPX and KML
Frequently asked questions
Q.Can I convert GPX to KML?
Yes. Upload your .gpx file to Maparz and select KML as the output. The tracks, routes, and waypoints are all preserved in the output KML.
Q.Does GPX support polygons?
No. GPX only supports waypoints (points), routes (ordered waypoints), and tracks (recorded GPS paths). If you need polygon support, convert to KML or GeoJSON.
Q.Will elevation data survive a GPX to KML conversion?
Yes. GDAL preserves elevation (Z coordinates) when converting GPX to KML. The altitude values are included in the KML coordinates.
Q.Which apps accept GPX but not KML?
Most dedicated GPS and sports apps — Strava, Garmin Connect, Wahoo, Suunto, Komoot, OsmAnd — use GPX as their primary import format. KML is less commonly supported in these apps.