About This Tool
GPX Track Compare is a free browser tool that overlays two GPX tracks on one map and reports where they differ. Load a plan and the track that was actually ridden, two riders' logs of the same stage, or two recordings of the same trail. The tool measures how far every point of each track is from the other track, lists each stretch where track B leaves track A and each part of track A that track B never covers, and gives the start, end, length, and largest separation of every one. It also tells you how much of each track matches the other. An optional waypoint file is drawn on the same map, with the same waypoint icons and colors the GPX Analyzer uses. Nothing is uploaded; both files are read and compared entirely in your browser.
How to Use It
- Load track A. This is the reference: the planned route, the course, or the first recording. A file with a track is read as that track; a file with only a route is read as the route.
- Load track B. This is the track to compare with it.
- Add a waypoint file if you have one. A GPX file of waypoints or a CSV list is drawn on the map. Without one, any waypoints inside the two track files are shown.
- Set the tolerance. Two tracks closer together than this are treated as the same line. 25 meters suits most recordings; lower it for careful work, raise it for a rough comparison.
- Read the summary and the map. Track A is the wide blue line and track B the thin red one. Stretches that differ are drawn bold.
- Go through the differences. Select a row in the list to zoom the map to that stretch, or click a bold stretch on the map to find its row. Download CSV saves the list.
What the Results Mean
| Result | What it means |
|---|---|
| Track B leaves track A | A stretch of track B that is further than the tolerance from every part of track A: a detour, a wrong turn, a different line |
| Part of track A not on track B | A stretch of track A that track B never comes near: a section that was skipped or cut short |
| Matches the other track | The share of a track's length where it runs within the tolerance of the other track |
| Length that differs | The rest of the track's length |
| Furthest from the other track | The largest distance from any point of this track to the other track |
| Typical distance (median) | Half the points are closer to the other track than this. For two recordings of the same trail it shows how well they agree |
A detour usually shows up twice: once as the stretch where track B went its own way, and once as the part of track A it missed by doing so. A shortcut shows the same pair. The two lengths differ, which is the point: together they say how far each line ran between the place the tracks parted and the place they met again.
Choosing a Tolerance
| Tolerance | Use it for |
|---|---|
| 10 m | Two good recordings in open country, when the side of the trail or the line through a junction matters |
| 25 m | The default. Wide enough that ordinary GPS error on both tracks does not register, narrow enough to catch a wrong fork |
| 50–100 m | Tracks recorded in canyons or forest, sparse logs, or a comparison where only real route changes matter |
| 250 m and up | A recorded track against a planned route drawn with few points |
Ignore differences shorter than keeps brief excursions, such as a stop beside the trail or a single stray position, out of the list. They are still counted in the totals.
Frequently Asked Questions
How is the distance between the tracks measured?
For each recorded point of one track, the tool finds the nearest place on the other track. That place can lie between two recorded points, on the straight line joining them, so two logs of the same trail with different recording intervals still measure as close together. Lines are never drawn across the gap between two track segments.
Which file should be track A and which track B?
Make A the one you are measuring against: the plan, the official course, or the reference rider. The comparison itself runs both ways, and Swap A and B exchanges them without reloading.
Does the direction or time of travel matter?
No. The comparison is of position only. A trail ridden in the opposite direction, or on a different day, matches the original wherever the two lines coincide. Where a track has timestamps, the list shows the time at which each difference began, so you can find the moment in the recording.
Can I compare a recorded track with a planned route?
Yes, with a caveat. A route is a list of turning points, and the tool compares against the straight lines between them. If the route was drawn with a point every few hundred meters, a track that followed the road faithfully will still sit some distance from those straight lines. Raise the tolerance, or use a route exported as a detailed track.
Can I see who was faster over a section?
Not in this tool. It compares where two tracks went, not how long they took. The GPX Analyzer reports duration, moving time, and speed for one track at a time.
What waypoint files can I add, and how are they drawn?
A GPX file, in which every waypoint is used, or a CSV file with a header row naming latitude and longitude columns and, optionally, a name. Each waypoint is drawn as a colored badge with the icon for its symbol, the same set the GPX Analyzer and the MyGPSWaypoints app use; a waypoint with no symbol, or one the set does not include, gets the gold pin. Select a badge for the waypoint's name, description, and coordinates. With more than 500 waypoints they are drawn as colored dots to keep the map responsive.
What if a file holds several tracks?
All the tracks and segments in a file are compared as one line. To compare a single track out of several, split it out first with the GPX Editor.
Why are two recordings of the same trail a few meters apart?
Because every GPS position carries a few meters of error, and two receivers, or one receiver on two days, do not make the same error. The typical distance in the summary shows how large the disagreement is. See our guide to GPS accuracy for what drives it.
Is my file uploaded anywhere?
No. The files are read and compared by JavaScript in your browser. The map loads background tiles from OpenStreetMap, but your tracks and waypoints are never sent anywhere.
What are the limits?
Each file must be under 25 MB. Track files must be .gpx; the waypoint file can be .gpx or .csv.
Related Tools
To check whether a track passed inside the clear radius of each course waypoint, use the Waypoint Clearance Checker. The GPX Analyzer gives distance, time, speed, and elevation for one track. To put two recordings into one file instead of comparing them, use the GPX Merger, and to build or correct the waypoint file, the GPX Waypoint Editor.
Learn More
GPS Accuracy Explained
Why two recordings of one trail never match exactly
Roadbook Navigation Basics
How a course is navigated, and how to review a stage afterward
Rally Waypoints Explained
Waypoint types, open and clear radius
GPX File Basics
Tracks, segments, routes, and waypoints inside a GPX file
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.