How Do You Make a GPX File Smaller?
Remove the points that do not change the shape of the line. A GPX file is plain text, and nearly all of its size is track points: about 130 bytes each when a point carries elevation and time. A recorder that writes one point every second leaves thousands of points along stretches of trail that a few hundred would describe just as well. Simplifying the track in the GPX Track Simplifier at a tolerance of 5 meters drops those redundant points and keeps the corners, switchbacks, and climbs, so the line looks the same on a map while the file shrinks to a fraction of its size. Trimming sections you do not need and leaving out unused sensor data reduce it further. Zipping makes a file smaller to send, but it does nothing for a device that limits how many points a track may hold.
Why GPX Files Get So Large

GPX stores every recorded position as a block of readable XML. Nothing is packed or abbreviated, so each point costs the same number of bytes whether it marks a hairpin or the middle of a straight road:
<trkpt lat="34.0501200" lon="-116.1503400">
<ele>1291.2</ele>
<time>2026-07-30T15:04:05Z</time>
</trkpt>
Written with the usual indentation, that point takes about 133 bytes. Multiply by the recording rate and the numbers add up quickly:
| Recording at one point per second | Points | Approximate file size |
|---|---|---|
| 1 hour | 3,600 | 0.5 MB |
| 4 hours | 14,400 | 1.9 MB |
| 8 hours | 28,800 | 3.8 MB |
| Three 8-hour days | 86,400 | 11.5 MB |
Those figures are for position, elevation, and time only. Heart rate, cadence, and temperature are stored in an extension block on every point, which more than doubles the bytes per point. At walking pace a one-second recorder writes a point every meter or two, far closer together than the few meters of error in the positions themselves.
When File Size Is Actually a Problem
- Device point limits. Handheld and motorcycle GPS units cap the number of points in a track or route. The limit depends on the model and on whether the line is a track or a route. Figures commonly quoted for Garmin handhelds are 10,000 points per track and 250 points per route, and some older units cut a saved track to 500 points. A unit given more points than it accepts often does not refuse the file. It loads the first part and stops, so the line ends partway along the trail.
- Upload limits. Sites that accept GPX uploads set a maximum file size. Strava, for example, takes files up to 25 MB.
- Slow maps. Phone apps and web maps redraw every point each time you pan or zoom. A track of 80,000 points makes a map sluggish where 2,000 points would draw the same line.
- Sending the file. Email attachments and messaging apps are easier with a file of a few hundred kilobytes than one of several megabytes.
If none of these apply, leave the file alone. A large GPX file on a computer costs nothing, and the original recording is the most complete record of the trip you will ever have.
Method 1: Simplify the Track
Simplifying removes points along the line and keeps the ones that define its shape. It is the method that makes the largest difference, and the only one that solves a device point limit.
- Load the file in the GPX Track Simplifier. It reports the tracks, routes, waypoints, and total points it found. Nothing is uploaded; the file is read in your browser.
- Choose a method. By Tolerance removes every point that sits within a set distance of the simplified line. By Point Count keeps the most important points up to a maximum for each track or route.
- Set the amount and watch the point count, the share removed, and the maximum deviation update.
- Check the map. The original is drawn as a wide grey band and the result as a thin red line. Zoom in on tight corners. Wherever the red line leaves the band, detail has been lost.
- Download the simplified GPX. The original file is not modified.
| Setting | Effect | Use it for |
|---|---|---|
| Tolerance 1–2 m | Removes redundant points only; the line is identical at any zoom | Shrinking a file with no visible change |
| Tolerance 5 m | Removes detail smaller than typical consumer GPS error | A sensible default for hiking, riding, and driving |
| Tolerance 10–25 m | Rounds off small wiggles; tight switchbacks begin to straighten | Long trips, overview maps, sharing online |
| Point count | Keeps the most shape-defining points up to your limit | A device or app with a fixed point limit |
The tool uses the Douglas-Peucker algorithm, the standard method for simplifying lines on maps. It draws a straight line from the first point to the last, finds the point furthest from that line, keeps it if it is further away than the tolerance, and repeats on the two halves. Points on straight stretches go and points at corners stay. For a device limit, look up the figure in the unit's manual and enter it as the point count; the result table then shows the deviation that limit works out to.
Method 2: Cut Out What You Do Not Need
Many recordings contain sections nobody will follow: the drive to the trailhead, a lunch stop, a night at camp with the recorder left running. A stationary GPS does not record one point. It records a knot of points that wander a few meters around the same spot for as long as it sits there. Removing these sections in the GPX Editor shortens the file and cleans up the distance figure at the same time. The guide to splitting and trimming GPX tracks covers the steps. Trim first, then simplify what is left.
Method 3: Leave Out Data You Will Not Use
A track meant for navigation needs positions and little else. The file the simplifier writes is clean GPX 1.1: every point it keeps carries its elevation, timestamp, heart rate, cadence, temperature, and speed, while other vendor extensions and file-level details such as author and links are left out. If you need second-by-second fitness data, keep the original for analysis and use the smaller copy on the device.
Method 4: Zip It for Sending
GPX is repetitive text and compresses to roughly a tenth of its size in a .zip archive. That solves an email attachment limit without removing a single point. It does not solve anything else: the person at the other end has to unzip the file before most apps and devices will open it, and the track inside still has every point it started with.
What Does Not Help Much
- Stripping whitespace. Indentation and line breaks are about a quarter of a typical file. Removing them saves that quarter and makes the file hard to read, and the point count is unchanged.
- Trimming decimal places. Cutting coordinates from seven decimals to five saves about 3% and limits positions to steps of roughly a meter.
Neither changes how many points a device has to load, which is the limit that matters most.
What Simplifying Changes
- Distance drops slightly. Cutting corners can only make a line shorter. The simplifier's result table shows the distance before and after.
- Elevation gain can drop more. A climb along a straight stretch has no corners to keep. Leaving Keep elevation profile ticked measures deviation in three dimensions, so summits, saddles, and changes of grade are kept along with the turns. The guide to GPS elevation accuracy explains why gain depends on how many points are measured.
- Time resolution gets coarser. Start time, end time, and duration are unchanged because end points are always kept, but speed and sensor readings are recorded at wider intervals.
Frequently Asked Questions
How many points does a GPX track need?
There is no fixed number. A straight desert road needs a handful of points per kilometer and a switchback trail needs dozens. Set a tolerance and let the shape decide, or enter your device's limit as a point count and check that the maximum deviation is acceptable.
Does simplifying make the track less accurate?
At a tolerance of a few meters, no more than the recording already is. Consumer GPS positions are typically good to a few meters under open sky, so detail smaller than that is mostly noise. Larger tolerances do remove real shape, which is why the map comparison is worth a look before you download.
Why does my GPS show only the first part of the track?
The track probably has more points than the unit accepts, and it kept the first ones. Simplify by point count to the unit's limit and load the file again.
Is a route smaller than a track?
Usually, because a route lists only the points you navigate between and the device works out the line. They are different things, though, and a route does not record where you went. The simplifier reduces routes with the same setting as tracks unless you untick Simplify routes too.
Can I get the removed points back?
Not from the simplified file. Removed points are not stored anywhere in it. The tool never changes the file you loaded, so keep that original.