Blog Apple Health data
How do you export Apple Health data to CSV?
By Nexis, maker of Health Export and Atoll · Published · Updated

The Health app cannot export CSV: Export All Health Data writes one XML file inside a zip, and on large libraries it is killed before it finishes. To get CSV you need an app that reads HealthKit directly, or a script that converts the XML. Below are four ways, with prices checked on December 2, 2026.
What the built-in export gives you

In the Health app, tap your picture, then Export All Health Data. Apple describes the result asXML, packed intoexport.zip. It is always the whole store: no choice of types, no date range, no CSV.
Size is the bigger problem. The export that started our own app stopped at exactly 883,949,568 bytes, 843.0 MiB, cut in the middle of an element. Everything the file keeps at the end went with it: sleep, workouts, heart rate variability, activity rings. A spreadsheet or a script fed that file either fails or silently loses the end.
Four ways to get CSV

| Method | Price | Formats | Pick types and dates | Large libraries |
|---|---|---|---|---|
| Health Export | Free, no in-app purchases | CSV, NDJSON, XML, SQLite in one pass | Yes | Reads in pages; first real run wrote 1.3 GB, 2.79M samples |
| Health Auto Export | Free download, in-app purchases $2.99–$24.99 | CSV, JSON | Yes | Reads HealthKit directly |
| Health Export CSV | $2.99; Remote $4.99/month | CSV | Yes | Reads HealthKit directly |
| Built-in export + script | Free | Whatever the script writes | After export only | Fails if the export was cut off |
Option 1: Health Export (free)
Health Export is our app. It reads HealthKit in bounded pages and writes each page to disk before asking for the next, so memory does not grow with the size of your library. One export writes four formats at once:
- CSV, one file per data type, ready for Excel, Numbers or Google Sheets;
- NDJSON, one sample per line, which reads fine even if the export is partial;
- XML in Apple's
export.xmllayout, for tools already written against it; - SQLite with daily totals.
It covers 191 HealthKit sample types on iOS 27. The next export holds only what changed since the last one, deletions included. It can also upload to a WebDAV folder such as Nextcloud on a daily background schedule. There is no account and no analytics, and the source is MIT. What it does not do: REST API or MQTT pushes, which Health Auto Export sells.
Option 2: Health Auto Export
The most-rated app in this niche: 4.3 stars from 441 ratings in the US App Store, updated November 28, 2026. The download is free; exports and automations are in-app purchases, from Basic at $2.99 to Premium Lifetime at $24.99. Pick it if you need scheduled pushes to a REST API, Home Assistant or similar. We compare it in detail in Health Auto Export alternatives.
Option 3: Health Export CSV
A paid app at $2.99 with a Remote subscription ($4.99 a month or $29.99 a year) for automatic uploads. 4.4 stars from 157 ratings. It writes CSV only.
Option 4: convert the XML yourself
If the built-in export finished, a short script turns export.xml into CSV. The full walkthrough with a 14-line Python script is in How to convert export.xml to CSV. Check the end of the file first: if it does not close with </HealthData>, the export was cut off and the newest types are missing.
Which one to choose
- One-off CSV of a few types: any HealthKit app; Health Export is free.
- Whole history, several gigabytes: an app that pages through HealthKit, not the built-in export.
- Daily backup to your own server: Health Export over WebDAV, or Health Auto Export to a REST endpoint.
- Analysis in ChatGPT or Claude: export only the types and dates you ask about; seeApple Health data in ChatGPT or Claude.
Sources
Every number on this page was read from these pages on December 2, 2026.
- Apple Support: Share your data in Health on iPhone: the built-in export is XML
- Health Data Export & Backup on the App Store: free, iOS 27, version 1.1.0 of November 13, 2026
- Health Export source code (MIT): 843.0 MiB cutoff, 191 types, 1.3 GB first run
- Health Auto Export on the App Store (US): free, in-app purchases $2.99 to $24.99, 4.3 from 441 ratings
- Health Export CSV on the App Store (US): $2.99, Remote subscription $4.99 a month
Questions
Can the Health app export CSV by itself?
No. Health › your profile › Export All Health Data writes one export.zip with an XML file inside. CSV needs a third-party app or a script that converts the XML.
Why does my Apple Health export stop or never finish?
The Health app builds the whole XML document in one pass. On large libraries the process is killed; one export we measured stopped at 883,949,568 bytes (843.0 MiB), cut in the middle of an element, so sleep and workouts at the end of the file were missing.
Which app exports Apple Health data to CSV for free?
Health Export (Health Data Export & Backup) is free with no in-app purchases and writes CSV, NDJSON, XML and SQLite in one pass. Health Auto Export is free to download but sells its features as in-app purchases from $2.99.
Can I export only heart rate or sleep to CSV?
Yes, with an app that reads HealthKit directly. Health Export lets you pick data types and a date range, and shows which types are empty before you export.