# What an Apple Health export file actually contains

By The Optimized Team (Product). Published: 2026-11-05T11:48:07.265305+00:00. Updated: 2026-11-05T11:48:07.740916+00:00.
Canonical: https://optimizedtracker.com/blog/what-an-apple-health-export-file-contains

An Apple Health export is one zip holding a large XML file, optional clinical data, GPS routes and ECG files. Here is what each part holds and how to handle it.

## What is in an Apple Health export?

An Apple Health export is a single zip file. Inside, one large XML file called export.xml holds nearly everything, and a few optional files and folders hold clinical documents, workout routes and ECG readings. This guide walks through each part so you know what you are holding before you open it.

If you keep your own log, this matters. The export is the fullest copy of what Health has stored about you, and it holds more than any one screen shows.

## What is inside the zip

Tap your profile picture in the Health app, choose Export All Health Data, and the app builds the archive. [According to one format guide](https://www.aihealthexport.com/guides/apple-health-xml-format), the zip holds up to four things.

| Item | What it holds | Present for everyone? |
|---|---|---|
| export.xml | Almost all of the data, usually over 95% of the zip's size | Yes |
| export_cda.xml | Clinical Document Architecture data from connected providers, such as lab results | Usually empty |
| workout-routes/ | One GPX file per outdoor workout, with GPS, elevation and pace | Only with outdoor workouts logged on an Apple Watch |
| electrocardiograms/ | One CSV per ECG reading, 30 seconds each, from Apple Watch Series 4 and later | Only if you took ECGs |

The clinical file is the one that surprises people. For most consumers it's empty. It fills only if a hospital patient portal is linked to Health.

## Records, workouts and the rest of export.xml

Everything in export.xml sits inside a single HealthData element. Within it, the same guide describes a few element types.

### Record

A Record is one data point and makes up most of the file. Each one carries a type, a source name, a unit, a start date, an end date and a value. The guide adds that records also hold metadata such as the source device, the source app version, a hardware identifier and the time zone.

That list matters for a log. Two step counts from different sources are two separate records, each tagged with its origin.

Counts differ widely by type. A demo of the open-source [ahcd converter](https://github.com/freddiefujiwara/ahcd) shows a sample export turned into one CSV per type: 12,032 step count records, 13,631 walking and running distance records, 1,193 sleep analysis records, and a single height record. Your own proportions will differ, but the pattern holds: frequent automatic measurements dominate, and things you enter by hand are rare.

### Workout and Correlation

A Workout element describes one logged session, with its activity type, duration, energy burned and distance, plus references to per-second metrics. A Correlation groups readings that belong together. The guide's example is a food entry that combines calories, protein, fat and carbohydrates. Correlations are less common than plain records.

### ClinicalRecord

ClinicalRecord elements carry FHIR-formatted data from connected health systems. Like the CDA file, they are rare unless a hospital is connected.

For comparison, see [what an app gets back from HealthKit](/blog/what-healthkit-will-and-will-not-hand-back), which covers the other route to the same data.

## What kinds of measurements show up

The same guide says the XML covers steps, heart rate, resting heart rate and heart rate variability, sleep stages, workouts, blood oxygen, ECG data and mindfulness sessions. It also lists anything you entered by hand, such as weight, blood pressure or glucose, and environmental data such as noise levels and detected falls. What you actually get depends on the devices you wear, the apps that write to Health and the features you switched on.

This is why two exports from two people look so different. One person's file is mostly watch sensor readings. Another's may be mostly manual entries from a few apps. Neither is complete in any absolute sense. It is a copy of what was written to Health, nothing more.

## How to read it without getting lost

If you plan to look inside, a few habits help.

1. Start with one type. The ahcd tool, for example, lets you limit its output to a single type such as body mass, which turns a huge file into a small, readable one.
2. Look at the source name on each record before you trust a total. Duplicate sources can describe the same activity.
3. Check the unit on every record, and do not mix units when you compare values.
4. Read the start and end dates as a pair. A record covers a span of time, not a single moment.
5. Leave the original file untouched and work on a copy.

You don't need to read the whole file. Just know what one record is made of, so any number you pull out can be traced back to its source.

## Size, privacy and opening the file

Expect a big file. [One guide to exporting](https://www.fitmesh.fit/en/blog/how-to-export-apple-health-data) puts the zip at roughly 100 to 400 MB for about two years of Apple Watch use, and the unzipped XML at roughly 500 MB to 2 GB. Heavy users with frequent cardiac measurements can reach 3 to 5 GB. A regular text editor will probably crash on it, so use a script or a data tool.

The file is also unencrypted. Anyone who gets a copy can read it, so handle it like a medical document. The same guide suggests AirDrop or a USB cable to a Mac rather than email or a public cloud folder.

Two cautions apply. The descriptions above come from third-party guides and tool documentation, and the layout can change between iOS versions, so check your own file rather than assuming. And a record being present does not make it accurate: a value is only as good as the source that wrote it.

## What to take from it

Keep a dated copy of your export, and store it somewhere private. It is a useful backup of your Health history, and you can compare it against your own entries later. For more on that approach, see [Apple Health as a second source of truth](/blog/apple-health-as-a-second-source-of-truth) and [backing up and exporting your own log](/blog/backing-up-and-exporting-your-log).

When you write your own log, borrow the habit the export shows. Give each entry a source, a unit, a start time and an end time, and keep the time zone. A record with those fields can be audited months later. OptimizedTracker is built around the same idea.
