Apple Health Data Anonymizer
Strip your name, birth date, device IDs, and clinical records from export.xml before sharing it with ChatGPT, Claude, a doctor, or a researcher. Free, private, and runs entirely in your browser — nothing is uploaded.
Drop your export.xml here, or click to choose
Large files (100 MB–1 GB+) are fine — they are streamed in chunks, never fully loaded.
What to strip / mask
Your file is read, transformed, and saved entirely on this device. No part of it is uploaded — you can even turn off Wi-Fi and it still works.
How to anonymize your Apple Health data
- 1On your iPhone, open Health → profile photo → Export All Health Data. You'll get a ZIP. Unzip it and find
export.xml. - 2Drop
export.xmlinto the box above (or click to choose it). - 3Leave every box checked for maximum privacy, or fine-tune what to strip. Optionally turn on date shifting.
- 4Click Anonymize file, review the before/after preview and summary report, then download your cleaned copy.
- 5Share the cleaned file with ChatGPT, Claude, your doctor, or a researcher — the original never leaves your Downloads folder.
Why anonymize Apple Health data before sharing it with AI?
Pasting your Apple Health export into ChatGPT or Claude is one of the fastest ways to get plain-English insight into your heart rate, sleep, and activity. But the raw export.xml that Apple produces is not just numbers — it's a dossier. Buried inside are your exact date of birth, blood type, skin type, the names of your devices (which usually include your first name, like "Keith's Apple Watch"), hardware serial numbers, and even ClinicalRecord entries that point to medical documents named after you. Once that text is pasted into a chatbot, you no longer control where it's stored, whether it trains a future model, or who can subpoena it.
This tool solves that in one step. It reads your export, removes or masks the identity fields, and hands you back a cleaned copy that keeps every health value intact — so the analysis still works, but the file no longer screams your name. Because everything happens in your browser, the sensitive original is never uploaded to us or anyone else.
What personal information is hiding in export.xml
- The
<Me>element — your date of birth, biological sex, blood type, Fitzpatrick skin type, and a flag for cardio-fitness medication use. This is the single most identifying block in the file. sourceNameattributes — the display name of each device or app that recorded data. Apple defaults these to things like "Keith's iPhone", leaking your first name across tens of thousands of records.deviceattributes — hardware model, manufacturer, and identifiers that can fingerprint your specific watch or phone.ClinicalRecordelements — links to external FHIR JSON files that are frequently named after you and contain lab results, medications, and diagnoses.
How the anonymizer works (and why it's trustworthy)
Apple Health exports are commonly 100 MB to over a gigabyte, so this tool never loads the whole file into a parser — that would freeze or crash your browser tab. Instead it reads the file in small chunks, applies targeted regular-expression replacements to each chunk, and streams the cleaned text straight into a downloadable file. Your profile data is anonymized, possessive names like Keith's Apple Watch are collapsed to Apple Watch, device attributes are dropped, and ClinicalRecord blocks are deleted. Because the transform is line-oriented and never re-orders anything, the output stays a valid Apple Health export.
Before you download, the tool shows you a before/after preview of the first changed lines plus a summary report counting exactly how many device attributes were removed and how many source names were masked. Nothing is hidden — you can see precisely what changed.
Date shifting: preserving trends while breaking the calendar link
Even after names are stripped, the exact timestamps in your file can be identifying — the day you flew, the night you didn't sleep, the week you were in hospital. Optional date shifting adds the same random number of days to every single date in the file. Because the offset is constant, the gap between any two readings is unchanged, so trends, streaks, and interval-based analysis stay perfectly accurate. What changes is that the data no longer aligns with the real calendar, decoupling it from your actual timeline. The tradeoff: day-of-week effects and seasonality shift by the same amount, so if your analysis depends on "weekends" or "summer," leave date shifting off.
Want to go deeper on keeping health data private? Read Private Health Data Analysis: How to Keep Your Apple Health Data Yours and The Limitations (and Risks) of Using ChatGPT for Health Data.
A note on "anonymous." Health data can rarely be made truly anonymous — behavioural patterns alone can sometimes re-identify a person. This tool removes direct identifiers, which meaningfully reduces risk, but treat the result as pseudonymized and still share thoughtfully. It is not medical or legal advice.
Frequently asked questions
Is my health data uploaded anywhere?
No. The anonymizer runs 100% in your browser using JavaScript. Your export.xml is read from your device, cleaned in memory, and saved back to your downloads folder. Nothing is ever sent to a server.
What personal information does it remove?
By default it strips your date of birth (or reduces it to a birth year), blood type, skin type and cardio-fitness medication flags from the <Me> element, masks possessive device names like "Keith's Apple Watch" down to "Apple Watch", removes device hardware-identifier attributes, optionally removes sourceVersion, and deletes ClinicalRecord elements.
Is anonymized data safe to paste into ChatGPT or Claude?
Removing direct identifiers greatly reduces risk, but health data can never be guaranteed fully anonymous — patterns in your data may still be identifying. Treat the cleaned file as pseudonymized, not truly anonymous, and only share what you need.
What is date shifting and should I use it?
Date shifting moves every date by the same random number of days. Intervals and trends stay identical, so analysis still works, but the data no longer lines up with the real calendar. The tradeoff is that day-of-week and seasonal patterns shift, so leave it off if those matter.
Does anonymizing change my health values or trends?
No. Every heart rate, step count, sleep record and workout value is preserved exactly. Only identity fields are stripped or masked. With date shifting on, values stay the same and only the calendar dates move by a constant offset.
Why not just delete the Me element and share the rest?
The <Me> element is the biggest source of identity, but not the only one. sourceName attributes often contain your first name, device attributes carry hardware identifiers, and ClinicalRecord elements point to files named after you. A good anonymizer cleans all of these.
More free Apple Health tools
Want deeper analysis?
Once your data is clean, get real insights into your trends, recovery, and sleep — privately.