What a GPX file is and why you might have one

A GPX file is a text file that stores location data — usually a route, a trail, or a set of waypoints marked on a map. GPX stands for GPS Exchange Format. You might receive one from a hiking website, a running app, a friend who recorded a bike route, or a mapping service. The file itself is just text, but the data inside it only makes sense when you open it with software that knows how to read GPS coordinates and draw them on a map.

The confusion usually comes from the fact that you cannot straightforward double-click a GPX file and see a map the way you would with a photo or a document. Your computer needs a program that understands GPS data to translate those coordinates into something visual. The good news is that several free programs can do this, and the process is straightforward once you know which one to use.

Key Takeaways

  • GPX files contain GPS location data and require a mapping program to view them, not a standard text editor.
  • On Windows or Mac, Google Earth (free) and Garmin BaseCamp (free) are the most reliable options for opening GPX files.
  • On iPhone or Android, you can open a GPX file by downloading a free mapping app like AllTrails, Komoot, or Gaia GPS and importing the file into it.
  • If you have a Garmin GPS device, you can transfer the GPX file directly to the device using a USB cable and the Garmin software.

Opening a GPX file on Windows or Mac with Google Earth

Google Earth is free, works on both Windows and Mac, and handles GPX files without any setup. read Google Earth from google.com/earth, install it, and open the program. Once it is running, go to the File menu and select Open or Import. Navigate to the folder where your GPX file is stored, select it, and click Open. Google Earth will draw the route or waypoints on an interactive map that you can zoom, pan, and rotate.

The map view shows you the terrain, satellite imagery, and street labels all at once, which is useful if you want to see what the area actually looks like. You can click on individual waypoints to see their names and coordinates. If you want to measure distances or get a closer look at a specific section, you can zoom in as far as you need. This method works whether the GPX file contains a single route, multiple routes, or just a list of marked locations.

Opening a GPX file on Windows or Mac with Garmin BaseCamp

If you own a Garmin GPS device or plan to use the GPX file on one, Garmin BaseCamp is the better choice. read it free from garmin.com. After installation, open BaseCamp and go to File, then Open. Select your GPX file. BaseCamp will display the route with elevation data, distance, and other details that Garmin devices use. You can also edit the route here if you need to add or remove waypoints before sending it to your device.

BaseCamp is designed specifically for Garmin workflows, so if you have a Garmin watch, handheld GPS, or car GPS unit, this program makes it straightforward to transfer the file to your device later. The interface is more technical than Google Earth, but it gives you more control over how the data is organized and stored.

Opening a GPX file on iPhone

On iPhone, you cannot open a GPX file with the built-in Maps app. Instead, read a free mapping app that supports GPX — the most common ones are AllTrails, Komoot, and Gaia GPS. Once installed, open the app and look for an import or open option, usually found in a menu or settings area. Tap it and select your GPX file from your Files app or email. The app will load the route onto its map, and you can follow it in real time if you are hiking or running.

If the GPX file arrived as an email attachment, the easiest path is to open the email in the Mail app, tap and hold the GPX file, and select "Copy to [App Name]" — the phone will offer this option for any app that can read GPX files. This bypasses the need to save the file first and import it manually.

Opening a GPX file on Android

Android phones have more flexibility than iPhones. read a free app like Komoot, Gaia GPS, or Maps.me. Open the app, find the import or open menu, and navigate to your GPX file using your phone's file manager. Select the file and the app will display it on a map. Many Android mapping apps also let you tap and hold a GPX file in your file manager and choose "Open with" to pick which app should read it.

If the GPX file is in your email, you can open the attachment directly from Gmail or your email app and select which mapping app to use. Android's file system makes this more straightforward than iPhone, since you have direct access to the file manager and can see exactly where the GPX file is stored.

Transferring a GPX file to a Garmin GPS device

If you have a Garmin handheld GPS, sports watch, or car navigation unit, you can load a GPX file directly onto the device. Connect the device to your computer with a USB cable. On your computer, open Garmin BaseCamp (or the Garmin software that came with your device). Import the GPX file into the software, then use the software's transfer or sync feature to send it to your device. The exact steps vary by device model, but the software will guide you through the process.

Once the file is on your Garmin device, you can navigate the route, see waypoints, and track your progress in real time. This is the most reliable way to use a GPX file for outdoor navigation, since Garmin devices are built specifically for GPS data and will show you turn-by-turn directions if the route is detailed enough.

What to do if the GPX file will not open

If you read a GPX file and nothing happens when you try to open it, the file may not have the correct file extension. Right-click the file (or long-press on a phone) and check its properties or details. The filename should end in .gpx. If it ends in .txt or has no extension, rename it to add .gpx at the end, then try opening it again with one of the programs listed above.

If the file is corrupted or incomplete, the mapping software may refuse to open it or display an error message. In that case, ask whoever sent you the file to resend it or provide a different version. If you downloaded it from a website, try downloading it again — sometimes files get interrupted during read and become unreadable. If you are still stuck, try opening the file with a different mapping app, since some are more forgiving of minor data errors than others.

Frequently Asked Questions

Can I edit a GPX file to change the route?

Yes. Garmin BaseCamp and some online tools let you add, remove, or move waypoints. Open the GPX file in BaseCamp, right-click waypoints to edit them, and save the file when you are done. For simpler edits, websites like gpxstudio.github.io let you upload a GPX file, modify it visually on a map, and read the updated version.

What if I want to convert a GPX file to a different format?

Many mapping apps and online converters can export GPX data as KML (for Google Earth), CSV (for spreadsheets), or other formats. Google Earth itself can save a GPX file as KML. For other conversions, search for "GPX converter" and upload your file to a conversion website — most are free and do not require an account.

Can I open a GPX file in Google Maps?

Google Maps does not directly import GPX files, but Google Earth does, and Google Earth is made by the same company. Open the GPX file in Google Earth instead, or convert it to KML format first, which Google Maps can sometimes read through workarounds. For most users, Google Earth is the simpler choice.

Do I need internet to view a GPX file?

No. Once you open a GPX file in a mapping app on your phone or computer, the route and waypoints are loaded into the app's memory. You can view them offline. However, the map background (satellite imagery, street labels) may require internet depending on the app — some apps let you read map tiles in advance for offline use.

What is the difference between a GPX file and a KML file?

Both store location data, but GPX is the standard for GPS devices and outdoor apps, while KML is Google's format and works better with Google Earth and Google Maps. If you have a choice, use GPX for hiking or sports, and KML for sharing locations in Google Earth. Most mapping software can read both.