Understand GPS files

What is a GPX file? A plain explanation for runners, riders and hikers

Updated

Someone asks you for “the GPX” of your Sunday ride, a race website offers “the course in GPX”, or a video app wants a GPX before it does anything. The name sounds technical, but the idea behind it is simple. A GPX file is a list of places on Earth, written down in order.

The short answer

GPX is a text format for GPS data. Its official documentation describes it as an XML schema, which just means the file is plain text organized with tags, a bit like a web page. Because it’s plain text and the rules are public, almost every map, sports and navigation app can read it. That’s why GPX became the format people ask for when they don’t know which one to ask for.

What a GPX file stores

At its heart, a GPX file holds points. Each point has:

  • A position: latitude and longitude. The documentation says every coordinate uses the WGS84 datum, the same reference GPS uses.
  • An elevation, if the device recorded one, in meters.
  • A time, if the point was recorded while moving.
  • Optionally, a name and a description, which is how a summit or a water fountain gets its label.

Those points are grouped in three ways, and the difference matters more than it seems:

  • Track: the path you actually followed, point after point. This is what your watch records.
  • Route: a short list of turn points leading somewhere. This is what you plan.
  • Waypoint: a single named place, like a parking lot or a viewpoint.

If you want the full story with everyday examples, read track vs route vs waypoint, explained.

What about heart rate and cadence?

The core GPX format has no field for heart rate, cadence or power. It does have an extensions box where other schemas can add their own data. Garmin, for example, publishes an extension meant to sit inside each track point, with fields for heart rate, cadence, temperature and speed. So a GPX can carry sensor data, but only if the app that wrote it put it there and the app reading it knows where to look.

What a GPX file doesn’t store

This is where people get surprised. A GPX file doesn’t hold:

  • Laps, splits or training summaries. There is no standard place for “lap 3” or total calories.
  • Photos, comments or kudos. Those live in the app, not in the file.
  • Sensor data, unless an extension was used. Some exports leave it out entirely.

If you need laps or every sensor reading, the original FIT file from your watch is usually the richer copy. See GPX vs FIT vs TCX vs KML for when each one makes sense.

How it looks inside

Open a GPX in a text editor and you’ll see something like this, trimmed to one point:

<gpx version="1.1" creator="MyWatch">
  <trk>
    <name>Sunday ride</name>
    <trkseg>
      <trkpt lat="41.3851" lon="2.1734">
        <ele>12.4</ele>
        <time>2026-11-08T08:15:02Z</time>
      </trkpt>
    </trkseg>
  </trk>
</gpx>

trk is the track, trkseg is a segment of continuous recording and trkpt is one point. The documentation says a new segment should start whenever GPS reception is lost or the device is switched off, which is why a ride with a tunnel can show up as two pieces.

Where GPX files come from

Most of the time, from one of three places:

  1. Your sport app or watch platform, when you export an activity. Our guide on downloading the GPS file of your activity walks through Strava, Garmin Connect, Polar Flow and the Suunto app.
  2. A route planner or race organizer, who shares the course before the event.
  3. A friend, who sends you the loop they love.

What you can do with one

Load it into another app to follow it, see it on a map, share it, keep it as a backup of your activity, or turn it into something visual. If double-clicking it does nothing, here is how to open a GPX file.

Turning the points into a video

All those points with position, elevation and time are exactly what a moving map needs. Trazo, at trazo.run, takes a GPX and turns it into a 3D map video, horizontal or vertical, with the length you choose. If your file is FIT, KML, KMZ or GeoJSON, it converts it to GPX and keeps heart rate and temperature. You can also trim the start, fix a jumpy section or add your own labels on the map.

Sources

Your next route deserves its own video.

Claim your bibCreate your account

Sign up and turn your first route into a video.

Create my account

Claim a bib before launch and you’ll get full access. No spam.

Your bib: #0000

You’re in!

Full access is yours from race day. We’ll email you at .

That email already has a bib: #0000.

Too many tries in a row. Try again later.

Check your email: something’s missing, like the @ or the domain.

We couldn’t save your bib. Try again in a few minutes.