# Keep a Raw Copy of Your Apple Health Export: The Format Can Change Between iOS Versions

By The Optimized Team (Product). Published: 2026-11-24T23:46:56.720967+00:00. Updated: 2026-11-24T23:46:57.574059+00:00.
Canonical: https://optimizedtracker.com/blog/keep-raw-copy-apple-health-export-format-changes

Apple documents the Health export as XML but says nothing about its structure or change history. Keep the untouched, dated file and treat every converted copy as a derivative.

## Short answer: keep the untouched export, with a date

Save the original export.zip exactly as Health gave it to you, and write the export date on it. Apple documents the export as XML, but its guide does not describe the structure of the file, and no change history is published. That means a script or converter that reads your export today has no promise of reading the next one. The raw file is your original record. Everything else is a copy.

## What Apple documents and what it leaves open

Apple's iPhone guide says you can ["export all of your health and fitness data from Health in XML format"](https://support.apple.com/guide/iphone/share-your-health-data-iph5ede58c3d/ios). The steps are short: open Health, choose Summary, tap your photo or initials, tap Export All Health Data, then pick a way to share the file.

That's all the page says. It doesn't list which elements the XML holds, which attributes each one carries, or whether any of that may change in a later release. If you want to know how a single record is labeled inside the file, our note on [reading a HealthKit type identifier in an export record](/blog/healthkit-type-identifier-in-an-export-record) covers what the file itself shows. What the file shows today is an observation, not a commitment from Apple.

Some third-party guides say the layout has shifted between iOS versions. Those pages are written by vendors who sell conversion tools, they give no version numbers, and they do not say what moved. This article does not rely on them. The one version-specific report we can trace is below.

## One reported change: iOS 16 workout dates

A developer posting on the Apple Developer Forums reported that [after installing iOS 16 (build 20A362), the export wrote the end date of each WorkoutStatistics element as a second startDate attribute](https://developer.apple.com/forums/thread/714063). They said iOS 15 had not done this. An Apple Frameworks Engineer replied asking for a report through Feedback Assistant. The thread does not confirm a fix.

Read this as one person's report, on one build, about one part of the file. It is not proof that Apple changes the format often, and it says nothing about your own export. It does show what an unannounced change looks like in practice: a single element, in a file with many thousands of records, written differently from the version before.

One inference of ours, not stated in the thread: an element that carries the same attribute twice is not well-formed XML, so a strict parser may refuse to read the file at all. A forgiving one may silently keep only one of the two dates.

## Why a changed file can break a parser

Any tool that reads the export makes assumptions about its layout. Converters, spreadsheet imports and your own scripts all do. When the layout shifts, one of three things happens:

| What changes | What you may see |
|---|---|
| An element is renamed or moved | The tool skips the records it no longer recognizes, and the row count drops without an error |
| A date or unit is written differently | Values load but land on the wrong day, or in the wrong unit |
| The file stops being valid XML | The tool stops with an error, or loads part of the file |

The second row is the dangerous one, because nothing looks broken. If you keep the file you parsed, you can run a fixed version of the tool against it later and compare. If you kept only the output, you cannot tell a real change in your data from a change in how it was read. Time handling is a related trap: [the offset belongs to the export, not the entry](/blog/apple-health-export-time-zone-offset), so a re-read can shift entries without any visible error.

## A raw copy is a record, not a backup

Keeping the raw file doesn't mean you can put it back. Apple does not document the exported XML as something Health will import. A 2017 forum post describes [an exported zip rejected as "password protected or damaged," and Add to Health doing nothing with the unzipped XML files](https://developer.apple.com/forums/thread/89784). The thread reaches no working method, and it is old, so it may not describe a current iPhone.

So a raw export serves a different purpose than a restore. It lets you read what Health held on the day you exported, check a later conversion against it, and show someone the file as it was produced. If your goal is moving to a new phone, that is a separate job, covered in [transferring Health data to a new iPhone without losing entries](/blog/transfer-health-data-to-new-iphone-without-losing-entries).

## Keep the raw file next to any converted copy

Once the export is a spreadsheet, CSV or JSON, it's tempting to delete the zip. Don't. The choice of working format is its own question, and [choosing a format for your log archive](/blog/csv-json-xml-choosing-a-format-for-your-log-archive) goes through it. Whatever you pick, store the raw file beside the converted one, and write a short note that links the two.

| Item | Why it belongs in the note |
|---|---|
| The untouched export.zip | The original, never edited or re-zipped |
| Date and time of the export | Health data keeps changing, so the file is a snapshot |
| iOS version on the phone at export time | The only way to tie a layout to a release if one changes |
| Name and version of the converter | Lets you re-run the same tool on the same file |
| Date you converted it | Separates the export date from the processing date |

Two practical details. First, don't open the raw file in an editor and save it, since many editors reformat on save. Make a working copy and open that. Second, give the file a name that sorts by date, such as an export date written year first, so a folder of several exports stays in order.

## What to actually record

For every export you keep, record the export date, the iOS version, and the converter you used, then store the note beside the zip. If you log in OptimizedTracker, the same habit applies to anything you bring in from Health: keep the source file, so a later question about an entry can be answered from the original. Individual files vary, and a count of records in one export says nothing certain about the next, so compare like with like and note any difference rather than assuming it is an error.

## Frequently Asked Questions

### Does the Apple Health export format change between iOS versions?

Apple does not publish a schema or a change log for it, so you cannot count on it staying the same. One developer reported a specific change on iOS 16 in workout data, and that report is the only version-specific case this article can source.

### Can I put an exported file back into Apple Health?

Apple does not document the export as an import format. A 2017 forum report describes the attempt doing nothing, and the thread never reaches a working method.

### Should I delete the zip once I have a spreadsheet?

No. The spreadsheet is a derivative made by a tool that may have misread the file. The zip is the only version that has not passed through one.
