How to Back Up Apple Health Data Before Switching iPhones

Sean WadeUpdated 6 min read

Before switching iPhones, check that Health is enabled in iCloud, or make an encrypted computer backup if that is your transfer method. An ordinary unencrypted computer backup is insufficient for Health and Activity history. Then keep the old phone until you have checked meaningful examples on the new one. Apple's transfer guidance

An independent Health export adds a useful second kind of protection: a copy you can inspect and analyze outside your phone. But an XML or CSV file is not an Apple device backup, and you should not count on it as a native restore method.

Updated October 25, 2026: added a concrete transfer checklist and clarified the limits of selected exports.

At a glance

Two goals, two kinds of protection

Move to a new iPhone

  1. Health in iCloud or encrypted backup
  2. Apple setup / restore
  3. Verify old and new records

Keep the old phone until you have checked recognizable history and new measurements.

Keep an independent copy

  1. Health XML or selected CSV / JSONL
  2. Protected storage
  3. Inspect and analyze

An export is useful outside the phone, but is not a native Health restore workflow.

Recovery map. A synchronized collection, a device backup, and an exported file serve different purposes.

Decide what you want to preserve

MethodMain purposeLimitation to remember
Health in iCloudKeep Health information available across supported devices on your Apple AccountIt is a synchronized collection, not a dated export you inspect independently
Encrypted computer backupSupport Apple's device restoration workflow, including Health dataYou need a completed backup and its encryption password
Health XML exportKeep an independent copy of available Health dataIt is not a one-click restore into the Health app
Selected CSV, JSON, or JSONL exportKeep usable records for a spreadsheet or analysisOnly the chosen, readable types and dates are included
Synced external databaseMaintain another usable collection over timeIts coverage and backup arrangements need their own verification

Apple distinguishes iCloud synchronization from iCloud Backup: information already synchronized to iCloud is handled separately from the device data included in a backup. A recent device-backup timestamp is therefore not, by itself, your whole Health checklist. What iCloud backs up

1. Make a small inventory before the move

Pick several records you would notice losing and make a small comparison sheet:

CheckOn the old phoneOn the new phone
A recent workoutDate, type, durationSame record present?
An older workoutDate and yearSame record present?
A recognizable sleep weekDates with recordsSame dates present?
An early measurementDate, type, valueSame value present?
One day of Activity ringsDate and totalsSame day present?

Choose examples that matter to you; leave out categories you don’t record.

This is a spot check, not proof that every record survived. Its value is making the comparison concrete. An app can show today's steps while a year of older history is still absent.

Also note which apps supplied the records. If an important measurement exists only inside a device maker's app, confirm that it is actually visible in Apple Health. A Health transfer cannot be assumed to preserve information that never reached Health in the first place.

2. Check Health in iCloud

On the old iPhone, open Settings → your name → iCloud, find Health in the saved-app list, and check that syncing is enabled. Apple changes the list's labels across releases; look for Health and its sync control rather than a particular wording of “Show All.” Devices syncing this information need the same Apple Account and an internet connection. Apple's Health backup guide

Do this before the handover, while you still have time to resolve an account or connection problem. If you are changing Apple Accounts as well as phones, do not treat that as the same procedure: the documented same-account sync path does not establish that history transfers between accounts.

Health data has specific protections in iCloud. Apple says that with iOS 12 or later and two-factor authentication enabled, it cannot read synced Health and Activity information. An exported file you save elsewhere does not automatically retain those protections. Apple's Health privacy explanation

3. Make an encrypted computer backup if you want a local restore path

Connect the iPhone to your computer and select it in Finder on a Mac, or Apple Devices on Windows. Choose Encrypt local backup, create and securely save its password, and complete the backup. If you use iTunes on an older supported setup, Apple documents that path too.

Check the completed backup's date and encryption indicator in the backup list. Merely enabling encryption is not evidence that the backup finished. You need the password to use the encrypted backup; resetting a forgotten password does not unlock older backups. Apple's encrypted-backup instructions

Store the password somewhere you can reach even if the old phone is unavailable. A password recorded only in an inaccessible app on the phone you just erased is a poor recovery plan.

4. Save an independent Health export

In Health, tap your profile picture and choose Export All Health Data. Apple's export uses XML, a structured text format intended for other software to read. Save the resulting archive somewhere you control. Apple's export instructions

Give the saved file a date and leave the original archive intact. Work from a copy when converting it. Open the archive to confirm it can be read, then inspect whether it contains the kinds of records and historical dates you expected. A large file size alone says little about completeness.

For spreadsheet work, PulsHealth exports selected types and dates as CSV, JSON, or JSONL directly on the phone, without a database. Free exports cover the most recent 30 days; Pro extends history subject to Health permissions. That makes a free recent export useful for analysis, but not a copy of years of history. Check the manifest’s requested range, complete, warnings, and notRepresented: CSV can omit details even when extraction finishes. See the export reference.

Keep the archive in protected storage. Besides measurements, it can contain source names and timestamps that reveal routines; an online converter receives whatever you upload to it.

Can you import the export back into Apple Health?

Do not plan a phone migration around that assumption. Apple's documented export is a sharing mechanism; its device migration instructions use the Apple transfer, sync, and backup workflows. A third-party importer is a separate product with its own supported types and behavior. It is not evidence that the full archive can be restored with its original meaning.

Use the export for independent access and analysis. Use Apple's supported migration path for the new phone.

5. Check the new phone before erasing the old one

Complete your chosen Apple setup process, then revisit the inventory from step one. Compare the same dates and records on both phones, rather than comparing two charts with different date ranges.

If you have an Apple Watch, follow Apple's pairing instructions for the new iPhone. The guide covers the Health settings to check, the old iPhone backup, and the Watch setup sequence. Follow its troubleshooting path if the Watch does not transfer as expected. Pair an Apple Watch with a new iPhone

If history is still arriving, repeat the comparison later. If particular records remain missing, retain the original phone and check the account, Health sync setting, and backup method before attempting resets.

Once the historical checks look right, confirm that new measurements appear too. Restored history and ongoing collection are separate things worth verifying.

If you also use PulsHealth

A synced PulsHealth database is useful for checking historical coverage outside the phone. Compare earliest and latest dates for the types that matter, and inspect whether a dataset contains raw samples or only aggregate values. “Connected” does not mean every type and every year has been uploaded.

That database also needs protection. The self-hosted stack's backup service is opt-in; a running Postgres volume is not a separate backup. Follow the backend's backup instructions and test recovery on a scratch stack. Never run a destructive restore drill against your only live database. Backend and backup documentation

After moving phones, reconnect PulsHealth and verify a new record reaches the intended account. Its device-specific connection state should not be assumed to travel with the phone backup. The privacy policy explains what is stored on-device and excluded from backups.

The point at which to erase the old phone is after you have a usable recovery path, recognizable historical records on the new phone, and evidence that new data is arriving. A completed setup screen is only the beginning of that check.

apple-healthbackupprivacyguides

Keep reading

The rest of the blog, or the reference pages for every health data type.