All articles

What Is a GPX File? A Hiker's Guide to GPS Navigation

What the GPX format actually is, what's stored inside one, how it differs from KML and FIT, and why it's become the universal way hikers share and follow a route.

If you've ever downloaded a hiking route or planned a multi-day trek, you've probably come across the term "GPX file." It's the closest thing the outdoors has to a universal language for routes: a single file that almost any map app or GPS device can read, so the path you planned at home shows up as a line you can follow on the trail.

This guide explains what a GPX file actually is, what's stored inside one, how it differs from the other formats you'll run into, and why hikers rely on them to navigate. If you already have a file and just want to follow it, skip ahead to how to use a GPX file.

What is a GPX file?

GPX stands for GPS Exchange Format. It's an open, plain-text format that stores geographic information: mainly the string of coordinates that traces a path across the landscape. Because it's an open standard, and not something owned by one company, a file made in one app will open in almost any other. It's a bit like the PDF of GPS routes.

A .gpx file stores latitude and longitude for each point along a route, usually with elevation, and sometimes timestamps too. Stitch enough of those points together and you get the line of a trail you can follow.

The format dates from 2002 and has barely changed since, which is exactly why it works. A GPX file written twenty years ago still opens today, and a file exported from a modern planning tool still loads onto an old handheld unit.

What's inside a GPX file?

A GPX file can store three kinds of data:

  • Waypoints — single marked points, like a hut, a spring, or a junction.
  • Tracks — a detailed line that records an actual path, point by point.
  • Routes — a lighter set of points describing a way between places, meant for turn-by-turn directions.

For following a footpath you almost always want a track, since it records the real shape of the path in full detail. A route, with its sparser points, can cut corners across terrain you'd never actually walk.

The difference matters more than it sounds. A track for a 15 km mountain day might hold several thousand points and follow every switchback. A route for the same day might hold twenty, and the straight lines between them can run over a cliff.

What a GPX file looks like inside

Because GPX is plain text, you can open one in any text editor and read it. Underneath, it's XML. A short track looks roughly like this:

<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="Traileasy">
  <trk>
    <name>Col de la Seigne</name>
    <trkseg>
      <trkpt lat="45.7825" lon="6.8012">
        <ele>2516</ele>
        <time>2026-07-14T09:12:03Z</time>
      </trkpt>
      <trkpt lat="45.7831" lon="6.8019">
        <ele>2523</ele>
      </trkpt>
    </trkseg>
  </trk>
</gpx>

Each <trkpt> is one point on the ground: a latitude, a longitude, and usually an elevation in metres. Everything else is structure around them. That's the whole idea, and it's why the format is so portable. There's no styling, no map, and no proprietary encoding to get in the way.

It also means a GPX file is small. A full multi-day trek is typically a few hundred kilobytes, which matters when you're emailing one to yourself from a hostel on slow wifi.

GPX compared to other route formats

GPX is not the only file you'll meet. The main ones:

FormatUsed byBest forNotes
GPXAlmost everythingSharing and following routesOpen, plain text, the safe default
KML / KMZGoogle Earth, Google My MapsVisualising a route on a mapSupports styling, images, 3D; KMZ is a zipped KML
FITGarmin devicesRecorded activities and Garmin coursesCompact binary, carries heart rate and cadence
TCXGarmin Training CenterStructured workouts with route dataLargely superseded by FIT

If you're given a KML and want it on a watch, convert it to GPX first. Most desktop tools and plenty of free web converters will do it. Going the other way, GPX to KML, is worth it only when you specifically want to look at the route in Google Earth.

Where GPX files come from

A GPX file reaches you in one of three ways, and it's worth knowing which, because it tells you how much to trust the line.

  • Recorded. Someone walked the route with a watch or phone logging their position. This reflects a real path that a real person followed, but it carries whatever GPS error was present on the day, and it can wander under tree cover or in a steep valley.
  • Drawn or planned. Built in a planning tool by snapping to mapped paths. The line follows the map exactly, though it's only as good as the underlying map data.
  • Official. Published by a trail association or national park. Usually the most reliable, though not always the most detailed.

Traileasy exports fall into the second group: the GPX follows the planned route precisely, with no recording drift.

What a GPX file doesn't do

A GPX file is a line, and nothing more. Some things it won't give you:

  • A map. The track is just coordinates. Without map tiles underneath it, you're looking at a line floating on a blank screen. Offline maps are downloaded separately, in your navigation app.
  • Turn-by-turn instructions. Most hiking GPX files are tracks, so there are no spoken directions or junction prompts. You follow the line yourself.
  • Any guarantee the path exists. A track can be years out of date. Bridges wash out, paths get rerouted, and a line on a screen doesn't know that.
  • Trail conditions, water, or huts. Unless someone added waypoints for them, that information lives elsewhere.

