GPX vs KML for location data
GPX and KML are the two formats almost every map and GPS app understands. Here's how they differ and which one you probably want.
4 min read
The one-line summary
GPX is the lingua franca of GPS devices and outdoor apps. KML is Google's format for Google Earth and richer styled maps. Both are XML, both store coordinates, and both are widely supported — they just optimize for different things.
GPX (GPS Exchange Format)
- Designed for: recording tracks, routes, and waypoints from GPS hardware.
- Strong at: precise time-stamped points, elevation, simple route data. Compact and easy for any GPS device to read.
- Weak at: styling. GPX has almost no notion of colors, icons, or formatted descriptions — the receiving app decides how to draw things.
- Best for: sharing a hike, run, or drive with another tracker — Strava, Garmin, Komoot, Gaia GPS, OsmAnd, and most fitness apps treat GPX as the default.
KML (Keyhole Markup Language)
- Designed for: displaying maps in Google Earth and Google's mapping tools.
- Strong at: styling. Line colors and widths, icon images, HTML descriptions in popups, folders that group features together.
- Weak at: dense time-series data. KML can store timestamps, but most viewers don't surface them as nicely as GPX-aware apps do.
- Best for: sharing a styled map with someone non-technical — drop a KML file into Google Earth or Google My Maps and it just renders.
Quick decision guide
- Sending to a fitness or GPS app? Use GPX.
- Showing it to someone in Google Earth or My Maps? Use KML.
- Archiving for yourself? GPX is smaller, simpler, and almost always re-importable anywhere later.
- Sharing a styled trip report? KML — the colors and labels survive the trip.
A note on KMZ
KMZ is just a zipped KML, sometimes bundled with images or icon assets. If you receive one, rename it to .zip and unzip it to find the underlying KML.
Exporting your timeline as GPX or KML
The viewer can write either format. Pick the days you want, open the export panel, and choose your format. If you haven't gotten your data out of Google yet, the export guide walks through that step.
Ready to see your own timeline?
Direct JSON imports are parsed in your browser without uploading. ZIPs temporarily go to the server for extraction and virus scanning; JSON contents return to your browser, and temporary server files are cleaned up.