Trail Notes

How to View a GPX File

Nothing on your computer opens a .gpx file by default. Five ways to see what is inside one, starting with the quickest.

Basics Reading time: 6 minutes Updated By the GPX Analyzer project

How Do You View a GPX File?

Drop it onto a GPX viewer in your browser. The free GPX Analyzer & Viewer draws the track, routes, and waypoints on an interactive map and lists the distance, elevation, and times, without installing anything and without uploading the file. Neither Windows nor macOS comes with a program that opens a .gpx file, which is why double-clicking one usually does nothing useful. The other common options are Google Earth Pro on a desktop, which opens GPX directly; Google My Maps, which imports GPX and shows it in Google Maps; and Google Earth on the web, which needs the file converted to KML first. A GPX file is also plain text, so any text editor shows what is inside it.

Which Viewer to Use

View from a rocky desert overlook of a single sandy trail winding across the valley floor toward distant mountains, visible along its whole length

ViewerOpens GPX directly?Best for
Browser viewer (GPX Analyzer)YesA quick look, statistics, and an elevation profile; nothing installed, nothing uploaded
Google Earth Pro (desktop)YesSatellite imagery and 3D terrain
Google Earth (web and mobile)No; convert to KML3D terrain without installing the desktop program
Google My MapsYesSeeing the track in Google Maps and sharing a link
A phone navigation appDepends on the appFollowing the track in the field
A text editorYesChecking names, times, and what the file contains

Method 1: In Your Browser

  1. Open the GPX Analyzer & Viewer.
  2. Drag the .gpx file onto the drop zone, or click it to browse. Files up to 25 MB are accepted.
  3. Look at the map. Tracks are drawn as solid lines, routes as dashed lines, and waypoints as pins with an icon for their symbol.
  4. Click a name in the track, route, or waypoint list to move the map to it and highlight it.
  5. Read the figures and charts: distance, elevation gain, start and finish times, moving time, speed, and profiles of elevation, speed, and any sensor data.

The file is read by your browser and never sent to a server. The only network requests are for the map's background tiles. That matters for a recording that starts at your front door.

Method 2: Google Earth Pro

Google Earth Pro, the free desktop program, opens GPX files itself.

  1. Choose File > Open and select the .gpx file. Set the file-type filter to "Gps" if the file does not appear.
  2. In the import dialog, keep Create KML Tracks ticked to retain the time data.
  3. The track appears in the Places panel and the view flies to it. Tilt the view to see it against the terrain.

Method 3: Google Earth on the Web

The browser and mobile versions of Google Earth do not read GPX. They import KML and KMZ files. Convert the file first:

  1. Load the .gpx file in the GPX Converter and choose Export as KML.
  2. In Google Earth, create or open a project and import the .kml file from your computer.

The line and the waypoints carry over. Per-point timestamps and sensor data do not, because a standard KML line stores coordinates only. How to Convert GPX to KML lists exactly what survives.

Method 4: Google Maps, by Way of My Maps

Google Maps cannot open a GPX file. Google My Maps, its companion for custom maps, can, and a map made there shows up in Google Maps.

  1. Open Google My Maps and create a new map.
  2. Under the first layer, choose Import and select the .gpx file.
  3. The track and waypoints are added as a layer. The map is saved to your Google account and can be opened from your saved maps in the Google Maps app.

My Maps limits the size of an import and the number of features in a layer, so a long one-second recording may be refused. Reducing the file's point count first usually solves that. Remember that this route does upload the file to your Google account.

Method 5: A Text Editor

Open the file in Notepad, TextEdit, or any code editor. You will see readable XML: a header, then waypoints, routes, and tracks, each point with a latitude and longitude and often an elevation and a time. This is the quickest way to answer questions a map cannot: what the track is called, what date it was recorded, whether it has timestamps at all. GPX File Basics explains each element.

What to Check Once It Is on the Map

  • The start and the end. A line that begins on a highway or ends in a parking lot includes the drive. Trim it before sharing or following it.
  • Long straight segments. A dead-straight line across terrain no one could cross is a gap in the recording: a paused recorder or a lost signal.
  • Spikes. A sudden jump away from the trail and back is a bad position fix, not a detour.
  • The waypoints. Pins should sit on or near the line. A pin in the next valley was placed by hand from imagery or carries a typo.
  • The counts. One track when you expected three, or no waypoints when you were promised twelve, means the file is not the one you think it is.

When the File Will Not Display

What happensLikely causeWhat to do
The viewer reports an errorThe XML is damaged, often a recording cut off mid-writeCheck it in the GPX Validator; recover it with GPX Repair
It opens but no line is drawnThe file holds only waypoints, or a route and no trackLook at the file summary for what it contains; some apps import only one kind
The track is in the wrong countryLatitude and longitude are swapped, or a sign was lostSee latitude and longitude formats
The track is offset by a constant distanceThe coordinates are on a different datumSee Datum 101
The import is refused as too largeToo many points for the service's limitReduce them with the GPX Track Simplifier

Frequently Asked Questions

Can Google Maps open a GPX file?

Not directly. Import the file into Google My Maps and the resulting map can be viewed in Google Maps. To follow a track offline in the field, a dedicated navigation app is the better tool; see Using GPX Files on Your Phone.

What program opens a GPX file on Windows or a Mac?

Neither system includes one. Use a browser viewer, install Google Earth Pro, or open the file in a text editor to read it as XML.

Can I view a GPX file on my phone?

Yes. A browser viewer works on a phone for a look at the map and the figures. To navigate with the file, import it into a navigation app that supports offline maps.

Is it safe to view a GPX file online?

It depends on the viewer. Some upload the file to a server to process it. The GPX Analyzer reads the file in your browser and uploads nothing. A GPX recording can show where you live and when you are away, so it is worth knowing which kind you are using.

How do I see the elevation profile?

Load the file in the GPX Analyzer and scroll to the charts. Creating Elevation Profiles from GPX Data explains how to read one.

Why is my track a few straight lines instead of a trail?

The file probably holds a route, which lists only the turning points, or a track that has been thinned heavily. A recorded track that follows the trail has a point every few meters.

Related Tools and Guides