TrailCam

Guides

How to open a GPX file on an iPhone

A GPX file usually reaches an iPhone the same unglamorous way it reaches a computer — an email attachment, an AirDropped file, something sent expecting the recipient already has the right app. Tapping it does not do what tapping a photo or a PDF does, and that is not a fault in the file or the phone. iOS was built with viewers for the formats enough apps and people rely on, and a GPS track format used by a specific category of hiking, cycling and mapping apps never crossed that bar. Understanding what iOS is actually offering when you tap the file explains why nothing feels obviously broken, even though nothing useful happens either.

The short answer

iOS has no default app tied to the .gpx extension, so tapping one in Files, Mail or Messages does not open a map the way tapping a photo opens the Photos app. What actually opens is Quick Look, the system's built-in file preview, and because a GPX file is plain-text XML underneath, Quick Look shows the raw tags and numbers rather than a map. That preview is not the real "open" action. Turning a .gpx file into an actual route on an iPhone means handing it, through the share sheet, to an app that specifically knows how to read GPX — the same step a GPX file needs on a computer when no mapping tool is installed, just with fewer fallback options along the way.

Why there is no built-in viewer for this

An iPhone ships with a working viewer for photos, PDFs, plain text and the common office formats because those cross a threshold: enough apps produce them, and enough people open them, that Apple builds the interpreter into the operating system itself rather than leaving it to whichever app happens to be installed. GPX never crosses that threshold. It is a specialised format — an XML structure holding a sequence of coordinates — used by a fairly narrow category of outdoor and mapping apps, and read by almost nothing else on the phone. That is not an oversight, and it is the same reason a spreadsheet app on a computer does not understand a .gpx file without something translating it first: the operating system only bundles a reader for a format once enough of what runs on it actually needs one.

What actually happens when you tap one

In the Files app

Tapping a .gpx file in Files opens Quick Look, the system's built-in file preview. Quick Look treats a GPX file as what it technically is — a plain-text XML document — and shows the raw tags and numbers directly, the same angle-bracket structure a text editor shows on a computer, rather than a map. That is not the phone failing to open the file; it is Quick Look correctly rendering exactly the kind of file this is.

As a Mail or Messages attachment

A .gpx file arriving as an email or message attachment behaves the same way once tapped — a preview screen, not an app opening automatically, because nothing on the phone has registered itself as the default for that extension. The one difference worth knowing is that some mail services rewrite an unfamiliar attachment type on the way through, which occasionally turns a .gpx file into something ending in .xml or .txt by the time it lands, still readable as text but no longer recognised by an app expecting the original extension.

The share sheet, not the preview

The actual way to open a .gpx file on an iPhone is the small share icon on that preview screen, which lists every installed app that has told iOS it can handle the file. If a mapping or hiking app that reads GPX is installed, it shows up there and importing the file into it is what finally draws a route instead of a page of text. If nothing installed reads GPX, that list simply has nothing useful in it — not a sign anything went wrong, just the honest state of not having an app for the job yet.

Things that trip people up

  • Tapping the file and expecting a map — Quick Look shows the raw XML tags a GPX file is built from, never a drawn route. A route only appears once the file has been handed to an app built to read GPX.
  • Seeing a wall of angle-bracket tags and assuming the file is broken or empty — that is Quick Look correctly displaying a plain-text file exactly as it is, which says nothing about whether the points inside it are valid.
  • An attachment that opens as gibberish or will not open at all — usually a mail service silently changed the file extension in transit, which is enough to stop iOS offering the right handling for it even though the underlying text survived intact.
  • Assuming the share sheet is empty because the file is unsupported — it is empty, or nearly empty, whenever no installed app has registered itself for GPX files, which is a statement about what is on the phone, not about the format or the file.

Where TrailCam fits in

TrailCam reads a .gpx file handed to it through the iPhone share sheet, or through an import option inside the app itself, and turns it into a route in your history the same way a walk it recorded directly becomes one — distance, duration, pace and elevation gain worked out from the points in the file. That makes TrailCam one of the apps that shows up in the share sheet once it is installed, which is the actual fix for a .gpx file that otherwise just sits there as text on an iPhone. TrailCam is free to download.

Questions

Does the iPhone Files app have a built-in way to preview a GPX file as a map?
No. Its quick preview, when it shows anything, displays the raw XML text a GPX file is built from, never a drawn route. Seeing an actual map requires handing the file to an app that reads GPX.
Why does a GPX file open as a wall of text on my iPhone?
Because a GPX file is plain text — XML — underneath, and the system preview that is showing it has no built-in idea of how to turn coordinates into a line on a map. That is expected behaviour, not a broken file.
How do I actually see the route from a GPX file on my iPhone?
Open the file's preview, tap the share icon, and choose an installed app that reads GPX. That hands the file over to be read and drawn as a route — the built-in preview screen never does this on its own.

Recording your own routes

TrailCam is an iPhone app that records your route with GPS, keeps video clips, photos and voice notes pinned to the spot where you took them, and exports the result as GPX 1.1 or CSV. It is free to download.

Download on the App Store