A practical guide

How to export Apple Health data

Published

The Health app can hand you everything it holds in one file. Open Health, tap your profile picture, scroll to the bottom, and tap "Export All Health Data." A few minutes later you have a zip archive containing years of steps, heart rates, sleep, workouts, and, if you have connected a hospital, your clinical records.

The export is complete and genuinely hard to use. This guide covers how to run it, what is inside, how to actually read the data, how to share categories with a family member instead, and what to do if what you really wanted was the medical record rather than the step count.

Two different things people mean by "export"

Most people looking for this are after fitness and health metrics: steps, heart rate, sleep, weight, cycle tracking, workouts. They want the numbers out of the phone and into a spreadsheet, a research study, a coach's hands, or a different app. The full export is the tool for that, and the first half of this guide is about it.

A smaller group is after something else entirely. They connected a hospital to the Health app, their lab results and medication list are sitting in there, and they want that information somewhere a spouse or an adult child can also see it. The full export technically contains it, in a format almost nobody can read. The second half of this guide covers that case, which has a better answer.

The two goals need different tools, so it is worth being clear which one you are after before you start. If the answer is "both," run the export for the fitness data and read the clinical section too.

What you will be able to do by the end

This guide should get you to:

  • Run the full Apple Health export and get the file off the phone
  • Know what each file inside the zip archive is for
  • Turn the giant XML file into something you can actually open
  • Share specific health categories with a family member or doctor, and understand what they will and will not see
  • Understand what Health Records is and how clinical data gets into the Health app in the first place
  • Get clinical records into a form the rest of the family can read

Exporting, reading, and sharing

Steps one to four are the fitness export. Steps five to eight are the clinical side, for anyone whose real goal is the medical record.

Run the export

Open the Health app on the iPhone. Tap your profile picture or initials in the top right corner. Scroll to the very bottom of that screen, past the details and the units and the app list. The last item is "Export All Health Data."

Tap it, confirm, and wait. The phone assembles the archive, and how long that takes depends on how much history is in there. A phone with a few years of Apple Watch data can take several minutes and occasionally longer. Leave the screen open and the phone unlocked while it works; backgrounding the app has been known to interrupt it.

When it finishes, the standard share sheet appears. Choose where the file goes. Saving to Files, then to iCloud Drive or On My iPhone, is the most reliable option. AirDrop to a Mac works well. Emailing it to yourself often does not, because the archive can be large enough to bounce.

The result is a single file named export.zip. On a phone, open Files, find it, and long-press to uncompress it. On a Mac or PC, double-click.

Two practical notes. The export includes everything, with no way to select categories or date ranges, so there is no "just the last year" option. And the export runs on demand only; there is no scheduled or automatic version, which means anything you want kept has to be exported again later.

What is inside the archive

Uncompressing export.zip gives you a folder, usually called apple_health_export, with a handful of items in it.

export.xml is the main file and the big one. It contains every sample the Health app holds, one record element per measurement, with a type, a source, a start and end time, and a value. A person with an Apple Watch and a few years of history can easily have several million records in a file that runs to hundreds of megabytes or more.

export_cda.xml holds the clinical records, in the standard clinical document format hospitals use. If you have connected a health system through Health Records, this is where those allergies, conditions, immunizations, lab results, medications, procedures, and vitals live. If you have not connected anything, this file is small or absent.

An electrocardiograms folder appears if you have taken ECGs on an Apple Watch. Each one is a PDF, readable on its own, which makes this the single most useful part of the export for anybody taking results to a cardiologist.

A workout-routes folder holds GPX files, one per outdoor workout with GPS, readable by mapping and training software.

That is the whole archive. There are no images, no documents you scanned, and no notes. Health is a data store, not a document store.

Making the XML usable

Opening export.xml is where most people stop. A text editor may refuse to load it, a browser may hang trying to render it, and Excel will not import it in any useful shape. This is not a mistake on your part. The file was designed for programs, not people.

The realistic options, in order of effort.

Use a converter. Several free and paid tools, including web apps, desktop apps, and open-source scripts, take export.xml and produce CSV files split by data type: one for steps, one for heart rate, one for sleep. That is what you want if the destination is a spreadsheet. If you go this route with a web-based converter, understand that you are uploading your health history to somebody else's server, and read who they are first. A tool that runs locally on your own computer is the safer choice.

