A GPX file stores location data in a format that works across different apps and devices
A GPX file is a text-based file that holds location information — coordinates, elevation, waypoints, routes, and tracks. GPX stands for GPS Exchange Format. The file itself is just plain text written in a standard structure, which means any mapping app, fitness tracker, or GPS device that understands the format can read it and display the data the same way.
Think of it as a universal translator for location data. If you record a hiking route on one app and want to share it with someone using a different app, you export it as a GPX file. That person imports the GPX file into their app, and the route appears exactly as you recorded it — same path, same elevation changes, same waypoints.
GPX files are plain text, so they are small and easy to email, upload, or store. You can open one in a text editor and see the raw data, though most people interact with them through mapping or fitness apps instead.
Key Takeaways
- A GPX file contains location data like routes, tracks, and waypoints in a format that works across different apps and devices.
- You can export a GPX file from one mapping or fitness app and import it into another without losing the location information.
- GPX files are small, text-based files that work on phones, computers, GPS watches, and dedicated GPS devices.
- Common uses include sharing hiking routes, recording bike rides, storing travel waypoints, and backing up location data.
What data a GPX file actually contains
A GPX file holds several types of location information. A track is a recorded path — the exact route you took while hiking, cycling, or driving, usually recorded as a series of points over time. A route is a planned path from one point to another, often created before you travel. A waypoint is a single marked location — a restaurant, a trailhead, a scenic viewpoint.
Each point in a GPX file includes latitude and longitude coordinates. Many GPX files also store elevation (how high you were at each point), the time you were there, and sometimes other details like heart rate or temperature if the device recorded them.
The file format is standardized, which is why it works everywhere. Whether you are using a phone app, a smartwatch, a car GPS, or a dedicated hiking device, they all understand the same GPX structure. That consistency is what makes GPX files useful for sharing and moving data between devices.
How to export a GPX file from a mapping or fitness app
The steps vary slightly by app, but the general process is the same. Open the app, find the route or track you want to save, look for an export or share option, and choose GPX as the format. Most apps put this option in a menu next to the route name or in a settings area for that specific activity.
On fitness apps like Strava, you usually open the activity, tap the menu icon (three dots), and select "Export" or "Download." On mapping apps like AllTrails, you find the trail or route, tap the menu, and choose "Export as GPX." On Apple Maps or Google Maps, the process is less direct — you may need to use a third-party tool or export through a different method, since those apps prioritize their own formats.
Once you export, the app saves the GPX file to your phone or computer. You can then email it, upload it to cloud storage, or send it to someone else. They can import it into their own app using a similar process: open the app, find the import option, select the GPX file, and the route or track appears in their app.
How to import a GPX file into an app
To import a GPX file, you need an app that supports the format. Most mapping apps, fitness trackers, and outdoor navigation apps do. Open the app, look for an import, upload, or add option (often in a menu or settings area), and select the GPX file from your phone or computer.
On a phone, the file usually lives in your Downloads folder or in the email attachment if someone sent it to you. Tap the file, and your phone will ask which app to open it with. Choose your mapping or fitness app, and it will import the data. On a computer, the process is similar — download or locate the GPX file, open your mapping software, and use the import function.
After import, the route or track appears in the app as if you had created it there. You can then view it on a map, follow it for navigation, or use it as a starting point for your own activity.
Common uses for GPX files
Hikers and cyclists use GPX files to share popular routes. If you find a well-reviewed trail on AllTrails or Komoot, you can download the GPX file and load it into your phone's navigation app before you go, so you have the exact path even without cell service.
Fitness enthusiasts use GPX files to back up their activities. If you switch from one fitness app to another, you can export all your past workouts as GPX files and import them into the new app, keeping your history intact. This is especially useful if you are moving from one phone to another or changing platforms.
Travelers use GPX files to store waypoints — marked locations like hotels, restaurants, or landmarks. You can create a GPX file with all your planned stops, import it into a navigation app, and reference it throughout your trip. Geocachers use GPX files to store cache locations and share them with other geocachers.
Researchers and professionals use GPX files to record field data — survey routes, wildlife tracking paths, or environmental monitoring routes. The format's simplicity and universal compatibility make it standard in many industries.
GPX files on different devices
GPX files work on smartphones, tablets, computers, smartwatches, and dedicated GPS devices. On a smartphone, you open a GPX file with a mapping app like Google Maps, Apple Maps, Komoot, AllTrails, or Strava. On a computer, you can view and edit GPX files with desktop mapping software like Garmin BaseCamp or open-source tools like QGIS.
Dedicated GPS devices like Garmin handhelds and smartwatches often have built-in support for GPX files. You connect the device to a computer, copy the GPX file to the device's storage, and the GPS reads it directly. Some smartwatches let you import GPX files through their companion app on your phone.
The advantage of this cross-device compatibility is flexibility. You can record a route on your phone, transfer it to your watch for a hands-free view while hiking, and later view it on your computer to analyze the data or share it with others.
How GPX files differ from other location formats
Other location file formats exist, but GPX is the most widely supported. KML files (Keyhole Markup Language) are used mainly by Google Earth and Google Maps, and they store similar data but in a different structure. TCX files (Training Center XML) are specific to Garmin devices and fitness tracking. FIT files are Garmin's proprietary format for detailed fitness data.
The reason GPX is popular is that it is open-source and standardized. No single company owns it, so any developer can build GPX support into their app. This makes GPX the safest choice if you want your data to work across multiple platforms and apps. If you export a route as GPX, you can be confident that most mapping and fitness apps will read it correctly.
Some apps support multiple formats, so you may have a choice when exporting. If you are unsure which format to use, GPX is the most reliable option for sharing and moving data between different apps and devices.
Frequently Asked Questions
Can I edit a GPX file after I download it?
Yes. You can open a GPX file in a text editor and manually change coordinates, or use mapping software like QGIS or Garmin BaseCamp to edit the route visually. Most people edit GPX files through a mapping app instead — you import the file, adjust the route on the map, and export it again as a new GPX file.
What if an app does not support GPX files?
Not all apps support GPX import and export. If your app does not, you can try converting the GPX file to a format your app does support using an online converter tool, or switch to an app that does support GPX. Most popular mapping and fitness apps include GPX support.
Can I view a GPX file without downloading an app?
Yes. You can upload a GPX file to online mapping tools like GPXStudio, Garmin Connect, or Komoot's web version, and view the route in your browser. This is useful if you want to check a route before importing it into an app on your phone.
Do GPX files include real-time location data?
No. A GPX file stores a recorded or planned route — past locations or intended waypoints. It does not track your current location in real time. Once you import a GPX file into a navigation app, the app can use it to guide you, but the GPX file itself is static data.
How do I share a GPX file with someone else?
Email the GPX file as an attachment, upload it to cloud storage like Google Drive or Dropbox and share the link, or use a file-sharing service. The recipient downloads the file and imports it into their mapping or fitness app using the app's import function.