How to Open a
GPX File.
You downloaded a trail, double-clicked it, and got a wall of XML. Here's how to open a GPX file so you actually see the route on a map, on every major platform.
TrailX Guides · Updated
First: why double-clicking doesn't show a map
A GPX fileis XML: a text document listing coordinates, elevations and timestamps. Your operating system has no built-in GPS viewer, so it hands the file to a text editor or browser, which shows the raw markup. That's useful for a quick check (look for <trkpt> lines to confirm the file actually contains a track), but to see the line on a map you need an app that understands GPS data.
Open a GPX file on Windows
Option 1: GPXSee (free, lightweight)
GPXSee is a free, open-source viewer for Windows, macOS and Linux. Install it, then either drag the .gpx file onto the window or use File → Open. It shows the track on a map alongside elevation, speed and time graphs when that data is present. It's the quickest way to inspect a file without importing it into an account.
Option 2: Google Earth Pro (free)
In Google Earth Pro choose File → Open, then change the file-type filter in the dialog to the GPS option so .gpx files appear. Google Earth imports the tracks and waypoints into your Temporary Places, where you can view them in 3D terrain and save them as KML.
Option 3: QGIS (free, for mapping work)
QGIS can add a GPX file as a vector layer (Layer → Add Layer → Add Vector Layer) and lets you choose which part to load: waypoints, routes, tracks or track points. It's overkill for a quick look but ideal if you want to combine a trail with other map data.
Open a GPX file on Mac
The same free tools work on macOS: GPXSee and Google Earth Proboth have Mac versions and open GPX files the same way as on Windows. Garmin's free BaseCamp desktop app also imports GPX on both platforms if you manage a Garmin device. To peek at the raw data, open the file in TextEdit: right-click, choose Open With → TextEdit.
Open a GPX file in your browser (no install)
Google My Maps
Go to Google My Maps, create a new map, and click Importunder the first layer. Upload the GPX file and the track appears as a line you can style, share or view later from the Google Maps app. My Maps also accepts KML and KMZ, so if you only have those, you're covered too.
TrailX Publish
On the TrailX Publish page, drop a GPX file (or KML, KMZ, GeoJSON, TCX or CSV) onto the upload area. TrailX draws the route on an interactive map and shows distance, elevation range, maximum elevation and an elevation profile. The analysis runs locally in your browser; nothing is added to the TrailX registry unless you sign in and explicitly choose to publish it.
Web GPX editors
Free web editors such as gpx.studio open a GPX file for viewing and editing: trimming, merging, reversing and exporting.
Open a GPX file on Android
Android has no system GPX viewer, and the Google Maps app can't import GPX files. Instead:
- Use an outdoor navigation app. Apps such as OsmAnd, Organic Maps and Gaia GPS import GPX files. Tap the downloaded file in the Filesapp (or your browser's downloads) and choose the app from the Open withlist, or use the app's own import option.
- Use Google My Maps.Import the GPX into My Maps from a browser, then view that map in the Google Maps app. It's fine for reference, but Google Maps won't navigate along the track.
Open a GPX file on iPhone
On iOS, a downloaded GPX lands in the Files app (usually the Downloads folder). Tapping it shows a plain preview at best. To open it in a map:
- Long-press the file in Files, tap Share, and pick a navigation app that accepts GPX (for example Gaia GPS or OsmAnd). If the app isn't listed, open the app and use its import option to browse to the file.
- From Mail or Messages, tap the attachment, then the share icon, and send it to the same app.
- Apple Maps does not import GPX files.
The full phone workflow, including offline use and the TrailX app, is covered in GPX on iPhone & Android.
Viewing a GPX in Google Earth on the web
The browser version of Google Earth imports KML and KMZ files into a project, but not GPX. If you want to fly over a trail in 3D without installing Google Earth Pro, convert the GPX first: upload it to the TrailX converter, choose KML or KMZ as the target format, and download. Then in Google Earth, open Projects, create a new project and choose the option to import a KML file from your computer. The track appears as a line draped over the terrain, and any waypoints become placemarks with their names. The conversion happens in your browser, so the file isn't uploaded anywhere along the way.
Quick reference
| Platform | Easiest way to see the map | Notes |
|---|---|---|
| Windows | GPXSee or Google Earth Pro | Text editors show raw XML only. |
| macOS | GPXSee or Google Earth Pro | TextEdit for a raw look at the data. |
| Browser | Google My Maps, TrailX Publish, gpx.studio | No install; TrailX analysis runs locally. |
| Android | An outdoor app via Open with | Google Maps cannot import GPX. |
| iPhone | Files → Share → outdoor app | Apple Maps cannot import GPX. |
When a GPX file won't open
Troubleshooting checklist
- Check the extension. Some downloads arrive as
.gpx.xmlor.txt. Rename the file so it ends in.gpx. - Check it's really GPX. Open it in a text editor. If it starts with
<kmlit's a KML file; if it starts with{it's likely GeoJSON. Convert it to GPX. - Check what it contains. A file with only
<wpt>entries shows pins, not a line. A file with only<rtept>may be ignored by apps that expect tracks. - Check for truncation. A file that doesn't end with
</gpx>was cut off during download. Download it again.