None of that makes GPX less useful. It just means the file is one part of navigating, alongside a downloaded map, some judgement, and a backup.

How hikers use GPX files to navigate

Load a GPX file into a map app or GPS device and the planned route shows up as a line over the map. As you walk, the device's GPS marks where you are with a dot, and navigating is mostly a matter of keeping that dot on the line.

This matters most when:

  • You're off the grid. GPS works from satellites and doesn't need a phone signal. Paired with offline maps, a GPX track lets you navigate deep in the mountains with no reception.
  • The trail is faint or unmarked. On snowfields, across braided paths, or at junctions with no clear signpost, a track on your screen shows you exactly where the route goes.
  • You want to know what's ahead. Seeing the next climb, the distance to the next hut, or where the trail crosses a river helps you pace the day.

For a lot of hikers, a GPX track is now central to how they navigate. Seeing the exact line of the route, and your own position on it, takes much of the guesswork out of a long or unfamiliar trail.

Putting a GPX file to use

Knowing what the file is, the practical question is how to follow one. In short: you import the .gpx into a navigation app like Gaia GPS or Mapy (or send it to a GPS watch), download the offline map for the area while you still have signal, then follow the route line with your live position on screen. The step-by-step guide to using a GPX file walks through each part, including getting the file onto your phone or watch and what to do when it won't open.

If you're planning a multi-day hike, you can also build the route in Traileasy and export the day-by-day itinerary as a GPX file that matches your exact plan, ready to drop into any of those apps. Or skip the file: the Traileasy app for iOS and Android downloads the route and its offline map together and navigates it directly. Trails to start from include the Tour du Mont Blanc, the Peaks of the Balkans, Alta Via 1 and Alta Via 2, or browse all trails.

Frequently asked questions

What is a GPX file?

A GPX file is a plain-text file that stores a geographic route as a list of coordinates. GPX stands for GPS Exchange Format. It's an open standard, so a file created in one app opens in almost any other map app, GPS watch, or handheld unit. For hikers it's the standard way a planned route gets from a website or planning tool onto the device you navigate with.

What does GPX stand for?

GPS Exchange Format. The name describes its purpose: a neutral format for exchanging GPS data between programs and devices that would otherwise use incompatible formats of their own.

What is stored inside a GPX file?

Latitude and longitude for every point along the route, usually elevation, and sometimes a timestamp per point. It can hold three kinds of data: waypoints (single marked points), tracks (a detailed recorded or planned line), and routes (a sparser set of points meant for turn-by-turn directions). For following a footpath you want a track.

What's the difference between a GPX track and a GPX route?

A track is a dense series of points that traces the real shape of the path, often thousands of them. A route is a short list of key points with the navigation between them left to the device. For hiking you almost always want a track, because a route can cut straight lines across terrain you would never actually walk.

What's the difference between GPX and KML files?

Both store geographic data. GPX is the standard for GPS tracks and routes and is what outdoor apps and watches expect. KML, used by Google Earth, leans towards rich map visualisation with styling, images, and 3D. Most tools can convert between the two, and if you have a KML you'll usually want to convert it to GPX before loading it onto a watch.

What's the difference between GPX and FIT files?

GPX is an open exchange format for routes. FIT is Garmin's compact binary format, used for recorded activities and for courses on Garmin devices, and it carries extra fitness data like heart rate, cadence, and power. GPX is the one to use for sharing a route between different brands; FIT is what a Garmin often produces when you record.

Can I open a GPX file on both iPhone and Android?

Yes. GPX is cross-platform. The same file works in apps on iOS, Android, desktop software, and standalone GPS devices. See how to use a GPX file for the import steps on each.

Are GPX files free to use?

Yes. GPX is an open format and the files are just text, so there's no cost or licence attached to the format itself. Some apps charge for premium maps or offline downloads, but importing and following a GPX file is typically free.

How accurate is a GPX file?

It depends entirely on where the file came from. A track built from a planned route follows the mapped path exactly. A track recorded on a phone or watch carries whatever GPS error was present on the day, which can be several metres in open country and much worse under tree cover or in a steep valley. Recorded tracks can also drift or spike where signal was poor.

Can I open a GPX file in Google Maps?

Not in the main Google Maps app. You can import a GPX into Google My Maps on the desktop to view the line, but it won't give you offline hiking navigation. For following a route on the trail, use an outdoor app such as Gaia GPS or Mapy instead.

For more hiking guides and trip-planning advice, follow us on Instagram @traileasyapp.