Guide
How to Convert Apple Health Data to CSV for AI Analysis
Your iPhone has years of health data. Getting it into a format that ChatGPT, Claude, or Gemini can actually read takes about 60 seconds.
Why CSV is the right format for AI health analysis
CSV (Comma-Separated Values) is the universal format for structured data. Every AI tool — ChatGPT, Claude, Gemini, Copilot — can read and analyze CSV files natively. It's also the format used by Excel, Google Sheets, and data analysis tools like Python and R.
Apple Health stores your data internally using HealthKit, but when you export it through Apple's built-in feature, you get a massive XML file that's too large and too complex for AI tools. Converting that data to CSV bridges the gap.
Structured
Rows and columns that AI tools can parse instantly
AI-Compatible
Works with ChatGPT, Claude, Gemini, Copilot, and more
Compact
95–99% smaller than Apple's XML export
Ways to convert Apple Health data to CSV
There are a few approaches. Here's how they compare:
Use a dedicated iPhone app
EasiestAn app like AI Health Export reads directly from Apple HealthKit and creates CSV files on your iPhone. No XML export needed, no computer needed, no code to run. You select your metrics, pick a time range, and get AI-ready files in under a minute.
- Works entirely on iPhone
- 89 metrics available
- Includes AI prompt templates
- 100% local processing
Use a Python script on your computer
Open-source scripts on GitHub can parse the Apple Health XML export and output CSV files. You need a Mac or PC with Python installed, the exported XML file transferred from your phone, and comfort with the command line.
- Requires a computer with Python
- Must transfer the XML file from your iPhone first
- May need debugging for newer Apple Health data formats
- No AI prompt templates included
Manually copy data into a spreadsheet
You can open the Apple Health app, view individual metrics, and type values into a spreadsheet. This works for a handful of recent readings but isn't practical for historical data or multiple metrics.
- Extremely time-consuming
- Limited to visible data in the Health app
- Prone to transcription errors
- Impractical for more than a few data points
Step-by-step: iPhone to ChatGPT in 3 steps
Using AI Health Export, here's the complete workflow from Apple Health data to AI analysis:
Choose your data
Open AI Health Export on your iPhone. Select the health metrics you want to analyze — sleep, heart rate, steps, HRV, workouts, nutrition, or any combination of the 89 available metrics. Choose a time range: 7 days (free), or up to your complete history with Premium.
Export to CSV
Tap export. The app reads your data from Apple HealthKit directly — no XML export needed. In under 60 seconds, you get clean CSV files organized by metric, plus an AI Data Guide with your health profile and ready-to-use prompts. Everything stays on your device.
Upload to your AI tool and ask questions
Share the CSV files to ChatGPT, Claude, Gemini, or any AI platform. Use the included prompts or ask your own questions. The AI can now see your actual data — not a summary chart, not a screenshot, but every data point across your selected time range.
What health metrics can you convert to CSV?
AI Health Export supports 89 metrics across every category Apple Health tracks. Here are the most popular for AI analysis:
Activity & Fitness
Steps, distance, flights climbed, active energy, basal energy, cycling distance, swimming distance, running speed and power, workouts
Heart & Vitals
Heart rate, HRV, VO2 Max, blood pressure, blood oxygen, respiratory rate, resting heart rate, heart events (high/low HR, irregular rhythm), ECG summaries
Sleep
Total sleep duration, core sleep, deep sleep, REM sleep — with timestamps and stages for detailed AI pattern analysis
Body & Nutrition
Weight, BMI, body fat %, lean body mass, protein, carbs, fats, vitamins, minerals, water intake, caffeine, blood glucose, insulin
100% local processing — your data never leaves your iPhone
AI Health Export has no servers, no accounts, no cloud sync, and no tracking. Everything happens on your device. The CSV files exist only on your iPhone until you decide where to share them. Face ID protection ensures only you can export.
Start converting your Apple Health data
Free to start — 7 days of data, 20 metrics. Premium unlocks all 89 metrics and all time ranges for $14.99 once.