About This Tool
GPX Reverse is a free browser tool that turns the tracks and routes in a GPX file round, so that each one runs from where it ended to where it began. Load a file, tick the tracks and routes you want reversed, and download the result. Every point is moved whole, with its elevation, heart rate, and any other data it carries. Waypoints are kept exactly as they are, and so is everything else in the file. Because a reversed recording would run backward in time, you choose what happens to the timestamps: remove them, rewrite them so the reversed track runs forward, or keep them. A map shows the result with arrows along each line. Nothing is uploaded; the file is read and reversed entirely in your browser.
How to Use It
- Load the file. Drag and drop a .gpx file, or click to browse. Every track and route in it is listed, with its points and its length.
- Choose what to reverse. Everything starts ticked. Untick a track or a route to leave it as it is.
- Decide about the timestamps. Remove suits a line you mean to follow. Rewrite keeps a recording usable as an activity. Keep leaves them alone. The choice appears only when the file has timestamps.
- Set the order and the names. With more than one track you can put them in the opposite order as well, so a trip saved as a track a day runs backward from its last day. Leave the box ticked to add “(reversed)” to each name.
- Check the map. Arrows show the new direction; the green mark is the new start and the red mark the new finish.
- Download. The file is saved with _reversed added to its name. Your original is not changed.
What Is Reversed and What Is Kept
| In the file | What happens |
|---|---|
| Track points | Put in the opposite order within each segment. Each point keeps its elevation, sensor data, and extensions |
| Track segments | Put in the opposite order within the track, so the gaps between them fall in the same places |
| Route points | Put in the opposite order. Each keeps its name, symbol, and notes |
| Garmin route subpoints | Moved to the route point that now starts their leg, and put in the opposite order |
| Timestamps | Removed, rewritten, or kept, as you choose |
| Waypoints | Kept exactly as they are |
| Track and route names | Kept, with “(reversed)” added if you leave the box ticked |
| Metadata, comments, layout | Kept exactly as they are |
Frequently Asked Questions
Why would I reverse a GPX file?
To follow a route in the opposite direction. A recorded ride from A to B becomes a line to follow from B to A; a downloaded route that starts at the far trailhead can start at yours. Many GPS units and apps guide you along a line in the order its points are written, so the order has to match the way you are going.
What happens to the waypoints?
Nothing. A waypoint is a place with no direction, so every waypoint is kept as it is and included in the download.
What is the difference between reversing a track and a route?
A track is a recording, made of segments of points; reversing it turns both the segments and the points within them round. A route is a list of points to pass through; reversing it puts that list in the opposite order. The tool does both, and a file may hold either or both.
What should I do about the timestamps?
If you only want to follow the line, remove them: a route to follow needs no times. If the file has to pass as an activity, on a site that will not accept one without times, choose Rewrite. Each reversed track then starts and ends when the original did, and every interval is mirrored: the hour you spent on the last climb becomes the first hour. Keeping them as they are leaves the times running backward, which some apps refuse.
Does it keep heart rate, cadence, and elevation?
Yes. Each point is moved as a whole, so everything written inside it goes with it. After Rewrite the sensor readings still belong to the places where they were recorded.
My route's points have instructions in their names. Are those fixed?
No. Names and notes stay with their points, so “Turn left at the fork” will still say left when the turn is now a right. A route planner will write new instructions if you load the reversed route into it and calculate again.
What does it do with a Garmin route?
Routes saved by Garmin software often store the detailed path from each route point to the next inside that route point. When the route is reversed, each of those paths is moved to the point that now begins its leg and turned round, so the path between two route points stays the path between those two points. The device may still calculate the route afresh when you load it.
Can I reverse only one of several tracks?
Yes. Untick the ones to leave alone. They stay in the file as they were.
Will reversing it twice give me the original file?
If you keep the timestamps and leave the names alone, yes: reversing the reversed file gives back the original, character for character. The same is true with Rewrite.
Does it change the file's distance or elevation gain?
The distance is the same. Climb and descent change places: what was 800 meters up is now 800 meters down. The GPX Analyzer will show both.
Is my file uploaded anywhere?
No. The file is read and reversed by JavaScript in your browser. The map loads background tiles from OpenStreetMap, but your file is never sent anywhere.
What are the file limits?
Files must be .gpx and under 25 MB.
Related Tools
To cut a track down before reversing it, use the GPX Editor; to join several first, the GPX Merger. GPX Track to Route turns a recorded track into a route a GPS will accept, and can reverse it in the same step. For a printed list of the turns in the new direction, use the GPX Cue Sheet Generator, and to check the climb you now face, the GPX Analyzer.
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.