What is a GPX file? This is a common question asked by those new to digital applications in the great outdoors. Once, planning an adventure meant poring over paper maps and using past experience to estimate timings. This was an era when, on a hike, you might have pinpointed your location on the map by quickly scrawling a little circle on the green, dotted trail line. Afterwards, your only record of your route would have been your photos (once you'd got them back from being developed, of course), whatever you scrawled in your log book and the memories you took away from the hike.
Times have changed. At the planning stage, you can now plot your intended route on digital mapping applications that will estimate how long your trek will take, what kind of terrain your best hiking boots can expect to meet and how strenuous it will be. Once on the trail, you can track your location accurately using a GPS (Global Positioning System) unit or your phone (for more on these, check our out best GPS watches and best navigation apps). Afterwards, you can use the data gathered to analyse your performance, with information about almost everything at your fingertips, from elevation change to calories burnt.
It may not be as romantic as the traditional approach to an adventure, but this technology is making the outdoors more accessible to more people, and it’s here to stay. For many, a GPS application is a bona fide hiking essential. Crucial to this shift are GPX files.
What is a GPX file?
Fundamentally, GPX files contain GPS data that can be read and used by applications, GPS units, computer software and on the web. GPX stands for GPS Exchange Format file. If you open a raw GPX file, you will see lots of lines of code (written in a coding language known as xml) full of GPS coordinates and data points.
The code of a GPX file always consists of waypoints, routes and tracks. These geographic data points apply to a location and other information such as time, elevation and heart rate can be ascribed to them, depending on what application you are using to create the file. This is how Strava knows how fast your were going at a certain point in your run, or how AllTrails knows what your elevation was halfway through your hike. It's all captured in the code.
However, to use GPX files practically, you don’t need to be clued up on the intricacies of the code. You are much more likely to open a GPX file with mapping applications, where you will see a plotted route across the map along with other statistics and visuals, depending on the platform.
How can a GPX file be used before, during and after your adventure?
GPX is the gold standard file type for GPS navigation. It is used by almost everyone who manufactures GPS units (such as Garmin and Suunto), as well as hundreds, if not thousands, of web and phone applications (such as Google Earth, Google Maps, car navigation systems, camping apps and outdoor applications like komoot (opens in new tab), Alltrails (opens in new tab) and Strava (opens in new tab)).
You’ve undoubtedly created GPX files many times without knowing it. If you’ve been for a run or a hike and recorded your route using your phone, GPS device or smartwatch, you’ve created a GPX file. Apps like Garmin Connect, komoot and Strava provide a visual representation of the data for you to analyse and enjoy afterwards.
Some applications allow you to download the GPX file of your completed adventure so that you can share it with your friends, or even the world. If there’s a thru-hiking route or a circular hike you’ve been eyeing up for a while, the odds are that someone has already shared the GPX file on the internet. Better still, you can take their file and edit it for your own purposes.
This is because the best navigation apps today, such as the popular komoot, not only create a GPX file from your completed activities but also provide tools that allow you to plan a backpacking adventure on a digital map. By creating waypoints and plotting your route, you create a new GPX file, which you can return to and edit as many times as you please before the adventure.
Finally, once you’re on the adventure, you can use a GPS device or app to track your location against your plotted route. If you lose the trail, many GPS apps and units will recalculate the best route to get you back on track, just like when you’re driving and you deviate from your SatNav’s planned route. Some can even provide SatNav style voice instruction, although to be honest being told repeatedly to “do a U-turn!” just because I’ve gone to check out a secret waterfall that was off my planned route can be a little bit irritating.
However, as with most trail tech, the benefits of GPX files outweigh the negatives, changing the way we plan, explore and reflect on our time in the great outdoors.
Alex is a qualified Mountain Leader, adventure writer and content creator with an insatiable passion for the mountains. A Cumbrian born and bred, his native English Lake District has a special place in his heart, though he is at least equally happy in North Wales, the Scottish Highlands or the European Alps. Through his hiking, mountaineering, climbing and trail running adventures, Alex aims to inspire others to get outdoors. He is currently the President of the London Mountaineering Club, training to become a Winter Mountain Leader, looking to finally finish bagging all the Wainwright fells of the Lake District and hoping to scale more Alpine 4000ers when circumstances allow. Find out more at www.alexfoxfield.com (opens in new tab)
All the latest inspiration, tips and guides to help you plan your next Advnture!
Thank you for signing up to Advnture. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.