How to export Apple Health data: every way that actually works
To export Apple Health data, open the Health app, tap your picture, then Export All Health Data. You get one large XML file. For CSV in a spreadsheet, an export that repeats on a schedule, a database or an AI assistant, use one of the other routes below.
Your iPhone and watch have years of health data, and Apple gives you exactly one way to get it out. This guide covers that way honestly, then the ways around its limits: CSV, scheduled exports, your own server, and live access for AI agents. We build one of the apps mentioned below and will say so when it comes up.
1. Apple's built-in export (free, one big XML file)
- Open the Health app
- Tap your picture or initials, top right
- Scroll down, tap Export All Health Data, confirm
- Wait (minutes, for years of data), then share the
export.zip
Inside is export.xml: every sample Apple has, which is the good part. The rest is the catch. It is one file that can run to gigabytes, it is XML rather than anything a spreadsheet opens, there is no way to schedule it, no way to export one metric, and no way to get only what changed since last time. It is a full backup, not a pipeline. For a one-off archive, it is fine, and it costs nothing.
2. Getting CSV instead
Two routes. You can convert the XML dump: our free in-browser converter turns export.zip into CSV and JSON (daily totals, sleep, workouts, raw records) without uploading anything, and scripts do the same if you prefer code. Either way you re-export the whole archive every time you want fresh data. Or use an app that reads HealthKit directly and writes CSV per metric. Marrow (ours, free) exports CSV, JSON and GPX through the share sheet, one metric or all of them, for 30 days, 90 days, a year or everything (how). It reads three years of Apple Health history when you install it, and Settings, Apple Health history extends that to five years, everything, or from a date you pick. Health Auto Export does manual CSV free and puts automation behind a subscription.
3. There is no Apple Health server API
Worth stating plainly, because it is the thing people go looking for: HealthKit is on-device only. There is no cloud endpoint, no OAuth, nothing your server can call. Whatever leaves the phone leaves because an app on the phone sends it. So "automated export" always means an app with background access pushing data somewhere you choose.
That constraint is also the privacy upside: nothing leaves unless you install something that sends it, and you can see exactly where it goes.
4. Scheduled, automated export
For dashboards, Home Assistant, n8n, or your own database, you want pushes on a schedule to a URL you name. Marrow does this free, with background sync, so exports run with the app closed (webhook setup for n8n, Home Assistant and your own server). Health Auto Export pioneered the category and does it well, with scheduled automations on its Premium tier. Both send JSON or CSV to any webhook.
Since version 1.7, Marrow also writes straight to three tools with no webhook and nothing to run in between: InfluxDB with an API token, Grafana Cloud through its hosted Prometheus metrics, and Home Assistant with a long-lived access token. All three are free.
5. A complete mirror on your own hardware
The strongest form of ownership: a live copy of everything on a machine you control. Marrow pairs with a self-hosted server (one Python file, MIT licensed) on a Pi, NAS or old laptop. The phone keeps it current in the background. The mirror is SQLite, so it is queryable directly.
6. Letting an AI agent read it (MCP)
The newest option, and for many people the actual goal: not files, but an assistant that can answer "how did my sleep change when I started morning training?" from real data. That works over MCP (Model Context Protocol). Marrow runs an MCP server on the iPhone itself, free, with nine read tools and twelve write tools behind a switch. The self-hosted mirror speaks MCP too, so agents can query it while the phone sleeps. And for ChatGPT, Claude or Gemini with nothing to run, Cloud MCP (Marrow Pro) hosts that mirror for you. Health Auto Export ships an MCP server as well, and got there first, but it requires Premium. Setup for Claude, Cursor or any MCP client: the two-step guide.
Workouts and routes: ask for GPX
Workout GPS routes deserve a special mention because Apple's XML dump includes them as separate GPX files, one per workout, buried in the archive. If you want routes for one run rather than an archaeology project, export GPX per workout from an app instead. Marrow shows every workout with its route and shares GPX on demand.
Set-by-set strength detail is similar: it exists in HealthKit, most exporters flatten it away, and it is worth checking any tool you pick preserves what you care about.
The honest comparison
| Built-in export | Health Auto Export | Marrow | |
|---|---|---|---|
| Price | Free | $2.99 to $24.99. Automation and MCP are Premium | Free |
| Format | One XML archive (+ GPX inside) | CSV, JSON | CSV, JSON, GPX |
| Scheduled push | No | Premium | Free |
| Self-hosted mirror | No | No | Free, open source |
| AI agents (MCP) | No | Premium | Free, on device |
| Best for | A one-off full archive | Established exporter, wide format options | Ongoing pipelines and agent access |
Figures checked against each vendor's own pages in August 2026. If something here has gone stale, tell us and we will fix it. Being the accurate page is the whole strategy.
Questions
Can you export Apple Health data as CSV?
Not from the Health app itself, which only makes XML. Convert that export with the free in-browser converter, or export CSV directly from an app such as Marrow.
How long does Export All Health Data take?
From under a minute to many minutes, depending on how many years and how many devices you have. Keep the Health app open until the share sheet appears.
How do I get Apple Health data onto a Mac or a Windows PC?
The Health app does not run on Windows and has no export on the Mac. Export on the iPhone, then send the file across with AirDrop, iCloud Drive, email or a cable. CSV files open in Excel, Numbers and LibreOffice Calc.
Can I export only part of my data?
Apple's export is all or nothing. An exporter app can do one metric or one date range. In Marrow, pick the range and the kind of data under Connects, Exports, Manual.
Can I export only what changed since last time?
Not with Apple's export. A scheduled automation sends recent days on each run, so the receiver stays current without a full export.
Can Apple Health data go to Prometheus, InfluxDB or another database?
Yes, through an app that sends it. Marrow writes directly to InfluxDB and to Grafana Cloud's hosted Prometheus metrics, where you query it with PromQL. For any other database, point an automation at a webhook you run.
How do I give my Apple Health data to ChatGPT or another AI?
Connect the AI instead of uploading files: ChatGPT, Claude and Gemini each have a page. Or ask Mo, the AI inside Marrow, which needs no setup.
The short version
- One-off archive: use Apple's built-in export, and turn it into CSV with the in-browser converter if you need spreadsheets.
- CSV, ongoing: use an exporter app. Check what its free tier actually includes.
- Your own database or dashboard: a direct connection to InfluxDB, Grafana Cloud or Home Assistant, scheduled webhooks, or a self-hosted mirror.
- An AI that knows your health: MCP, which is two steps in Marrow and free. Every option is compared in Apple Health MCP servers.
Already have Apple's export.zip? Four more free tools read it in your browser without uploading it: the export viewer shows what is inside, the splitter cuts it into smaller files, workout routes to GPX pulls out your routes, and the duplicate steps checker shows where iPhone and Apple Watch counted the same steps.
