Home / Export Apple Health data to CSV or JSON

Export Apple Health data to CSV or JSON

Health to Mac gives you two independent ways to export Apple Health data, and both can produce CSV or JSON. The free iPhone app exports on its own, with no Mac. The Mac app takes over when you want exports to run on a schedule, to more places, from the local database.

On the iPhone: a one-off file

  1. Open the free Health to Mac iPhone app.
  2. Choose a date range: the last 7 days, 30 days, 12 months, or all of your history.
  3. Choose JSON or CSV, then save the result to Files. JSON is one document; CSV is one file per section.

That file is yours to keep, share or open in a spreadsheet. The iPhone app can also POST new data to a REST API you own after every sync, which needs no Mac at all.

On the Mac: exports that run by themselves

  1. In the Mac app, pick what to send: individual data types, daily values or raw samples, and a date range.
  2. Add a destination and, if it needs one, a password or token — these stay in the macOS Keychain.
  3. Set the schedule: when new data arrives, every few hours, or daily at a set time.

Exports can run while the app is open or from cron or launchd. Each destination remembers where it left off and sends only what is new, so a schedule does not re-upload your whole history every time.

Where the Mac app can send

  • Files: one JSON document, or one CSV file per section, into any folder, including iCloud Drive, Dropbox and Google Drive.
  • Email: the export as attachments, zipped when large, through iCloud Mail, Gmail, Fastmail, Outlook.com or any SMTP server.
  • REST: JSON POST requests with a bearer token or your own headers, sent in batches and retried after network errors.
  • MQTT: one message per record to any broker, with TLS and QoS 0 or 1.
  • Home Assistant: sensors for steps today, active energy, exercise, distance, resting heart rate, HRV, weight, last night's sleep and the time of the latest health data, appearing automatically through MQTT Discovery.

What stays true in both cases

There is no account and no server of ours in the middle. Data leaves your devices only for a file you save, a destination you configure, or the paired Mac. The iPhone app reads Apple Health and never writes to it. The Mac app reads its own local database, so scheduled exports keep working while the iPhone is asleep. Every destination is included in the one-time price of the Mac app — there is no per-export fee and no subscription.

See scheduled exports on the home page, or the five short answers these guides expand on.

Buy for $15 $10