1. GoBack
  2. Guides
  3. iPhone & Apple Watch

What is a GPX file, and how do you open one on iPhone?

GPX is the common format for GPS tracks, routes and waypoints. What's inside one, how to open it on iPhone, and how to export your recorded routes.

Updated 4 min read

In short

  • A GPX file is a plain text file holding GPS data: places (waypoints), planned routes and recorded tracks.
  • Almost every mapping, fitness and GPS app can read it, which makes it the standard way to move a route between apps.
  • On iPhone, open one from Files or an email with the Share button, and choose the app.
  • A GPX track shows exactly where you were and when. Think before posting one publicly.

Every app that records where you go stores it in its own way. GPX, the GPS Exchange Format, is the shared language between them. Record a hike in one app, export it as GPX, and you can open it in another, load it onto a handheld GPS unit, or keep it as a backup that will still be readable in twenty years.

What's inside

A GPX file is text, written in XML. You can open one in any text editor and read it. It holds up to three kinds of thing:

ElementWhat it isTypical use
WaypointA single named pointA trailhead, a campsite, a summit
RouteA short list of points to travel between, in orderA planned trip: go here, then here
TrackA dense trail of recorded points, usually with time and elevationWhere you actually went

A track point looks like this:

<trkpt lat="37.7455" lon="-119.5933"><ele>1220</ele><time>2026-10-16T09:41:00Z</time></trkpt>

Latitude and longitude in decimal degrees, the elevation in meters and the time in UTC. A day's hike is a few thousand of these lines, and the whole file is usually well under a megabyte.

How to open a GPX file on iPhone

iOS has no built-in GPX viewer, so you need an app that understands the format. Most hiking, cycling and running apps do.

  1. Get the file onto your phone. Save it from an email, a message or a website to the Files app.
  2. Find it in Files and touch and hold it, then tap Share.
  3. Choose the app to open it with from the row of icons. If you don't see it, scroll to the end and tap More.
  4. Import it. The app shows the track on its map and usually asks whether to save it.

Some services only import through their website. In that case, upload the file from Safari and it will sync to the app.

How to export a GPX file

Look for Export or Share on a saved activity. The file can go to Files, AirDrop, email or straight into another app.

From GoBack

  1. Open the Track tab and tap Trip History.
  2. Touch and hold a trip and choose Export GPX. Or open the trip and tap the share button at the top.
  3. Pick where to send it.

GoBack writes standard GPX 1.1 with elevation and timestamps, and starts a new track segment at each pause, so other apps don't draw a straight line across the gap where you stopped. Recording routes is a GoBack Pro feature. GoBack exports GPX; it doesn't import GPX files.

What you can do with one

  • Back up your routes. Keep the files in iCloud Drive or on a computer, independent of any app.
  • Move between apps when you change the one you use.
  • Share a route with a friend, who can follow it in whatever app they prefer.
  • Load it onto a GPS unit or a watch for a trip.
  • View it on a big screen. Desktop mapping tools open GPX files and show the elevation profile.
  • Geotag photos from a camera without GPS, by matching timestamps.

GPX and the other formats

FormatBest forNotes
GPXTracks, routes and waypoints between any appsOpen, text-based, universally supported
KML / KMZViewing in Google EarthGood for display and styling, less for navigation
FITFitness devices and watchesCompact; includes heart rate, cadence and power
TCXOlder fitness platformsWorkout-oriented, with laps and heart rate
GeoJSONWeb maps and developersFlexible, not a navigation standard

If in doubt, choose GPX. It's the one everything accepts.

A word about privacy

A track records where you were at each moment. A file that starts and ends at your front door shows where you live and when you're out. Before publishing a route:

  • Trim the start and end, or begin recording a few streets from home.
  • Use the app's privacy zones if you upload to a fitness platform.
  • Remove timestamps if only the line matters.
  • Think about secret spots. A shared track leads straight to your fishing hole. See how to mark a spot and keep it private.

Common questions

What does GPX stand for?

GPS Exchange Format. It's an open, text-based format for exchanging waypoints, routes and tracks between apps and devices.

Can Apple Maps open GPX files?

No. Apple Maps doesn't import GPX. Use a hiking, cycling or GPS app that supports the format.

What is the difference between a route and a track?

A route is a plan: a short list of points to travel between. A track is a record: a dense trail of the points you actually passed through, usually with times and elevations.

Can I edit a GPX file?

Yes. It's plain text, so a text editor works for small changes, and there are apps and websites for trimming, merging and correcting tracks.

Does a GPX file include elevation?

Usually. Recorded tracks normally include an elevation for each point, which is what apps use to draw the elevation profile and calculate climb.

Find your way back with GoBack

Save a spot with one tap. The compass, your breadcrumb trail and offline maps bring you back to it.

Download on theApp Store