• Cycling
  • Gear guides
  • Walking

What is a GPX file?

By Jonathan Elder

Published on 5 min read

begwalkinghero.d635ad0f1f03d16ac80ae9884a3c9df0

In any discussion of routes, navigation or GPS devices, you have probably seen people mentioning ‘GPX files’. GPX is shorthand for GPS eXchange Format and is a type of file that’s really helpful to anyone who loves the outdoors, plus it’s the most popular way of saving and exchanging routes.

What’s in a GPX file?

You can open a GPX file in any text editor, and you’ll get something like the image below. While this looks complex, all most people need to know is that it is a list of precise locations, in order, that make a up a route for walking, running, cycling or any other activity. This route can then be displayed on top of a map for printing or following on screen.

A screenshot of a GPX file

Using a GPX file – with a mapping application

If you use a mapping application such as OS Maps, you can use a GPX file to follow routes created by others, or to create your own routes for saving or sharing.

Create a route from a GPX file by first saving the file on to your hard drive or USB stick. You can then import the route. Look for an option labelled ‘Import Route’ or ‘Import GPX file’. You then should be able to see the exact planned route on screen, allowing you to review, print or edit as needed.

Create a GPX file from a route by drawing the route on screen. You will be able to export the route as a GPX file and import it into a different mapping application or to a GPS. As it’s a simple text file, you can also easily email it to others. Even if they use a totally different mapping application or different brand of GPS, they should still be able to open it.

Using a GPX file – with a GPS Device

Most GPS devices designed for outdoor sports and navigation can both create and use GPX files. The great thing about the universal nature of a GPX file is that different brands of device, with different maps loaded can all use the same GPX file.

Use an existing GPX file by loading it on to the device. Check your manual for details, but this normally means connecting the device to your computer by USB cable or Bluetooth, then sending the file to the device. Some devices will also automatically sync to routes imported from GPX files into a desktop or web based app. The new route will then appear in the saved routes list on the device, and when active you will be able to follow it. Basic devices without on-screen mapping will generally just show an arrow to point to the next ‘waypoint’ (usually the next turning or fork) while more advanced ones will display the route on a map as well.

Create a GPX file by activating the ‘Record Trail’ or similar function. Every few seconds the GPS device will log where you are, and at the end of your trip the file can be exported back to your computer, usually by connecting it via a cable or Bluetooth and finding the file in the memory. You can then load the file into your favourite mapping application to check the distance covered, time taken and altitude profile, or share it with your friends or online.

OS Maps being used on a mobile device

What else is a GPX file good for?

GPX files can contain a time for each point and therefore the route as a whole. This is really useful for comparing your performance with your previous best or with others and is a favourite of runners and cyclists.

Miniature GPS loggers can be attached to wildlife and pets. These create GPX files and can be used to understand more about animal behaviour – or just to find out where your cat is getting its second dinner from.

Technical stuff…

GPX files are a type of XML file initially designed for use by GPS devices, but now used more widely for exchanging route information between different devices and systems. There is an official schema currently at version 1.1 that describes how GPX files should be constructed.

Most of the problems with GPX files come from sources which add additional information that is not compatible with all devices that can use GPX files, or GPS files that contain a very large number of individual points.

This mean that you cannot open a GPX file created in certain systems in another. There are some desktop and online tools that will try to tidy the files, and there is always the option of manually editing them using a plain text editor, such as Notepad in Windows or TextEdit on Mac to strip out the offending parts.


Download OS Maps to discover more walks near you, or plot your own with a 7-day free trial of OS Maps, on us!

Liked by 1 users

By Jonathan Elder

Jonathan helps run the OS Shop and GetOutside, and in his free time can be found walking, playing computer games or, in the winter, falling off mountains with a plank of wood strapped to his feet.

EXPLORE WITH

Digital Maps

Use OS Maps to see more detail including footpaths, bridleways, cycle tracks and rights of way.

Use world-renowned Ordnance Survey mapping with unlimited use of every OS Explorer and OS Landranger map for the whole of Great Britain. That’s instant access to 607 maps to view, print, or download to your phone – all included in your subscription.

Launch OS Maps
digital-maps-2

EXPLORE THE

OS Shop

Use OS Maps to see more detail including footpaths, bridleways, cycle tracks and rights of way.

Go to the shop
os-shop-2