How to Analyse Your Apple Health Export: Steps, Sleep and Workouts
Read your Apple Health export.zip in the browser: yearly steps, sleep stages, resting heart rate, workouts and activity rings, with daily CSV export.

How to Analyse Your Apple Health Export: Steps, Sleep and Workouts
Your iPhone and Apple Watch quietly collect years of health data, but the Health app shows it one chart at a time. Exporting everything lets you see long term trends: how your step count has changed over the years, how much deep sleep you get, or how many workouts you did each month. This guide explains how to export the data, what the file holds and how to read the summaries in a free Apple Health export analyzer that works entirely in your browser.
Exporting your data
Open the Health app on your iPhone, tap your profile picture in the top corner and choose Export All Health Data. Preparing the export can take a few minutes for a large history. You get a file called export.zip, which you can save to Files or send to your computer with AirDrop. You can open either the ZIP itself or the export.xml file inside it.
What is inside export.xml
The export is one large XML file in which every measurement is a record with a type, a value, a unit, a source device and start and end times. Several years of Watch data can make this file several gigabytes. Workouts are stored as separate elements, newer iOS versions add workout statistics such as distance and energy, and daily activity ring results appear as activity summaries. There is also a clinical records file, export_cda.xml, if you linked health records.
How the analyzer handles a huge file
Instead of loading the whole file into memory, the analyzer reads export.xml in pieces of about 4 MB, decompressing the ZIP entry as it goes. It keeps only daily totals, so even phones and older laptops can process a multi-gigabyte export. Nothing is uploaded.
It reads steps, walking and running distance, active energy, exercise minutes, flights climbed, heart rate minimum, average and maximum, resting heart rate, heart rate variability (SDNN), body weight, VO2 max, sleep stages, workouts and activity rings. Units are converted, so kilojoules become kilocalories, miles become kilometres and pounds become kilograms, or the other way round if you prefer.
Avoiding double counting
When both the iPhone and the Watch count steps, adding them together would roughly double the total. For each day the analyzer uses the source with the larger total. Sleep works the same way: when several apps or devices record sleep, the source with the most sleep that night is used. Each night is assigned to the date you woke up.
Reading the tabs
The yearly summary table shows, for each year, average daily steps and distance, average sleep, average resting heart rate, the number of workouts, your best step day and how many move rings you closed. It is the quickest way to see whether you are more or less active than a few years ago.
The trends tab charts any metric with a 7-day average over 30 days, 90 days, one year or your full history, plus monthly averages. A steady drop in resting heart rate or a rise in VO2 max can reflect better fitness; a change in weight or step count is easier to judge over months than days.
The sleep tab shows average time asleep, deep and REM sleep, the number of nights under six hours and a table of the last 30 nights. The workouts tab groups sessions by type and month and exports them as CSV. The activity tab shows the percentage of days each month on which you closed your rings.
Tips
- Use the daily CSV export to keep your own long term record or to analyse it in a spreadsheet.
- Compare the same months across years, since seasons affect activity and sleep.
- Remember that sleep stage estimates from a watch are approximations.
- This is not medical advice. Discuss unusual heart rate or sleep patterns with a doctor.
Limits
The Health app's own deduplication between sources is more detailed than the larger-source rule used here, so totals can differ slightly from what the app shows. Clinical records in export_cda.xml are not analysed, and second-by-second heart rate data is not shown, only daily summaries. The tool does not change anything in the Health app and does not diagnose any condition.



