Helix

How to export your Apple Health data

The export button is buried behind your profile picture, the file is a zip of XML rather than a spreadsheet, and it can take a long time on a full history. The exact steps, and what to do with the file once you have it.

Updated August 8, 20268 min readWritten by Reviewed by Elena Vasquez

Apple gives you a complete export of everything in Health, which is genuinely good and admirably thorough. It is also buried in an odd place, slow, and delivered in a format almost nothing reads without help.

The steps

  1. 1

    Open Health and tap your profile picture

    Top right corner of the Summary tab. This is the account screen, not Settings on the iPhone, which is where most people look first.

  2. 2

    Scroll all the way to the bottom

    Past your details, past the privacy sections, past everything. The export option sits at the very end of the screen and is easy to miss on a first pass.

  3. 3

    Tap Export All Health Data and confirm

    There is no way to export a subset. It is everything, all at once, all the way back to your first recorded sample.

  4. 4

    Wait, with the app open

    The phone assembles the archive in the foreground. Leave the Health app open and the screen unlocked. Ten to thirty minutes is normal on a long history, occasionally longer. Plugging in helps, since this is a genuinely heavy operation.

  5. 5

    Choose where to save it from the share sheet

    Save to Files, iCloud Drive or send it to a computer. Do not email it to yourself and consider the job done, since these archives are frequently too large to send.

What is actually in the file

export.xml. The main event. Every sample ever recorded: heart rate, steps, sleep, HRV, workouts, weight, everything any app has ever written. On a multi-year history this file is frequently hundreds of megabytes.

export_cda.xml. Clinical Document Architecture format, containing health records if you have connected any providers.

workout-routes. A folder of GPX files, one per outdoor workout with GPS. Directly usable in mapping tools, and often the most immediately interesting part.

Making it readable

The XML is the problem. It is valid, complete and enormous, and most text editors will struggle or refuse.

The practical options are a converter that turns export.xml into CSV per data type, a spreadsheet after that conversion, or a script if you are comfortable writing one. Python with a streaming XML parser handles it well, because loading the whole document into memory is exactly what causes most naive attempts to fail.

Be sensible about what you feed to third-party converters. This file contains your complete health history, and an online converter is a stranger’s server.

Reasons this is worth doing

Switching phones away from iOS. Health data does not follow you to Android, and this is the only complete copy you will get.

Your own analysis. The raw samples support questions no app will answer for you.

Insurance against an app going away. Anything written into Health is in here, including data from apps that later shut down.

Because it is free and it takes one wait. Health history is the sort of thing you only regret not having.

Coming from another platform, the equivalents are how to export your WHOOP data and, for Oura, the CSV export in the Membership Hub covered in how to cancel your Oura membership.

Frequently asked questions

How do I export my Apple Health data?

Open the Health app on your iPhone, tap your profile picture in the top right, scroll to the bottom and tap Export All Health Data. Confirm, wait while it prepares the file, then use the share sheet to save the zip somewhere useful.

Why is my Apple Health export taking so long?

Because it is writing every sample you have ever recorded into XML, and a multi-year history contains millions of them. Ten to thirty minutes is normal on a long history and it can take longer. Keep the Health app open and the phone unlocked while it works.

What format is the Apple Health export?

A zip archive containing export.xml, usually export_cda.xml, and a workout-routes folder of GPX files. It is XML rather than CSV, which is why most spreadsheet tools cannot open it directly without conversion.

How do I open an Apple Health export file?

The zip needs unpacking first, and export.xml is often too large for a text editor to handle comfortably. Most people use a converter to turn it into CSV, or a dedicated analysis tool. Opening the raw XML by hand is possible but rarely worth it.

Does exporting delete my Apple Health data?

No. It creates a copy and changes nothing. Exporting is safe to do as often as you like, and doing it periodically is a reasonable habit given how much history accumulates.

Keep reading

All posts →