How to Edit GPX Files

Published on

Editing a GPX file can fix an inaccurate point, clean up a track or change a route name. The safe approach is to edit a copy and validate it on a map.

What can you edit in a GPX file?

GPX files contain geographic points and optional metadata, so the type of change depends on what the file includes. Common edits are fixing latitude or longitude, correcting elevation, moving route points, changing timestamps, renaming a route and adjusting file information such as its title or description.

For a general-purpose interface, open the GPX Editor . To focus on recorded tracks, use the GPX Track Editor ; to change a planned path, use the GPX Route Editor . These are different jobs, even though the files all use the .gpx extension.

Map showing editable points along a red GPX route

Edit a GPX file step by step

  1. Save a backup under a new filename before making changes.
  2. Open the file in an editor that supports GPX, then confirm the track or route appears in the right location.
  3. Select the relevant track, route, point or waypoint.
  4. Make one small change at a time. For geographic points, pay attention to latitude, longitude and elevation units.
  5. Download the edited GPX and reopen it in the GPX Viewer .
  6. Compare the changed line with the original before importing it into a GPS device.

The most common mistake is changing many points without checking the map. A single coordinate typo can create a long straight spike across the display, which can distort calculated distance and shape.

Editing tracks versus routes

A recorded track is usually a dense sequence of track points. Removing or relocating a point may remove a GPS jump, but could also erase a real detour. A route usually contains fewer navigational points and may be recalculated by the destination app. Editing a route line does not guarantee the same result once a navigation device processes it.

If you are uncertain which kind of data you have, read what a GPX file contains or check its structure in a viewer before choosing an editor.

Changing elevation and timestamps

Elevation in GPX is generally stored in metres. You should not replace it with a local height value without checking the measurement source or datum. A GPX with no elevation cannot acquire reliable altitude readings just by changing file format; it needs trustworthy elevation information from another source.

For recording times, the GPX Timestamp Editor can adjust time values where they exist. If your recording has a consistent time offset, a controlled shift may help; if times are missing, fabricated timestamps can create misleading pace or speed calculations. For learning how timing affects a file, see how to export GPX from Strava .

Editing names and descriptions

A GPX file may contain metadata such as a name or description, plus names associated with waypoints, routes or tracks. The GPX Metadata Editor is appropriate when the route shape is correct but its identifying information is not. Keep descriptions factual so future readers do not confuse a proposed route with a track you actually completed.

After editing: verify what was preserved

Open the output in at least one independent GPX viewer, especially if the edited file is meant for a different device. Check point count, start and finish, segment boundaries, elevation and dates. Some software ignores unsupported vendor extensions, and a conversion may remove fields not supported by the target format.

If your issue is a damaged XML file rather than incorrect geographic data, use the diagnostics in how to fix a corrupted GPX file before attempting edits.

Example: removing a GPS spike

Imagine a running track that follows a path but suddenly jumps several kilometres away and back. One bad latitude or longitude point can create two very long, artificial line segments. Instead of smoothing the entire file, locate the outlier on the map. Change or remove only that point, then compare the reported track distance before and after.

If the jump is caused by several poor GPS samples, deleting just one point may not help. Inspect neighboring points and the recording time so you know where the reliable portion resumes. A change that looks harmless on a zoomed-out map may erase an important turn when viewed closely.

Why file validation matters

A GPX can be perfectly valid XML yet describe an implausible journey. Technical validity means the file follows the expected structure; geographic accuracy means its points reflect a sensible location. Check both. For a route meant for another person, provide the file name, intended region and any known limitations rather than presenting it as a verified navigation track.

Frequently asked questions

Can I edit GPX without installing software?

Yes. Browser-based tools can process the GPX locally and download the edited copy. Interactive map backgrounds still need internet connectivity.

Will editing GPX change the original?

Not when you import it into EnjoyGPX and download a new file; keep the original as a backup until you verify the downloaded copy.