What a GPX file is and why you might have one
A GPX file is a text file that stores GPS location data — usually a map route, a recorded track, or a list of waypoints (marked locations). GPX stands for GPS Exchange Format. You might have one because you downloaded a hiking route from a website, exported a path from a fitness app, or received coordinates from someone else.
GPX files are plain text inside, but they are not meant to be read as plain text. You need a program that understands the GPS data format to see the route on a map. The program you use depends on what device you are using and what you want to do with the file.
Key Takeaways
- GPX files contain GPS route or location data and require a map program to view, not a text editor.
- On Windows and Mac, free programs like Google Earth or Garmin BaseCamp can open GPX files directly.
- On iPhone or Android, you can open GPX files through map apps like Google Maps or dedicated hiking apps.
- Some websites let you upload and view GPX files in your web browser without installing anything.
Opening a GPX file on Windows
The easiest route on Windows is Google Earth, which is free and handles GPX files without any setup. Download Google Earth from google.com/earth if you do not have it. Open the program, then go to File > Open. Find your GPX file and click Open. Google Earth will display the route or waypoints on a map, and you can zoom in, pan around, and see the exact coordinates.
If you prefer something lighter, Garmin BaseCamp is also free and works well for GPX files. Download it from garmin.com. The steps are the same: open the program, use File > Open, select your GPX file, and the map will appear. BaseCamp is particularly useful if you own a Garmin GPS device, because you can send routes directly to the device from there.
Another option is to use your web browser. Go to gpxstudio.github.io or umap.openstreetmap.fr, click the upload button, select your GPX file, and the map will load in seconds. No installation needed, and you can view it on any computer with internet.
Opening a GPX file on Mac
Mac users can use the same free tools as Windows. Download Google Earth from google.com/earth (the Mac version is separate). Open it, go to File > Open, and select your GPX file. The route will appear on the map immediately.
Garmin BaseCamp also runs on Mac and works the same way. If you want to stay in the Apple ecosystem, Maps (the built-in Mac app) can open GPX files — right-click the file, select Open With, and choose Maps from the list. The route will open in the Maps app, though the interface is simpler than Google Earth or BaseCamp.
The web browser route works on Mac too. Visit gpxstudio.github.io, upload your file, and view it instantly without downloading anything.
Opening a GPX file on iPhone
On iPhone, the process depends on which app you want to use. Google Maps can open GPX files, but not directly from the Files app. Instead, open the GPX file in Files or Mail, tap Share, scroll to Google Maps, and select it. The route will open in Google Maps, where you can view it and navigate along it.
Apple Maps does not open GPX files natively, but you can convert the file first using a web tool, then import it. A simpler approach is to use a dedicated hiking or GPS app like AllTrails, Komoot, or Gaia GPS. These apps are built for GPX files. Open the app, look for an import or upload button, select your GPX file from Files or iCloud Drive, and the route appears on the map.
If you received the GPX file by email, open the email, tap the attachment, then tap Share and select your preferred map app from the list.
Opening a GPX file on Android
Android offers more direct file handling than iPhone. Download a map app that reads GPX files — Google Maps, Komoot, AllTrails, or Gaia GPS all work. Open your file manager, find the GPX file, long-press it, and select Open With. Choose your map app from the list, and the route will load.
Alternatively, open the map app first, look for an import or open file button (usually in the menu), navigate to your GPX file, and select it. The exact steps vary by app, but the concept is the same across all of them.
If the GPX file is in your Downloads folder and you cannot find it, open your file manager, tap Downloads, and scroll until you see the file. The name will end in .gpx.
What to do if nothing opens the file
If you double-click the GPX file and nothing happens, your computer does not have a program set to open it by default. Right-click the file (or Control-click on Mac), select Open With, and choose Google Earth, Garmin BaseCamp, or Maps from the list. If none of those appear, you need to download one first.
On Windows, if you see only Notepad in the Open With menu, do not open it there — Notepad will show you raw code, not a map. Close Notepad and download Google Earth or BaseCamp instead.
If you are on a phone and the file will not open, make sure the app you are trying to use is fully updated. Open your app store, search for the app name, and tap Update if one is available. Then try opening the GPX file again.
Frequently Asked Questions
Can I open a GPX file in Excel or Google Sheets?
Technically yes, but you will see only raw code and numbers, not a map. GPX files are text-based, so spreadsheet programs can read them, but they are not designed to display GPS data visually. Use a map program instead to see the actual route.
What if I want to edit a GPX file?
Use GPXEditor (free, runs on Windows and Mac) or Viking GPS (free, open-source). These programs let you add, remove, or move waypoints, and then save the changes back to the GPX file. For simple edits, some web tools like gpxstudio.github.io also let you modify routes before downloading.
Can I convert a GPX file to a different format?
Yes. Use a free online converter like cloudconvert.com or zamzar.com. Upload your GPX file, select the format you want (KML, GeoJSON, or others), and download the converted file. Many map programs also let you export to different formats — open the GPX file in Google Earth or BaseCamp, then use File > Save As and choose a new format.
Why is my GPX file not showing up on my phone?
The file might be in a location your map app cannot access, or the app does not have permission to read files. Move the GPX file to your Downloads folder or iCloud Drive (on iPhone) or Downloads (on Android), then try opening it again. If the app still cannot find it, check the app's settings to make sure file access is turned on.
Is it safe to open a GPX file from someone I do not know?
GPX files are just location data and cannot contain viruses or malware. They are safe to open. The only risk is if someone shared a route that leads somewhere unsafe, but that is a judgment call, not a technical one.