GPX to CSV Converter
Paste or drop a .gpx file from a GPS watch, fitness app, or mapping tool to extract every track point, route point, and waypoint as one row of CSV: latitude, longitude, elevation, and timestamp, with track/segment index columns when a file has multiple tracks or segments. This differs from converting GPX to GeoJSON, since the goal here is a spreadsheet-ready table of raw points rather than map geometry. It runs in your browser.
Reviewed by Vincenzo Manto, Founder & Lead Developer · Last updated September 27, 2026
How it works
- 1
Export or locate your .gpx file (from a GPS device, Strava, Garmin Connect, or a mapping app).
- 2
Paste its XML content or drop the file into the input box.
- 3
The tool extracts every <trkpt>, <wpt>, and <rtept> element with its coordinates, elevation, and time.
- 4
Copy the CSV or download it to open in a spreadsheet.
Why extract GPX points as CSV?
GPX files are XML, which works well for GPS software but is awkward to read by hand. Pulling every point into a flat CSV table makes it easy to open in a spreadsheet, compute average pace or elevation gain, or import into a data analysis tool, without writing an XML parser yourself.
A lightweight, hand-rolled GPX tokenizer
Instead of depending on a full XML/DOM library, this tool uses a small tag tokenizer built for GPX's simple structure. That keeps it fast, dependency-free, and client-side, so even large recorded tracks process instantly without any upload.
Frequently asked questions
How is this different from a GPX to GeoJSON converter?
A GeoJSON converter outputs map-ready geometry (LineStrings, Points) for use on a map. This tool instead outputs a flat CSV table of every point's raw latitude, longitude, elevation, and timestamp, better suited for spreadsheet analysis than mapping.
What if my GPX file has multiple tracks or segments?
The output includes Track and Segment index columns, so points from different <trk> and <trkseg> elements stay distinguishable even after being flattened into one CSV.
Does it include waypoints and route points too?
Yes. Track points, waypoints (<wpt>), and route points (<rtept>) are all extracted, each labeled with a Type column (trackpoint, waypoint, or routepoint).
What if a point has no elevation or timestamp?
Those columns are simply left blank for that row - not every GPX point includes <ele> or <time> data.
Is my GPS data uploaded anywhere?
No. The XML is parsed in your browser with JavaScript, so your location history never leaves your device.