GPX Track Editor
Operator: Abdulla Al Fahad. How tools are built and checked
A recorded track rarely goes straight to a good upload. A GPS fix that jumps a few kilometres, a warm-up you do not want to share, two files from one ride, or a house at the start of the route all need editing first. This editor shows distance, climb and moving time before and after each edit, so a filter's effect is a number and not a guess. It opens GPX, TCX and FIT files and writes GPX 1.1 that keeps heart rate, cadence and temperature, with power in its own element.
Key features
- Trim by time or by distance, split at a point, merge several files in time order, delete a range, reverse, rename and shift time
- Speed-spike filter that drops points implying a speed above the limit you set
- Douglas-Peucker simplification with the tolerance in metres
- Privacy zones that remove every point within a chosen radius of a place, such as the start, the end or a latitude and longitude
- An elevation profile and a canvas map, with OpenStreetMap tiles only if you tick the option, and statistics for distance, gain, loss and moving time before and after
What each edit changes in the track and its statistics
GPX tracks, routes and waypoints are read, with Garmin TrackPointExtension values for heart rate, cadence and air temperature, and power from a power element. TCX trackpoints are read the same way, and FIT records that carry a GPS position are decoded with the same reader as the FIT analyzer on this site; an indoor FIT file with no positions is reported as having no track. Files up to 60 MB and 600,000 points open.
The output is GPX 1.1 with one trk per track and the gpxtpx namespace declared. Heart rate, cadence and temperature go inside gpxtpx:TrackPointExtension, and power is written as a plain power element inside extensions, which not every service reads. Distance is the sum of great-circle steps. Gain and loss are summed from elevation changes, which makes them noisy: a GPS altitude that wobbles by a metre or two every second adds climb that was never there, so compare gain between two edits of the same track rather than against a barometric device. Moving time counts only the intervals where the speed passes a small threshold. Track names are escaped, so a name containing & or quotes stays valid XML.
How it works
The spike filter walks the track and drops a point when the speed from the last kept point to it exceeds the limit. A single outlier is removed without taking its neighbours with it, because the next point is compared against the last good one.
Simplification keeps the points farthest from the straight line between kept neighbours until none is farther than the tolerance. It runs on an explicit stack, so a 200,000-point zig-zag does not overflow it. Heart rate and power of the kept points are unchanged; those of removed points are gone.
Merging orders the files by their first timestamp, reports when they overlap in time, and refuses to guess an order for files that have no times.
Common use cases
- A runner uploads a trail run where a tunnel produced a jump. Filtering at 25 km/h removes the jump and the elevation gain drops by the false climb it caused.
- Someone sharing a route publicly cuts a zone around the house so the first and last points are not published. They choose a radius larger than the usual 200 m, because a track that stops exactly at the zone edge shows the home as the centre of the gap.
How to use this tool
- Drop one or more GPX, TCX or FIT files, or choose Load example.
- Read the statistics, then apply an edit: spike filter, trim, split, simplify or a privacy zone.
- Check the before and after numbers and the map.
- Download the GPX.
Example
Load example: Morning loop, 241 points, every 5 seconds from 06:30 UTC
Original: 17,588 m, gain 41.3 m
Speed filter at 50 km/h
Simplify at 5 m
Privacy zone 200 m around the startAfter each step
Spike filter: 1 point removed, distance 4,215 m
Simplify 5 m: 207 more points removed, 33 left, 4,208 m
Privacy zone: 24 points removedCommon pitfalls
A privacy zone removes the points inside it, so distance and time shrink, and the straight line left between the points either side of the gap is not a real path.
A privacy zone hides the points, not the fact that there is a gap. If every track you share starts and stops at the zone's edge, the centre of that circle is easy to estimate. Use a larger radius than you think you need, and where it matters trim the first and last stretch yourself or centre the zone on a point that is not your front door. The zone is a reduction in what a file reveals, not a promise that the address cannot be worked out.
Tiles are fetched from tile.openstreetmap.org when switched on, and those requests reveal the area you are viewing; leave them off for private tracks.
A route or waypoint file without times cannot be merged by time, trimmed by time or shifted, and its speed statistics are blank.
Simplifying heavily changes distance: the example's 25 m setting leaves 17 points and 4,188 m.
- The privacy zone accepts the words start or end, so you can cut both ends without looking up coordinates.
Common errors and how to fix them
- "This FIT file has no records with a GPS position"
- The activity was recorded indoors or with GPS off. There is nothing to map; use the FIT analyzer for the sensor data instead.
- "... could not be read as GPX"
- The file is not well-formed XML, or it is a different format with a .gpx name. Open it in the XML validator on this site to find the line.
- Merge reports that the files overlap in time
- The tracks were recorded at the same time, for example by two devices. The merged track interleaves their points by timestamp; delete one device's points first if you want a single path.
Best practices
- Run the spike filter before simplifying, so the outlier cannot become one of the kept points.
- Keep an unedited copy; trimming and zones cannot be undone once the file is saved.
Merging several files
Files are ordered by their first timestamp. When two tracks overlap in time the page says so, and when the files carry no times it keeps the order you added them in and warns that the join is a guess.
Time shifts and reversing
Shifting accepts a signed duration such as -1:30:00 or +90 seconds and moves every timestamp by it, for example to fix a device whose clock was set to the wrong zone. Reversing flips the point order and mirrors the timestamps so time still runs forward along the new direction.
Frequently asked questions
How does this differ from geotagging photos with a GPX file?
The geotagging page matches photo times to a track and leaves the track alone. This one changes the track itself.
When should I use GPX to CSV or the FIT analyzer instead?
GPX to CSV turns a track into a table of points for a spreadsheet and does not edit it. The FIT analyzer reads a FIT file's sensor data, laps and power, which this editor mostly passes through. Use this page when the output has to be a cleaner GPX file.