Reverse a GPX route in your browser
This tool flips a GPX route so you can follow it in the opposite direction — the classic case being an out-and-back walk or ride where you want a clean return file. It is built for anyone who recorded a one-way track and needs the reverse without re-walking it.
How it works
The GPX is parsed with the browser’s DOMParser and all trkpt track points are
collected in order, then the order is reversed so the last point becomes the
first. Waypoints are reversed too. Each point keeps its lat, lon and ele, so
elevation naturally flips from climb to descent. Because reversing leaves the original
time stamps out of order, an optional re-time mode rewrites the timestamps so
they increase from a start time you choose, preserving the spacing between consecutive
points so the moving profile still makes sense.
Notes
Everything runs locally — nothing is uploaded. If you only need to follow the route on a map, plain reversal is enough; enable re-timing only when your device or app insists on monotonic timestamps.