What is a GPX file?
GPX (GPS Exchange Format) is the plain, open file format that hiking, cycling and running apps use to hand a route to each other. It is text, not a picture of a map: a list of points, each with a latitude, longitude, elevation and time. That is why a GPX file from 2010 still opens everywhere today, and why “export as GPX” means you can take your track to any other app.
A file can hold three kinds of thing: a track (where someone actually went, recorded point by point), a route (a planned line, usually fewer points) and waypoints (single named spots — a hut, a parking lot, a spring). The viewer above shows all three.
How to open a GPX file on your phone or computer
iPhone and Android
Tap the file in Files or in the email, then Share or Open with, and pick an app that reads GPX: AllTrails, Gaia GPS, Komoot, Organic Maps, OsmAnd — in the UK also OS Maps. With no such app installed, open this page and choose the file here.
Windows and Mac
Neither system has a built-in GPX viewer — double-clicking usually opens a text editor or asks which app to use. Use the viewer on this page, gpx.studio to edit, CalTopo for planning, or Google Earth Pro to see the track over terrain. Any text editor will show you the raw points.
You never need a special “GPX program”. The format is open and simple; the question is not whether an app can read it but what it does with it afterwards.
Can Google Maps open a GPX file?
No — Google Maps itself does not import GPX, on the phone or in the browser, whatever some tutorials suggest. Two Google tools get you close:
- Google My Maps (mymaps.google.com): create a map, click Import, choose the GPX file. The line appears as a layer you can share, but elevation and timestamps are dropped — you get the line, not the profile.
- Google Earth Pro (free, desktop): File → Open, pick the GPX. Earth keeps the elevation and can show the track draped over the terrain.
If what you want is the elevation profile and the numbers, both are a detour — that is what the viewer above, or a hiking app, is for.
What is inside: one track point
Open a GPX file in a text editor and each recorded point looks like this:
<trkpt lat="36.578581" lon="-118.291994">
<ele>4421.0</ele>
<time>2026-08-07T14:14:22Z</time>
</trkpt>
Latitude, longitude, elevation in metres, time in UTC — thousands of times over. Some devices add heart rate, cadence or temperature as extensions; apps that don’t know them simply skip them.
Why the elevation in a GPX file can’t be taken at face value
The <ele> field holds a number but not where it came from. Depending
on the device it is GPS altitude, a barometric reading, or a value filled in later from
a terrain model — and some sites quietly replace it on import.
That is why two apps can report different elevation gain for the same file without either being broken. The viewer above shows gain twice: counted from 5 m (16 ft) steps, the way most apps do it, and raw, where every wobble in the data counts. The gap between the two is the noise. More on the heights a device can mean: altitude vs elevation, and why your devices disagree.
How to create or export a GPX file
Three ways: record one (any tracking app), plan one (gpx.studio, CalTopo, Komoot, AllTrails) or export what you have already recorded. Check the small print on that last one — several apps put exporting your own tracks behind a subscription. In VERT GPX export is free: charging to get your own season back out would be a threat, not a feature.
Importing into Strava, Garmin or Komoot
- Strava: on the website, Upload activity → File. Strava often recalculates the elevation gain instead of trusting the file.
- Garmin Connect: Import data for an activity, or Courses → Import to send a route to the watch.
- Komoot: on the website, Plan → Import, or share the file to Komoot on the phone.
And if you only want the elevation of the spot you are standing on:
Check my elevationIn short
- GPX is open text with points — nearly every outdoor app reads it.
- You can view one here without uploading it, with map, profile and climb.
- Google Maps doesn’t import GPX; My Maps and Earth Pro do.
- The elevation in the file says nothing about its source, so apps disagree.