iLoveConverter
Categories 11 categories
Data GPX

GPX, Explained

iLoveConverter Team 2 min read

On this page

GPX (GPS Exchange Format) is the open XML standard for sharing GPS data — tracks, routes, and waypoints with elevation, timestamps, and heart rate data. Every GPS device and hiking app supports it: Garmin, Strava, Komoot, AllTrails, Google Earth, and more. If you’ve ever downloaded a running or cycling route, it was probably a GPX file.

Technical details

GPX is an XML file with three main feature types: <trk> (track — recorded path), <rte> (route — planned path with turn-by-turn), and <wpt> (waypoint — single location). Each point carries <lat>, <lon>, <ele> (elevation), and <time>. Extensions add heart rate, cadence, temperature, and sensor data. GPX 1.1 (2004) is the current standard; compression is manual (GPX.gz).

FeatureGPXKMLTCXFIT
Track point structurelat/lon/ele/timeN/A (generic geo)lat/lon/ele/time + sensorAll sensor data
WaypointsYesYesYesYes
RoutesYesYesYesYes
Heart rateExtensionsNoYesYes
Open standardYes (Topografix)OGCGarmin proprietaryGarmin proprietary
Human-readableXMLXMLXMLBinary

Conversion

GPX ↔ KML converts routes and tracks cleanly — KML <Placemark> + <LineString> matches GPX <trk> structure. GPX → CSV flattens track points into spreadsheet rows with lat/lon/ele/time columns for analysis. GPX → FIT is needed for Garmin devices (FIT is Garmin’s preferred binary format; use gpx2fit or Garmin Connect to convert).

Common problems

  • Extension compatibility. Heart rate, cadence, and other sensor data live in vendor-specific <extensions> — not all converters preserve them.
  • Large file size. GPX is verbose XML; multi-day hiking tracks can be tens of MB. Gzip compress or sample points.
  • Coordinate precision. GPX stores coordinates with up to 14 decimal digits, far more than GPS receivers actually produce.

FAQ

Can I import GPX into Strava?

Yes — direct upload in the Strava mobile or web app. Strava handles GPX, TCX, and FIT. It’ll even try to match GPX data to existing activities.

What’s a track vs route vs waypoint in GPX?

Tracks (<trk>) are recorded paths with full timestamped points — what your GPS logged. Routes (<rte>) are planned turn-by-turn directions. Waypoints (<wpt>) are single marked locations (campsites, trailheads).

Does Google Earth read GPX?

Yes — file → import → GPX. Tracks render as polylines; waypoints become placemarks with icons.

Can I convert GPX to CSV for analysis in Excel?

Absolutely. Each track point becomes a row: latitude, longitude, elevation, timestamp, speed (calculated from time/distance). Great for analyzing pace on long runs or elevation gains on hikes.

Why use GPX instead of GeoJSON?

GPX is purpose-built for GPS activities — it has timestamped track points, waypoints, and sensor extensions that GeoJSON doesn’t standardize. GeoJSON wins for generic GIS data; GPX wins for activity and track data.

Try it yourself — free, right in your browser

Everything mentioned in this guide runs locally on this site: no upload, no watermark, no sign-up.

Format deep-dives: GPX (.gpx) , KML (.kml)