Use a third-party app on the phone instead of the built-in export. Several health data apps can read the Health store directly with your permission and export a filtered CSV for one data type and one date range, which is usually what people actually wanted. This avoids the giant file entirely.

Write a few lines of code, if that is something you do. The XML structure is simple and well documented by the community, and parsing it into a dataframe is a short exercise.

One thing to check before you start: the source of each record. If you have used more than one device or app, the same walk can appear multiple times from different sources, and naive totals double-count. Any decent converter exposes the source field so you can filter.

Sharing with family instead of exporting

If the goal is that somebody else can keep an eye on your health data, the export is the wrong tool. Apple builds sharing directly into the Health app, and it updates continuously instead of being a dead snapshot.

In the Health app, open the Sharing tab at the bottom. Choose to share with someone, pick a contact who has an iPhone, and select which categories to share: activity, heart rate, mobility, medications, labs, and others depending on what you have. They accept the invitation, and a dashboard of your shared categories appears in their Health app under Sharing.

The recipient sees highlights and trends, and gets notified about changes Apple considers significant, like a meaningful drop in walking steadiness or an irregular rhythm notification. It is genuinely good for an adult child keeping half an eye on an aging parent, and both people can stop the sharing at any time.

Know the limits before you rely on it. It shares data categories, not documents; nobody is reading a discharge summary through it. The trends and highlights view is a summary layer, not a raw feed. Both people need an iPhone with a recent iOS version and to be signed into iCloud. And availability varies by region.

There is a parallel feature for sharing with a doctor, where your data goes to a participating health system so the care team can see it in their own record. Support for that depends on the hospital, and most families will find the person-to-person sharing more immediately useful.

Health Records: how the medical record gets into the Health app

Separately from all the fitness data, the Health app can hold your actual medical record, pulled directly from participating hospitals and clinics.

To set it up, open Health, go to the Browse tab, and look for Health Records. Search for your hospital or health network, sign in with the same username and password you use for its patient portal, and authorize the connection. Within a minute or two your data appears in the Health app.

What comes across is the clinical data the health system exposes through the standard interface: allergies, conditions and diagnoses, immunizations, lab results with reference ranges, medications, procedures, and vital signs. Many systems also send clinical notes. On iOS 26 and later, medications you are taking and the doses you log are part of the picture too.

This is worth understanding for what it is. It is a read-only copy of the coded parts of your chart, updated automatically, not a portal. You cannot message a doctor or schedule an appointment through it. And you can connect several health systems at once, which is the genuinely useful part, because it is one of the few places a person's records from three hospitals sit side by side.

It also depends entirely on your hospital participating. Coverage is broad among large systems and patchy among smaller practices. If your hospital does not appear in the search, there is nothing to configure; it is not connected yet.

Everything in Health Records is included in the export_cda.xml file when you run a full export. Reading that file is a job for software, which brings us to the more practical question.

Timeline

Synced from Health Records

  • Aug 22

    A1C 7.1 · Memorial Endocrinology

    Labs
  • Aug 22

    Metformin increased to 1000 mg

    Doc
  • Jul 30

    Blood pressure 138/84 · home reading

    Visit
  • Jun 14

    Tdap booster

    Doc
Clinical records the patient connected in the Health app, synced from their own iPhone into a shared circle, laid out in date order for the family.

When the goal is the medical record, not the step count

Here is the situation this section is for. A parent has a diagnosis. They have an iPhone and they connected the hospital to Health Records, so their labs and medications are on their phone. Two adult children in other states are trying to help. The information exists and it is stuck on one device.

The Apple tools each solve part of it and none of it completely. The full export produces a clinical file that requires software to read. Health Sharing shares data categories in a summary view rather than the record. And nothing in Health holds the scanned paper, the discharge instructions, or the voicemail from the nurse line, which is often where the important part is.

The KeptWell iOS app is built for exactly this gap. On the patient's own iPhone, with their permission, it reads the clinical records they have connected in Health and syncs them into a shared care circle: allergies, conditions, immunizations, lab results, medications, procedures, vitals, and clinical notes. On iOS 26 and later it also reads medications and the doses they log. The Apple Health integration page covers the setup.

