How to export Apple Health data to AI — the easy, private way

Want ChatGPT or Claude to analyze your iPhone health data? You can export an XML archive — or connect only the data you choose, kept up to date and encrypted. Here’s how both methods compare.

Download Health to AI on the App Store

Updated · GRAVITY Inc.

Method 1: The built-in Apple Health export (XML)

  1. Open the Health app on your iPhone.
  2. Tap your profile picture in the top-right corner.
  3. Scroll down and tap Export All Health Data, then confirm.
  4. Wait while iOS prepares export.zip, then share or save it.

The ZIP contains export.xml (plus workout routes and ECG files if you have them). For years of Apple Watch data, the XML can easily reach hundreds of megabytes or more.

Problems when you give the XML to AI

  • Too big: many chatbots limit file size and context length, so the file gets truncated or rejected.
  • Hard to parse: millions of raw samples with nested attributes rather than clean daily summaries.
  • Instantly outdated: it’s a one-time snapshot; you must re-export to update.
  • All or nothing: it includes every category, even data you’d rather keep private.
  • No control afterwards: once uploaded, you can’t see what was read or revoke access.

Method 2: Connect Apple Health to AI with Health to AI

  1. Install Health to AI (free, iOS 17+).
  2. Pick the data types to share — e.g. only sleep and heart rate.
  3. Data is summarized daily or hourly and encrypted on your iPhone, then synced.
  4. Authorize ChatGPT, Claude, Gemini or Cursor via MCP + OAuth or a read-only API key.
  5. Ask questions. Your AI fetches just the data it needs.

Side-by-side comparison

XML exportHealth to AI
File handlingLarge ZIP/XML you upload manuallyNo files — AI queries an authorized connection
FreshnessStatic snapshotSynced from your iPhone
What’s sharedEverythingOnly the types you choose
AI-friendlinessRaw samplesDaily / hourly summaries
EncryptionDepends on where you put itAES-256-GCM on device; ciphertext in cloud
Revocation & auditNot possibleAccess log + one-tap revoke

Still need a raw file for a spreadsheet or research tool? The built-in export is fine for that. For everyday conversations with AI, a live connection is simply better.

Frequently asked questions

How big is the Apple Health export file?
It depends on how long you’ve used iPhone and Apple Watch. Several years of data commonly produces an XML file of hundreds of megabytes, often too large for chatbots.
Can I convert Apple Health data to CSV?
The Health app exports XML only. Third-party tools can convert it to CSV. If your goal is AI analysis, connecting with Health to AI avoids file conversion altogether.
Does Health to AI export my data to a file?
No. It syncs encrypted summaries of the types you choose so authorized AI tools can query them. It never writes to Apple Health.

Keep reading

Give your AI the health context you choose

Install Health to AI, pick the Apple Health data you want to share, and connect ChatGPT, Claude or another AI tool in a few minutes. You stay in control of every connection.

Download Health to AI on the App Store

Free on the App Store · iPhone & iPad · iOS 17+