How to export Apple Health data to CSV

A step-by-step guide — from your iPhone to Excel, Google Sheets, or AI tools.

Last updated: July 3, 2026

To export Apple Health data to a CSV file, install the HealthExport app on your iPhone, grant it read access to the health data types you need, pick a date range and aggregation, and share the resulting CSV via AirDrop, email, or iMessage. The CSV opens directly in Excel, Google Sheets, and Apple Numbers, and works well as input for AI tools like ChatGPT or Claude.

Apple's built-in export produces a single XML archive of your entire health history, which spreadsheets can't open directly — see the comparison below.

Step-by-step

  1. Install HealthExport from the App Store (one-time purchase).
  2. Grant health access. On first launch, allow read access for the data types you want to export. You can change this later in the Health app under Sharing → Apps and Services → HealthExport.
  3. Select data types. Choose from 100+ types: aggregated types (steps, active energy, exercise time…), record-based types (weight, blood pressure, raw heart rate, sleep stages…), and workouts. Tip: select only the types you actually need — the CSV stays focused instead of sparse.
  4. Select dates and aggregation. Pick a date range, and for aggregated types choose the period: minutes, hours, days, months, or years.
  5. Export and share. Generate the CSV and share it via AirDrop, email, iMessage, or the Files app. Workout routes are exported as GPX files.

Example export files: aggregated by days, record-based, workouts, workout route (GPX).

HealthExport CSV vs. Apple's built-in XML export

The Health app can export your data itself (profile picture → Export All Health Data), but the result is very different:

Apple's built-in export HealthExport
Format ZIP archive containing XML (export.xml) CSV (workout routes as GPX)
Opens in Excel / Google Sheets No — XML needs conversion first Yes, directly
Scope Always the entire health history Only the data types and date range you select
File size Often hundreds of MB after years of use Small — only what you asked for
Aggregation None — raw records only Minutes, hours, days, months, years, or raw records
Automation Manual only Apple Shortcuts, or background sync with HealthExport Remote (CLI & API)

Analyzing the export with AI tools

A CSV export can be attached directly to a conversation with ChatGPT, Claude, or similar tools for analysis. For continuous, automated access, HealthExport Remote syncs your health data in the background and exposes it through an open-source CLI that works with Claude Code, Codex, and scripts — data stays end-to-end encrypted, and decryption happens on your own machine.

Common questions

Questions? Email hello@healthexport.app.