How to export your Apple Health data, and what to know before you use it
How to export everything in the Apple Health app, what Apple says the file holds, and what research says about the step counts inside it.
If you have carried an iPhone or worn an Apple Watch for a few years, the Health app may be holding years of your history. Steps and walking distance, heart rate if you wear a watch, and data from any other apps you have allowed to write to it. Usually you see that history as charts on a phone screen. Apple also lets you take a full copy of it as a file.
This post covers how to make that copy, what Apple says is in it, and a few things worth knowing before you rely on the numbers inside. It describes how the Health app works and what published research says about it. It is not advice about your health.
How to export your Health data
Apple's iPhone User Guide gives three steps:
- Go to the Health app on your iPhone.
- Tap Summary, then tap your picture or initials.
- Tap Export All Health Data, then choose a method for sharing your data.
Pick somewhere private for that last step. The file is a copy of your health history, and it should be treated like one.
What Apple says is in the file
Apple describes it in one sentence: you can export all of your health and fitness data from Health in XML format, "which is a common format for sharing data between apps."
Two things follow from that. First, it is everything, not a summary. Second, XML is written for software to read. Open it in a text editor and you will see tagged, structured text rather than a tidy table, so you may need a script or a tool to make it readable.
Apple's developer documentation for HealthKit, the framework apps use to read and write Health data, explains how each piece of data is stored. A sample is a piece of data with a start time and an end time. A quantity sample, such as a step count or a heart rate reading, carries a value and a unit. Every object also records the app or device that created it.
That last part matters more than it sounds. Your history is not one stream of numbers. It is many small records, each stamped with where it came from.
Why the source of each number matters
The Health app gathers similar data from different places, and Apple's support page on managing Health data explains how it chooses between them. By default, Health prioritizes data in this order, top first:
- Data you enter manually.
- Data from your iPhone, iPad and Apple Watch.
- Data from apps and Bluetooth devices.
If several sources contribute the same type of data, the one at the top of the list takes priority. Apple also notes that when you add a new app or device, it is listed at the top automatically, above your iPhone or iPad.
So if you connected a new scale, a ring or a running app at some point, it may have moved to the top of the list for some data types without you choosing that. You can check this before you export. In the Health app, tap Browse, choose a category and then a subcategory, scroll down and tap Data Sources & Access. Only the sources that contribute to that data type appear there, and you can tap Edit to change the order.
None of this makes the data wrong. It means a daily total depends partly on which source was leading at the time, which is useful context for a long history.
What research says about the step counts
Step counts from the iPhone itself have been tested by researchers.
A study in the Journal of Sports Sciences by Duncan and colleagues at the University of British Columbia, published online in November 2017 and in print in 2018, looked at step counts from the iPhone Health app. In the lab, on a treadmill at 5, 7.5 and 10 km/h, both a standard test iPhone and participants' own iPhones were within less than 5% of manually counted steps on average. The authors note that this level is generally considered acceptable for pedometers.
Outside the lab, the picture changed. When the researchers compared participants' own iPhones with a research accelerometer during everyday life, the step counts differed by an average of 21.5%, or 1,340 steps a day. The authors say this was likely because people did not carry their phones all the time. Their caution was aimed at researchers using iPhones as a research-grade pedometer, and they add that if people carry the phone consistently, it might be suitable.
For anyone reading their own export, the point is simple. A step count records what the device saw. If your phone was the step source, a day when it sat on a desk is a day with fewer recorded steps, not necessarily a day with less walking.
Researchers have used this history too
Because the Health app can hold years of data, researchers have asked people to share it after the fact. A 2020 pilot study in Cureus from the University of Miami contacted 177 people who had had a particular spine operation between 2014 and 2018. Participants used a third-party app to pull their Apple Health activity history, including steps, distance and flights climbed, and send it to the research team. The aim was to see whether this was workable as a way to look at activity before and after surgery.
The team reached 92 people. Of those, 41 (44.6%) agreed to take part and 51 declined. Among those who declined, 19.6% said they were not comfortable sharing their data. The study was about whether people would take part, not about what the data showed, but it is a reminder that this history exists, it can go back years, and people care about who sees it.
What to do with the file
There is no single right use. You might keep a copy as a backup, look at years of data in one view, or set it next to other records such as food logs, workouts or lab results.
Whatever you do, a few habits help. Keep the file somewhere private. Check which source was leading for the data types you care about. And read any long-term trend with the source and the carrying habits of that period in mind.
That kind of side-by-side view is what we are building at Intus. It takes inputs such as wearables, nutrition, supplements and workouts, and shows how they relate to outputs and biomarkers over time in one place. It does not diagnose, interpret your results as good or bad, or suggest doses. It just puts your own data side by side.
If that sounds useful, you can join the waitlist at intus.fit. The iPhone app is coming soon.
Intus is not a medical advisor. It does not diagnose conditions or suggest dosages. This article describes how the Health app works and what published research reports, and is not advice about your health. If you have a health concern, talk to a qualified professional.
Sources
- Apple. Share your data in Health on iPhone. iPhone User Guide, Apple Support
- Apple. Manage Health data on your iPhone, iPad, or Apple Watch. Apple Support (2026-09-14)
- Apple. HKSample, HealthKit developer documentation
- Duncan et al. (2018). Walk this way: validity evidence of iphone health application step count in laboratory and free-living conditions. Journal of Sports Sciences, 36(15), 1695-1704 (2017-11-28)
- Sprau et al. (2020). Patient participation with a mobile phone application for objective activity assessment before and after spinal fusion. Cureus, 12(9), e10326 (2020-09-09)
What Intus is not
Intus is a personal health data tracker, not a medical advisor. It does not diagnose conditions, recommend treatments or suggest doses. For questions about your own health, talk to a qualified clinician.