Three things about how it works are worth stating plainly. The sync is read-only, so KeptWell reads from Health and never writes back into it. Consent is category by category, so the patient chooses what to share rather than flipping one switch. And it runs on the patient's own device; a family member cannot pull the patient's health data from their own phone, because there is nothing to pull from. The patient starts it.

Once the data is in the circle, everyone the patient invited sees the same records on their own phones, and the uploads that were never in any portal go in beside them: the photographed handout, the discharge summary, the recording of the appointment.

What to do if your hospital is not in Health Records

Health Records only works with participating organizations. If yours is not there, the data has to come from the portal instead, and the record download guide covers that in detail.

The short version. Sign into the portal, find the Sharing Hub or Document Center, and download the record as a PDF, a structured file, or both. Do it for each health system the person has records at.

Downloaded PDFs are a snapshot, so plan on repeating it after any hospitalization or major change. Uploading them into a shared record means at least everyone is reading the same snapshot rather than four different ones.

And a portal connection is the more durable route where it is available. A MyChart connection into a KeptWell circle imports the records and keeps pulling, so nobody has to remember to re-download.

Before you send health data anywhere

Health data is worth a moment of caution that step counts on a fitness app are not, so a few honest notes.

Web-based XML converters receive your entire health history. Some are run by careful people and some are not. Prefer a tool that runs locally on your computer, and if you use a web one, check who operates it and what they say they do with uploads.

Deleting the export when you are done is worth doing. It is a complete copy of years of data, and it usually ends up in a Downloads folder that gets backed up to three places.

Once your data leaves the Health app, Apple's protections stop applying to it. Whatever you send it to has its own policies, and those are the ones that govern from then on.

For KeptWell specifically: data in a circle is visible only to the people the patient invited, KeptWell does not sell data and does not train AI models on your records, and there are no marketing tracking pixels on logged-in pages. Being straight about the limits too: KeptWell does not currently offer a Business Associate Agreement or claim HIPAA compliance, and you can read the full detail on the data and privacy page and how the AI works.

None of this should stop you from getting the record to the people who need it. It should just be a decision you make on purpose.

A quick decision table

If you want fitness data in a spreadsheet: run the full export, then use a local converter to turn export.xml into CSV files by type.

If you want one data type over one date range: skip the full export and use a third-party Health app that can filter before it exports. Far less work.

If you want a family member watching your health metrics over time: use the Sharing tab in Health, not an export.

If you want your ECGs for a cardiologist: they are already PDFs inside the export, in the electrocardiograms folder. That folder alone may be all you need.

If you want the medical record shared with family: Health Records plus a shared circle, or portal downloads if your hospital is not connected.

Things that commonly go wrong

The export appears to hang. It is usually still working; a large archive takes a while. Keep the phone unlocked and the app open, and try again on a charger if it fails.

The file is too big to email. Save it to Files and share a link, or AirDrop it to a computer.

The clinical file looks empty. That means no health systems are connected in Health Records, not that the export failed. Connect one in the Browse tab first.

Totals look doubled. Two sources are recording the same activity. Filter by source when you convert.

The step history stops at a certain date. Health data comes from the devices you have owned, so a phone restored from a backup or a new Apple Watch can leave a seam. The export shows what is in the store, and nothing can recover data the store never had.

A note from KeptWell

Keep every record in one place your whole family can read

KeptWell takes the scans, lab results, visit notes, and appointment recordings a family collects and turns them into one organized, searchable record. Upload a document and it's read, summarized in plain English, and filed where everyone in the care circle can find it. Ask a question and get an answer grounded in the actual records.

It's free to start, with no credit card. We never sell your data or show you ads.

Common questions about exporting Apple Health data

