Compress a GPX File
Load a GPX file, choose how many points to keep, and see the smaller file's exact cost in distance before you download it. Nothing is uploaded, and the kept points are your original points.
Your file never leaves your device.
Parsing, trimming, merging, and exporting all happen locally in your browser with JavaScript. GPXFIT never uploads your GPS coordinates to a server.
Drop a GPX file here or click to browse
GPX, TCX, or FIT — processed locally, never uploaded
Choosing a point count
The slider picks a number of points to keep, not a technical tolerance: the simplifier (Douglas-Peucker, the standard algorithm for this job) works out how far it can go while keeping exactly that many of your points. The first and last point of every recorded segment always survive, so your route still starts and ends where it did, and a pause in the recording stays a pause — the tool never draws a line across a stop.
Some shapes cannot be simplified to an exact count — points that sit on a straight line drop out together, all at once. When that happens the page says so and shows the closest count it reached, rather than silently keeping a different number than you asked for.
What it costs, shown before you download
Simplifying removes points, and removed points are removed distance: the simplified line cuts the corners your recording actually followed. On a winding mountain road the cost per removed point is higher than on a straight highway, which is why the tool shows the delta for your file instead of quoting an average. The table updates as you drag — distance before and after, the percentage lost, and the real file size of each version.
This is an honest trade, not a free lunch: the edit is lossy by nature. If you need every original point kept, this is not the tool for that job — the trimmer removes points only from the ends. The usual reason to be here is a device limit or an email attachment cap, where a faithful smaller copy is exactly what you want.
Nothing leaves your device
The file is parsed and simplified by JavaScript in this tab. There is no upload, no account, and nothing to pay, and nothing about your file — its points, its name, any of it — is ever sent anywhere: this page loads no map tiles and runs no analytics. The site's navigation may quietly prefetch other GPXFIT pages when their links scroll into view; that is static site chrome, never data about you or your file. If the smaller file raises a follow-up task, compare it against the original or merge it with other files — all client-side, like everything here.
Frequently asked questions
- How do I reduce the size of a GPX file?
- Load it on this page, drag the point-count slider to the number of points you want to keep, and read what it costs in the table — new file size, distance before and after, and the percentage of recorded distance lost. Then download the simplified GPX. A GPX file's size is driven almost entirely by how many points it contains, so fewer points means a smaller file. Everything happens in your browser; nothing is uploaded.
- Why won't my GPX file import to Garmin Connect?
- One common cause is the point count: Garmin devices cap how many points a course or imported track may contain, and the limit varies by device model and generation — a long ride recorded every second can exceed it. Try reducing the file to fewer points here and importing again. If it still fails, check Garmin's documentation for your specific model; other causes include malformed files and unsupported features.
- Does simplifying a GPX change the recorded distance?
- Yes, and the page never hides it. Removing points cuts corners, so the simplified track is shorter than the original. The exact cost is shown before you download: distance before and after, and the percentage lost. This is not a lossless edit — it is a smaller, faithful copy of the shape of your route.
- Are the kept points my original points?
- Yes. The tool keeps a subset of the exact points your file already contains — same coordinates, same timestamps, same elevation — and discards the rest. It never moves, averages, or invents points, and the first and last point of every recorded segment is always kept.
- Can I simplify TCX or FIT files here?
- Not on this page — it reads and writes GPX only. To shrink a FIT or TCX activity, export a GPX copy on the inspect & convert page first, then simplify it here. The simplified file is GPX and stays GPX.
- Is my file uploaded?
- No. The file is read, simplified, and written back out by JavaScript running in your browser tab. Nothing about your file is sent to any server, this page loads no map tiles, and it keeps working if you go offline after it loads.