What Is a .GPX File?
A .gpx file is a GPS data file in the GPS Exchange Format, an XML format that stores waypoints, planned routes and recorded tracks with latitude, longitude, elevation and time. Fitness apps, GPS watches, bike computers and hiking apps use it to share and import routes and activities.
- Extension
- .gpx
- Full name
- GPS Exchange Format
- Type
- Map and GPS file
- MIME type
- application/gpx+xml
- Developed by
- TopoGrafix
About GPX files
GPX was published by TopoGrafix in 2002, and version 1.1 is the one used today. It has three building blocks: waypoints (single named points), routes (an ordered list of points to follow) and tracks (a breadcrumb trail of where you actually went, split into segments). Each track point can carry a timestamp and elevation.
Because GPX is plain XML, nearly every outdoor app speaks it: Strava, Garmin Connect, Komoot, AllTrails, Gaia GPS and Google Earth Pro all import or export it. Extensions add heart rate, cadence or temperature, but those extras are app-specific and may be dropped by another app.
Files are usually small, from a few kilobytes for a short route to a few megabytes for a long day with one point per second. Exported activity tracks contain your exact location and times, including where you start and finish, so remove or trim the start of a track before sharing it publicly if it begins at your home.
What GPX files are used for
- Loading a hiking or cycling route onto a GPS watch or bike computer
- Exporting a recorded activity from Strava or Garmin Connect
- Sharing race courses and event routes
- Geotagging photos by matching photo times to a track
How to open a .gpx file
Online / any browser
Import the GPX into Google My Maps (create a map, then Import), or upload it to Strava, Komoot or Garmin Connect as a route.
Windows
Google Earth Pro opens GPX files (File > Open, file type GPS). QGIS reads them, and Notepad shows the XML.
Mac
Use Google Earth Pro or QGIS, or open the XML in TextEdit to check its contents.
iPhone and Android
Open the file with a hiking or cycling app such as Komoot, AllTrails or Gaia GPS, which import GPX routes.
How to convert a .gpx file
To convert GPX to KML for Google Earth, open it in Google Earth Pro and save the place as KML or KMZ, or use GPSBabel.
For a spreadsheet of points, load the GPX in QGIS and export the layer as CSV.
To send a route to an older Garmin device, use Garmin Connect or Garmin BaseCamp, which convert GPX to the device's format.
Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.
Naming and renaming GPX files
- Include the date and activity in exported tracks (2025-06-14-ride-mt-tam.gpx) so a folder of activities sorts chronologically.
- Name routes after start and end points and distance (bear-lake-to-emerald-lake-6km.gpx) since many devices show only the file name.
- Keep names short for older GPS units, which may truncate long file or route names.
Renaming lots of .gpx files? Use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.
Related file types
A .kml file is a map data file in Keyhole Markup Language, an XML format for placemarks, paths, polygons and overlays on Google Earth and other map apps. It stores coordinates with names, descriptions and styles as plain text. Google Earth, Google My Maps and most GIS programs open KML files.
A .kmz file is a compressed Google Earth file: a ZIP archive containing a KML map file (usually named doc.kml) plus any icons, photos or overlay images it uses. It shows placemarks, routes and areas on a map. Google Earth, Google My Maps and GIS apps such as QGIS open KMZ files.
A .xml file is a plain text data file in Extensible Markup Language, which stores information in nested, self-describing tags such as <invoice> and <total>. It is used for data exchange, configuration, sitemaps, RSS feeds and document formats. Any text editor or browser can open an XML file.
A .csv file is a plain-text table where each line is a row and commas separate the columns. It has no formatting, formulas or multiple sheets, which makes it the universal format for moving data between spreadsheets, databases, banking portals, CRMs and code. Any text editor or spreadsheet app can open it.
Frequently Asked Questions
How do I open a GPX file?
Import it into Google My Maps, Google Earth Pro, Strava, Komoot or Garmin Connect. Any text editor shows the raw coordinates.
What is the difference between a GPX route and a track?
A route is a short list of points to navigate between; a track is a detailed recording of a path actually traveled, with timestamps.
Can I view a GPX file in Google Maps?
Import it into Google My Maps, which displays on Google Maps. Google Maps itself has no file import.
Does a GPX file contain personal information?
A recorded track contains exact locations and times, which can reveal your home. Trim the start and end before sharing.