How do I export all my Apple Health data?
Open the Health app, tap your profile picture in the top right, scroll to the bottom of that screen, and tap "Export All Health Data." Confirm, then wait; a large history can take several minutes. When it finishes, the share sheet appears and you choose where to save the file. Saving to Files or AirDropping to a computer is more reliable than emailing it, because the archive can be too large for email.
What is in the export.zip file?
A folder containing export.xml, which holds every health sample as one record per measurement; export_cda.xml, which holds clinical records from any hospital you connected through Health Records; an electrocardiograms folder of PDFs if you have taken ECGs on an Apple Watch; and a workout-routes folder of GPX files for outdoor workouts with GPS. There are no images or documents; Health stores data, not files.
How do I open the Apple Health XML file?
Not in Excel, and often not in a text editor, because the file can run to hundreds of megabytes with millions of records. Use a converter that turns export.xml into CSV files split by data type, preferably one that runs locally on your own computer rather than uploading your health history to a website. Alternatively, skip the full export and use a third-party Health app that can export one data type and date range directly from the phone.
Can I export only some of my Apple Health data?
Not with the built-in export, which is all-or-nothing with no category or date filters. To get a subset, use a third-party app that reads the Health store with your permission and exports a filtered CSV, or run the full export and filter afterward during conversion.
How do I share Apple Health data with a family member?
Open the Health app, go to the Sharing tab, choose to share with someone, pick a contact with an iPhone, and select which categories to share. They accept the invitation and see a dashboard of your shared data in their own Health app, with notifications about significant changes. Both people need a recent iOS version and iCloud, availability varies by region, and either person can stop the sharing at any time.
What can someone see when I share Health data with them?
The categories you chose, presented as highlights and trends rather than a raw feed, plus alerts about changes Apple flags as significant. They do not see categories you did not share, and they do not see documents such as discharge summaries or imaging reports, because those are not in Health. Sharing is a summary of data types, not access to your medical record.
What is Apple Health Records?
A feature that pulls your actual medical record from participating hospitals into the Health app. In the Browse tab, search for your health system, sign in with your patient portal credentials, and authorize the connection. It brings across allergies, conditions, immunizations, lab results, medications, procedures, vitals, and often clinical notes, and updates automatically. It is read-only; you cannot message a doctor or schedule through it.
How do I connect MyChart to Apple Health?
Open the Health app, go to the Browse tab, find Health Records, and search for your hospital or health network by name. Select it and sign in using the same username and password you use for its MyChart portal, then authorize the connection. Your records appear within a minute or two. You can connect several health systems, which is useful when care is spread across more than one.
Why is my hospital not in Health Records?
Health Records only works with organizations that have enabled the connection. Coverage is broad among large health systems and patchy among smaller practices and standalone clinics. If your hospital does not appear in the search, there is nothing to configure on your end. Download the records from its patient portal instead.
Can I get my lab results out of Apple Health?
They are visible in the app under Health Records, and they are included in export_cda.xml in the full export. That file is designed for software rather than people, so reading it directly is impractical for most users. If the goal is sharing results with family, a shared record that syncs the clinical data from the Health app is the more usable route.
Does the KeptWell app read Apple Health data?
Yes, on the patient's own iPhone and with their permission. KeptWell reads the clinical records they have connected in the Health app: allergies, conditions, immunizations, lab results, medications, procedures, vitals, and clinical notes. On iOS 26 and later it also reads medications and logged doses. The sync is read-only, consent is granted category by category, and the records land in a shared care circle so the family sees them.
Can a caregiver pull health data from the patient's phone remotely?
No. The sync runs on the patient's own device, and the patient starts it and chooses what to share. A family member cannot reach into someone else's Health app from their own phone. If the patient wants a caregiver to see the data, they either share categories through Apple's Health Sharing or sync the clinical records into a shared circle themselves.
Is it safe to use an online Apple Health file converter?
It depends on who runs it, and you should check before uploading. A web converter receives your complete health history. A tool that runs locally on your own computer avoids the question entirely and is the better default. Whatever you use, delete the export file when you are finished; it is a full copy of years of data and it tends to linger in a Downloads folder.

Get the record where the family can read it

The KeptWell iOS app syncs the clinical records a patient has connected in Apple Health into a shared care circle, read-only and category by category, on their own iPhone. Everything else goes in beside it: the scanned handout, the portal PDF, the recording of the appointment. KeptWell reads all of it and explains it in plain English. KeptWell is free today, with an honest plan for what comes next.

Get started

We'll email you a secure sign-in link. It works whether you're new here or already have an account.

Caring for an aging parent instead? Start there → · Tracking a kid's health? Start there → · Tracking your own health? Start there →