Updated October 25, 2026: corrected the app’s inclusive End-date picker, clarified free export history, and tightened the spreadsheet walkthrough.
Apple’s built-in Health export gives you XML, not an Excel workbook. For a spreadsheet, you can convert the XML locally or export CSV directly with PulsHealth. Neither route needs a database. PulsHealth’s free exports cover the most recent 30 days; Pro extends the available history, subject to your Health permissions. Free and Pro
The important decision comes before the download: do you want every recorded measurement, or one useful number per day? A file containing every step-count sample is not the same thing as a table of daily steps. Choosing the right representation makes the rest much easier.
I build PulsHealth, so this guide includes its on-device export alongside Apple's built-in option. You do not need to sync to a PulsHealth database to export a file.
At a glance
Choose the row before you make the chart
How many steps each day?
- Daily aggregate
- One selected daily series
- Daily column chart
Keep the type, function, interval, and device filter consistent.
When was this measurement taken?
- Raw samples
- Timestamp + value + source
- Individual observations
Preserve the records. Adding overlapping sources does not recreate a daily Health total.
Choose the export that fits your question
| Your goal | Start with | Why |
|---|---|---|
| Keep an independent copy of Apple's export | Health's XML export | It preserves a broad export in Apple's format |
| Chart daily steps in a spreadsheet | A daily aggregate CSV | One bucket per day avoids manually combining raw device records |
| Inspect individual heart-rate readings | A raw-sample CSV | It retains the time and source of each reading |
| Analyze detailed metadata or replay a PulsHealth export | PulsHealth JSONL | CSV omits some fields and entire kinds of data |
A CSV is a text table. Excel, Numbers, and other spreadsheet tools can work with it, but it has no chart formatting or formulas until you add them. Save your finished analysis as a workbook to retain those additions.
Option 1: use Apple's built-in XML export
On your iPhone, open Health, tap your profile picture or initials, and choose Export All Health Data. Follow the sharing options to save or transfer the export. Apple documents this as an XML export, rather than a CSV or Excel workbook. Apple's export instructions
Keep the original export unchanged. Make a working copy for conversion, then decide which records you actually need. A step-count chart does not require uploading your complete history to a website.
Renaming an XML file to .csv does not convert it. XML represents structured records and attributes; CSV needs an explicit choice of columns and rows. A local converter should let you select a type, preserve timestamps and units, and retain the source name. If it silently turns all records into daily totals, establish how it handles overlapping sources before relying on the result.
Our Python analysis tutorial starts with CSV files; it is not an XML converter. For the spreadsheet workflow below, exporting CSV directly avoids that conversion step.
Option 2: export CSV directly from PulsHealth
In the PulsHealth app, the Export tab reads HealthKit and creates files on the device. The export is separate from Sync: changing the export selection does not change what you sync to a database. The export reference documents the formats and their limitations.
For a first export:
- Grant read access to the types you want to export.
- Open Export and select a small date range, such as the last 30 days.
- For a daily steps chart, add Step Count under Aggregates and select its daily total. For individual measurements, choose the type under Raw Samples instead.
- Choose CSV. Open More options and turn on Zip into one file if you want one transfer containing the datasets and manifest.
- Run the export with the app open and phone unlocked.
- Read the result, then use Share or Save to Files. Save it before starting another export.
The app stages exports temporarily and removes its staged copy after sharing or at the next launch. Your saved destination is the lasting copy. If you save to a cloud-synced folder, that provider receives the file even though producing the export itself did not require an upload.
Read the result and its manifest before charting. Alongside the range, time zone and row counts, check complete, failures, warnings and notRepresented. An extraction can finish successfully while CSV intentionally omits ECG traces or other details. An unexpectedly short history also deserves a comparison with Health: “complete” describes the export operation, not proof that every expected measurement exists.
In the app’s custom range, End is the last day to include. For all of September, choose Start September 1 and End September 30. Internally, the exporter turns that choice into an exclusive boundary at October 1 midnight. The manifest and server API use that exclusive boundary; the app’s date picker does not. A daily aggregate crossing the internal end is excluded rather than presented as a complete day.

Open the right CSV
With the default Separate datasets layout, PulsHealth creates a separate CSV for each dataset containing rows. These files answer different questions:
samplescontains individual quantity and category records. It includes type, unit, start and end times, value, and source.aggregatescontains the configured statistical series. It includes the type, function, interval, device filter, bucket boundaries, value, and unit.workoutscontains workout records, including duration, distance, and energy where available.activitycontains daily activity-ring values and goals.
For other layouts, open More options → Layout. You can choose one file per type, one combined table, or a daily summary of one-day aggregate series. A combined table keeps separate records; it does not add raw readings and aggregates together. CSV layouts
The on-device export does not contain the server's daily_metrics or sleep datasets. Those are computed server views. On the phone, daily quantity summaries are aggregates; sleep-stage records are samples. This distinction matters when following examples written for the server API.
For aggregates, filter to one type, function, interval, and device filter before charting. Otherwise, a file containing daily and weekly steps or several device-specific series can appear to have duplicate dates.
Build a first chart in Excel
Use this synthetic example CSV to practice. It is an illustrative daily table, not a raw PulsHealth export and not anyone's health history:
| date | steps |
|---|---|
| 2026-05-01 | 6420 |
| 2026-05-02 | 8150 |
| 2026-05-03 | |
| 2026-05-04 | 7340 |
In desktop Excel, use Data → From Text/CSV, or the equivalent import command for your version. Select comma as the delimiter and inspect the preview. Microsoft recommends this import route when you need control over how text-file columns are interpreted. Microsoft's CSV guide
Import date as a date or as text in the displayed YYYY-MM-DD format, and steps as a number. Select the two columns and insert a column chart. Label it “Daily steps — synthetic example” and leave the missing day blank. Check the chart's empty-cell settings if it displays that day as zero.

Download the finished Excel workbook to inspect the chart and formulas. Cells A1:B5 match the practice CSV; the missing input stays empty.
For the three observed days, =AVERAGE(B2:B5) returns approximately 7,303 steps. Dividing their sum by four returns 5,477.5, a different result that implicitly treats the missing day as zero. Neither number should be called a four-day measured average without explaining the missing observation.
In a real aggregate export, use the filtered series' bucket start for the horizontal axis and value for the vertical axis. PulsHealth timestamps are Unix milliseconds. In Excel's usual 1900 date system, this converts an instant in cell A2 to a UTC date-time:
=DATE(1970,1,1)+A2/86400000Format the result as a date-time. That formula does not convert UTC into your local time zone. Keep the export's time-zone context when assigning local days; subtracting a fixed offset across a daylight-saving transition can mislabel them.
Three checks before trusting the chart
Do not add overlapping sources blindly. Apple Health prioritizes data sources, and raw exports can contain records from both your iPhone and Watch. A spreadsheet sum does not automatically reproduce Health's total. Use an appropriate aggregate, or investigate the overlaps as explained in why step counts do not match. Apple's source-priority explanation
Keep missing values separate from zero. PulsHealth CSV uses an empty cell for a null value. “No reading available” and “measured zero” make different statements.
Keep units and provenance. Record the export date, selected range, time zone, type, and aggregation. Preserve source text as text during import: a spreadsheet may interpret a source name beginning with a formula character as a formula.
Start with one metric and a short range. Once the values agree with the question you meant to ask, expand the history or move on to viewing your data on a Mac or PC.
For a side-by-side comparison of setup, data destinations and limitations, see Choose an export or sync workflow.