Apple Health workout routes to GPX
Choose the export.zip from the Health app and download the GPS route of any run, walk, hike or ride as a GPX file, or every route in one zip. The routes are already GPX files inside the export. This tool finds them, tells you which workout each belongs to, and hands them over. It is free and runs entirely in this browser. The page is not allowed to make network requests, so your location history never leaves your computer.
Reading . 0% done, 0 items so far.
Download
Get GPX
This browser is too old for this tool. A current Safari, Chrome, Edge or Firefox works.
The tool stopped unexpectedly. Try again, or try a different browser.
That file is not a zip archive. Choose export.zip, or the export.xml inside it.
This zip archive's directory is damaged. Export again from the Health app.
A file inside this zip is damaged. Export again from the Health app.
This browser cannot unzip in place. Unzip export.zip first and choose the export.xml inside it.
This zip uses a compression method the tool does not know. Unzip it and choose export.xml.
There is no export.xml in this zip. Apple's export.zip has it in the apple_health_export folder.
Nothing was read from that file.
No Apple Health records were found. Is this the export.zip from the Health app?
Workout routes are separate files inside export.zip. Choose the zip, not the export.xml inside it.
That route is not in the file.
There are too many routes for one zip. Download them one at a time.
The routes add up to more than 4 GB, too much for one zip. Download them one at a time.
Your workout routes
routes, of GPX. The activity and distance columns fill in once the tool has read the workouts in export.xml.
This export has no workout routes. Routes are saved for outdoor workouts recorded with location turned on.
| Workout start | Activity | Distance | Minutes | Size | File |
|---|
How do I get export.zip from my iPhone?
- Open the Health app and tap your picture or initials, top right.
- Tap Export All Health Data at the bottom, then Export.
- Wait while it builds the file. Years of data can take several minutes.
- Send
export.zipto your computer with AirDrop, or save it to Files and open this page in Safari on the iPhone.
A computer is the better place for a big export. A phone browser can run out of memory on an export of several gigabytes.
Where the routes are in the export
Apple's export.zip has a folder called workout-routes with one GPX file per route, named by date and time, such as route_2024-03-02_7.30am.gpx. The file name does not say what the workout was. That link is in export.xml, where each workout names its route file. This tool reads both and puts them together:
- It lists the route files from the zip's directory, which takes a moment.
- It reads the workouts in
export.xmland adds each route's activity, start time, distance and length. - Get GPX unzips one route. Make one zip of every route copies them all into a new, small zip.
Each GPX file is Apple's own, unchanged: a track with latitude, longitude, elevation, time, speed and course for each point. Heart rate is not in Apple's route files.
Questions
Which workouts have a route?
Outdoor workouts with distance, such as Outdoor Run, Outdoor Walk, Hiking, Outdoor Cycle and open water swims, recorded on an Apple Watch or iPhone with location access allowed for the Workout app. Indoor workouts and strength sessions have none. Apps such as Strava or Nike Run Club save routes to Apple Health only if they choose to.
Where can I use the GPX files?
Anywhere that reads GPX: Strava, Komoot, Garmin Connect, Google Earth, QGIS, GPX Studio and most mapping tools. Check each service's upload rules first, since some treat an uploaded GPX as a new activity.
Why is there no heart rate in the GPX?
Apple stores heart rate as separate records in export.xml, not in the route. The converter gives every heart rate sample as CSV with its time, which you can line up with the route's timestamps.
Why does it need the zip and not export.xml?
The routes are separate files in the zip, not part of export.xml. If you already unzipped the export, the GPX files are sitting in its workout-routes folder and you can use them directly.
Some routes have no activity or distance. Why?
A route file with no matching workout in export.xml keeps its date and size but no details. This happens when a workout was deleted and its route stayed behind.
Can I merge every route into one GPX file?
Not here. The zip keeps one file per workout, which is what most services expect.
Is my data uploaded?
No. The tool is three scripts that run on your computer (the page, the worker and the zip and XML reader, all readable). This page is served with a security policy that blocks every network connection, so even a bug could not send your file anywhere, and there is no analytics on it. You can switch off Wi-Fi after the page loads and it works the same.
Want routes without exporting everything?
The Health app only gives you routes as part of the full export. Marrow reads Apple Health directly on your iPhone and exports workout routes as GPX whenever you like, next to CSV and JSON for every metric. It can also send your data to a URL on a schedule or let an AI assistant read it. All of that is free.
More on the options: CSV, JSON and GPX files from Marrow and every way to export Apple Health data.
More free Apple Health export tools: export viewer, export splitter, duplicate steps checker, export to CSV and JSON, all tools and calculators.