What Is a GPX File?

Published on

A GPX file holds geographic coordinates that let compatible apps display a route, record a journey or mark a location. Here is how the format works and when to use it.

What does GPX mean?

GPX stands for GPS Exchange Format . It is an XML-based file format used to move GPS information between mapping applications, fitness platforms, navigation devices and computers. A GPX file usually ends in .gpx , but the extension alone does not prove that the contents are valid GPS data.

The most useful feature of GPX is portability: a route recorded on one device may be opened by a different app without being tied to the original manufacturer. The receiving app still determines which information it recognizes. A fitness app may use timestamps, while a hiking map may care mainly about the route shape.

Illustration of a GPX file alongside GPS waypoints and a mapped route

What information is inside a GPX file?

A GPX file can include three main types of geographic information:

  • Waypoints: individual places such as a parking area, viewpoint or trail junction.
  • Routes: an ordered set of points describing where you intend to travel. These are normally represented by <rte> and <rtept> elements.
  • Tracks: a recorded or prepared trail of points, typically grouped into one or more segments with <trk> , <trkseg> and <trkpt> elements.

A point is defined by latitude and longitude. Some points also include elevation ( <ele> ) or a time ( <time> ). File-level metadata can hold a name, description, author or time. These fields are optional, so two perfectly valid GPX files may display very differently. If you would like a clearer breakdown, read how to open a GPX file .

GPX track versus GPX route

A track is often used for a journey already recorded by a GPS device. It can contain hundreds or thousands of points showing where someone actually moved. A route is usually a plan or ordered list of points to follow. The difference matters because a navigation device may treat a route as something to recalculate, while a track is more likely to be displayed as a line.

Not every app follows that distinction consistently. Some platforms import a GPX track as a course or route. For this reason, inspect an imported file before depending on it for turn-by-turn directions. You can also learn how to create a GPX route or how to edit GPX files when a file does not match your needs.

How to see what your GPX file contains

  1. Find the .gpx file in your downloads, files or device storage.
  2. Open it with the GPX Viewer to see its route or track on a map.
  3. Check where the line begins and ends, whether there are disconnected sections and whether the location looks plausible.
  4. If you need to inspect individual coordinates, open the file in a text editor. XML is text, but avoid changing it unless you understand its structure.

A file can contain waypoints with no continuous track, or a route that consists of only a few points. Neither automatically means the file is broken.

What GPX does not contain

GPX is not a map image and does not ordinarily bundle street maps or aerial photography. Mapping apps draw the GPS points over a separate basemap. It is also not a guarantee of accurate elevation, speed or directions. Those depend on source measurements and how the software interprets them.

For a map-focused representation, consider GPX versus KML . If you want to share geographic data with a KML-compatible app, the GPX to KML Converter can create a suitable file, although specialized extensions may not survive conversion.

Common GPX problems

A file that displays no route might contain only waypoints, be empty, use unsupported data extensions or have invalid XML. If its line appears on the wrong continent, coordinates may have been swapped or incorrectly entered. When a track looks jagged, GPS reception or recorded point spacing may be responsible.

For technical troubleshooting, see how to fix a corrupted GPX file . Always preserve the original before editing or converting a file.

A small GPX example, explained

Consider a weekend walk recorded on your phone. Its GPX may contain a <trk> named after the walk, one <trkseg> holding the moving portion, and a sequence of <trkpt> elements. Each point carries coordinates; some also have an elevation measurement and a timestamp. A separate <wpt> could mark the car park or a water source. These are distinct pieces of information even if a viewer draws them together.

If the walker paused the recording and resumed later, the software might create another track segment. That can help explain a gap on the map. A GPX route prepared before the trip, by contrast, may have only the planned turning points and no timestamps at all.

How to choose a file for sharing

For a simple route preview, GPX is usually enough if the recipient has a compatible viewer. For someone who only needs a static document, exporting a route report with the GPX to PDF Converter might be more convenient, though the report is not a navigable GPX file. For data analysis, GPX to CSV can expose coordinates in rows. Choose based on what the recipient needs to do, not simply what file type is most familiar.

Frequently asked questions

Can I open a GPX file without a GPS device?

Yes. A GPX viewer in your browser or a compatible computer or smartphone app can display it. You do not need the device that recorded the file.

Are GPX files safe to share?

They may reveal home addresses, workplaces, travel times or regularly visited places through coordinates and timestamps. Review the file before sharing it publicly.