Field Tools

GPX Track to Route

Turn a recorded track into a route with the number of points your GPS accepts, and see how closely it follows the original

About This Tool

GPX Track to Route is a free browser tool that turns a recorded track into a route. A track is a breadcrumb trail of thousands of points; a route is a short list of points a GPS unit navigates between, and most units limit how many a route may have. This tool picks the points that hold the track's shape, the corners and bends, and writes them as a route. You set the most points a route may have, and choose whether each track is reduced to fit in one route or kept closer to its shape and cut into several routes that each fit. The map shows the route over the original track, and the result says how far the track strays from the route at the setting you chose. Nothing is uploaded; the file is read and converted entirely in your browser.

How to Use It

  1. Load your GPX file. Drag and drop a .gpx file that holds a track, or click to browse. The tool reports the tracks, segments, points, and waypoints it found.
  2. Set the point limit. Enter the most points your device accepts in one route, or click a preset.
  3. Choose how to meet it. Fit in One Route reduces each track until it fits. Split to Keep the Shape holds the route within a tolerance of the track and cuts it into as many routes as that takes.
  4. Check the map. The track is the wide grey band, the route the thin line, and each route point a dot. Where the line leaves the band, a corner has been cut.
  5. Pick what the route points carry: elevation, timestamps, numbered names, and whether the file's waypoints come along.
  6. Download. Click Download Route GPX. Your original file is never modified.

How Many Points Should a Route Have?

As many as your device allows, when the goal is to follow a particular line. The limit depends on the unit and on how it is set to navigate, so the figure to enter is the one in your device's manual. These are the figures most often quoted:

SettingUse it for
50 pointsUnits that follow roads between route points, which commonly accept far fewer points than they do for straight-line navigation
250 pointsThe limit commonly quoted for a route on Garmin handhelds navigating in straight lines between points. The default here
500–1,000 pointsApps and newer units with higher limits, or none

If the route cuts too many corners at your device's limit, switch to Split to Keep the Shape. A long day then becomes two or three routes to follow in turn, each within the limit.

Frequently Asked Questions

What is the difference between a track and a route?

A track records where someone went: a dense line of points, usually with a time on each. A route says where to go: an ordered list of points to navigate between, which the device joins with straight lines or with its own choice of roads. A track is a record and a route is an instruction. GPX File Basics covers both.

How does it choose the route points?

With the Douglas-Peucker algorithm, the standard method for simplifying lines on maps. It ranks every point by how much the line would change without it. Points at corners rank high and points along straight stretches rank low. The tool keeps the highest-ranked points up to your limit, and the first and last point always.

What does "the track strays up to" tell me?

It is the largest distance from any point of the original track to the route that replaces it, measured against the straight leg between the two route points on either side. If it says 40 meters, no part of the recorded track is more than 40 meters from the route line.

When should I split the track into several routes?

When one route at your device's limit is not detailed enough: a long day on twisting trail reduced to 250 points can cut switchbacks by hundreds of meters. Splitting holds the route within the tolerance you set and makes as many routes as needed. Each route starts on the point the previous one ended on, and they are named in order, such as "Day 2 (1/3)".

Why does my GPS take a different way than the route line?

A unit set to follow roads calculates its own path between each pair of route points, and that path may not be the one you rode. More route points leave it less room to choose. Units that offer direct or off-road routing draw straight lines between the points, which is what the map here shows.

What happens to the gaps between track segments?

A route has no segments, so the segments of a track are joined in order and each gap becomes a straight leg. The tool tells you when a file has more than one segment. To leave a section out, cut it first with the GPX Editor.

What if the file holds several tracks?

Each track becomes its own route, named after the track. Tick Join all tracks into one route to make a single route that runs through them in file order.

Are elevation and timestamps kept?

Elevation is kept on the route points unless you untick it. Timestamps are left out by default, because a route describes a path to follow and not a past trip, and some devices handle route points with times poorly; tick Keep timestamps if you want them. Number the route points names each one RP001, RP002, and so on, for devices that list route points by name.

What happens to waypoints and existing routes?

Waypoints are copied to the new file with their name, description, symbol, and elevation unless you untick Include waypoints. Routes already in the file are not copied, and the original track is not included: the download holds the new routes and the waypoints.

Does it follow roads or trails?

No. The route points are taken from your track, exactly where it was recorded. Nothing is moved onto a road or a trail from a map.

Is my file uploaded anywhere?

No. The file is read and converted by JavaScript in your browser, and the new GPX is generated on your device. The map loads background tiles from OpenStreetMap, but your track is never sent anywhere.

What are the file limits?

Files must be .gpx and under 25 MB. Points with invalid or out-of-range coordinates are skipped.

Related Tools

To reduce the points in a track and keep it a track, use the GPX Track Simplifier. Waypoints to Track does the reverse job of connecting separate points into a line. To put several days into one file before converting, use the GPX Merger, and to check the result on a map with its distance, the GPX Analyzer, which draws routes as dashed lines.

Learn More

Request a Feature

Have an idea that would make this tool better? Post it on the feature request board and vote on what gets built next.