Apple Health Export to CSV

Drop in export.zip from the Health app (or the export.xml inside it). You'll see every data type with its record count, then pick the ones you want as CSV. The file is read in this tab and nothing is uploaded.

Apple Health Export to CSV

Turn the export.zip or export.xml from your iPhone's Health app into clean CSV files you can open in Excel. Works with multi-gigabyte exports, shows your steps per month, and the file never leaves your computer.

Drop your file here or click to browse

export.zip straight from your iPhone, or the export.xml inside it

Big zips are read without unzipping them first. If your browser is too old for that, unzip the file and pick export.xml.

Your data never leaves your browser. All processing happens locally.

What Apple gives you when you export Health data

On an iPhone, open the Health app, tap your profile picture in the top corner and scroll right to the bottom. Export All Health Data is the last button on that screen. After a minute, or ten if you've worn an Apple Watch for years, the phone hands you a file called export.zip. Unzip it and there's a folder named apple_health_export with export.xml inside, plus export_cda.xml, a workout-routes folder full of GPX files and, if you've ever taken an ECG on the watch, an electrocardiograms folder.

The file that matters is export.xml. Every step count, heart rate reading, sleep stage, weight entry and workout that Health has stored lives in there as one enormous list of XML elements. It's also where most people give up. A watch worn every day for five or six years easily produces a file over 1 GB, and exports of 3 or 4 GB aren't unusual. Excel won't open it. Neither will Numbers. Most online converters want you to upload it first, which takes ages, and then fall over anyway because they try to load the whole thing into memory in one go.

How this converter copes with a file that size

It never holds the whole file at once. The page reads export.xml in 4 MB slices, picks out each Record and Workout element as it passes, and lets the rest go. When an element gets cut in half at the edge of a slice, the leftover piece is carried forward and finished with the next one, so nothing is lost or counted twice. Memory use stays roughly flat whether your export is 50 MB or 4 GB. What changes is how long it takes, and the progress bar shows how far along it is. There's a Stop button too, in case you picked the wrong file.

You can drop the zip straight in. The page finds export.xml inside it and unpacks it piece by piece while it reads, so there's no need to unzip a 4 GB archive first. That relies on a feature in current Chrome, Edge, Firefox and Safari. If your browser is older and can't do it, you'll get a clear message, and you can unzip on your computer and pick export.xml instead.

Getting export.zip off your iPhone

  1. Open Health and tap your profile picture at the top right.
  2. Scroll down, tap Export All Health Data, then confirm with Export.
  3. Wait. A long history can take ten minutes or more, and the phone should stay unlocked while it works.
  4. When the share sheet appears, save the file to Files, iCloud Drive or AirDrop it to a Mac.
  5. Open this page on your computer and drop export.zip on the upload box.

Two passes: first a look, then the export

Want a quick look at a CSV before opening Excel? The CSV viewer shows it as a sortable table right in the browser.

The first pass only counts. When it's done you see every data type in your export with the number of records and the first and last date, biggest at the top. Health uses identifiers like HKQuantityTypeIdentifierStepCount, which nobody wants to read, so the list says Steps, Heart rate, Sleep and so on, with the raw identifier underneath in small print in case you need it for a script.

Tick the types you want, set a date range if you only need part of your history, and press the button. The second pass reads the file again and writes one CSV per type. Each CSV is assembled in small pieces and only joined into a file at the very end, which is why a heart rate CSV of a few hundred megabytes doesn't crash the tab.

  • Regular records get the start date, end date, UTC offset, value, unit, duration in minutes, source name, source version, device and creation date, with the raw type in the last column.
  • Sleep and other category data get their values written as words. You'll see Asleep Core, Asleep Deep, Asleep REM, Awake or In Bed instead of HKCategoryValueSleepAnalysisAsleepCore. The duration column gives the length of each stage in minutes, so totalling sleep per night is one pivot table away.
  • Workouts get the activity, start and end, duration, distance, active energy, average and max heart rate, source and device. Recent versions of iOS moved distance and calories out of the workout itself into child elements. The converter checks both places, so old and new workouts end up in the same columns.

Steps per month, and why the totals look doubled

As soon as the scan finishes you get a table of steps per month. Each month has two numbers, and the gap between them surprises almost everyone. If you carry an iPhone and wear an Apple Watch, both count steps and both end up in the export. The Health app hides this by trusting one source at a time. A plain sum of the export doesn't, so a month you remember as 240,000 steps can add up to 440,000.

The estimate column handles that by taking whichever device counted more on each day. It lands close to what the Health app shows, though not always to the exact step, because Apple's own merging works minute by minute. The all records column is the raw sum, left there on purpose so you can see the double counting for yourself. If you build your own totals from the steps CSV, filter on source_name first.

Dates, time zones and Excel

If you'd rather hand someone a proper .xlsx file, run any of these CSVs through the CSV to Excel converter.

Apple writes dates like 2024-03-09 07:41:22 -0500. Excel doesn't understand the offset on the end and treats the whole cell as text, which ruins sorting and charts. So the converter splits it. The date and time go in one column in a format Excel recognises straight away, and the offset gets its own column. If you travel a lot, that column also tells you which readings were taken in which time zone.

One thing to keep in mind: Excel stops at 1,048,576 rows. Steps, weight and sleep never get near that. Heart rate can, because the watch takes a reading every few minutes and years of it pile up into millions of rows. If you need heart rate in Excel, use the date range and export a year at a time. Python, R and most databases don't have that limit and will happily take the full file.

The CSVs are saved as UTF-8 with a byte order mark, so a source called Zoë's Apple Watch keeps its accent when Excel opens it. Any cell that starts with =, +, - or @ and isn't a plain number gets a leading apostrophe, which stops an odd app name from turning into a formula the moment you open the sheet.

Your health data stays on your computer

A Health export is about as personal as a file gets. Heart rhythm, years of weight history, sleep, cycle tracking, sometimes medications and lab results. That's the main reason this tool runs entirely in the browser. JavaScript in this tab reads the file and builds the CSVs, and that's the whole story. Nothing is uploaded, there's no account, and closing the tab clears it all. You can check: load the page, switch off your wifi, then run the whole thing from start to finish.

Who uses it

People who want to chart their own weight or resting heart rate across years in a spreadsheet, without paying for an app to do it. Runners who want every workout in one sheet to compare seasons. Coaches and researchers whose clients or study participants send in their exports. Someone moving from an Apple Watch to Garmin or Fitbit who wants their history somewhere they control before they switch. And plenty of people who just want to know how far they really walked last year.

What it doesn't do

It leaves out the activity ring summaries, ECG recordings, workout GPS routes and clinical records. The routes are already GPX files in the workout-routes folder, and most mapping tools open those directly. It can't fill gaps either. If the watch spent a night on the charger, there's simply nothing in the export for those hours, and no converter can invent it.

Got your location history from Google too? The Google Maps Timeline viewer opens that export the same private way.

Frequently Asked Questions About Converting an Apple Health Export to CSV