Get Quiet Kit

How to anonymize patient data before using ChatGPT

Paste a clinical note below. Names, MRNs, dates, addresses, phone numbers and ages over 89 are swapped for placeholders, all inside your browser. Click Load sample to see it work on a fictional discharge note.

100% local text processing: your input never leaves your browser. The tool runs in an isolated frame that ads on this page can't read and that is blocked from making network requests. Need the mapping table, export or restore? Open the full tool.

Not legal or compliance advice. If you work for a covered entity or business associate, your privacy officer's rules come first. This guide explains the concepts so you can ask the right questions.

Can you put patient information into ChatGPT at all?

Identifiable patient information is protected health information (PHI) under HIPAA when a covered entity (a provider, health plan or clearinghouse) or its business associate holds it. Sharing PHI with an outside service generally requires a Business Associate Agreement (BAA) with that vendor, plus your organization's approval.

Personal or free chatbot accounts typically don't come with a BAA. Some AI vendors offer BAAs on certain business or API plans, but whether one covers your use is something your organization must confirm. If you can't confirm it, don't paste PHI.

There's a cleaner path for many everyday tasks: de-identify the text first. Under HIPAA, information that has been properly de-identified is not PHI. Rewriting a discharge summary in plain language, structuring a note into SOAP format or drafting a referral letter template rarely needs the patient's identity.

Step by step: de-identifying a clinical note

  1. Start with the minimum. Paste only the section the AI needs. A plain-language rewrite of the plan doesn't need the full history.
  2. Add names as custom terms. Add the patient, relatives, clinicians, facilities and small towns. Automated tools can't reliably tell a surname from a drug name, so custom terms are what catch them. Saved terms stay in your browser for next time.
  3. Let the rules catch structured identifiers. On this page the tool switches on the healthcare rules: MRN and patient IDs after a label, dates, phone and fax numbers, emails, URLs, street addresses, ZIP codes after a state code, and ages 90 and over.
  4. Read the masked output line by line. Look for things no pattern can know about: "the only dialysis patient in Harlan County", "the mayor", "admitted after the stadium collapse". Delete or generalize them.
  5. Keep the placeholder instruction on. The tool tells the AI to leave [PERSON_1] and friends alone, so the answer restores cleanly.
  6. Restore locally. Paste the AI's answer into Restore. Known placeholders turn back into real values; anything the AI invented is flagged in red.
  7. Close the tab when done. The mapping lives only in that tab's memory and disappears when you close it.

Before and after

A fictional excerpt, masked with the settings on this page:

Patient: Maria Gonzalez   MRN: 00482913   DOB: 03/14/1951
Address: 1187 Willow Creek Road, Springfield, IL 62704
...Lives with her 92-year-old husband, who is her primary contact.
Patient: [PERSON_1]   MRN: [MRN_1]   DOB: [DATE_1]
Address: [ADDRESS_1], [LOCATION_1], IL [ZIP_1]
...Lives with her [AGE_1] husband, who is her primary contact.

The clinical meaning survives (a 75-year-old with T2DM, a 7-day antibiotic course), and the identifiers are gone. The state ("IL") is kept on purpose: Safe Harbor allows the state.

HIPAA Safe Harbor checklist for clinical text

Safe Harbor (45 CFR §164.514(b)(2)) requires removing these identifiers of the patient and of their relatives, employers and household members:

IdentifierIn clinical notes, watch for…Handled by
NamesPatient, spouse, children, caregivers, employerCustom terms
Geography smaller than a stateStreet, city, county, ZIP (first 3 digits allowed only for areas over 20,000 people)ADDRESS, ZIP rules + custom terms
Dates (except year)DOB, admission, discharge, procedure and death datesDATE rule (common formats; check "Oct 2" style dates by hand)
Ages over 89"92-year-old", "92 y/o"AGE rule (or write "90+")
Phone and fax numbersPatient, family and pharmacy contactsPHONE rule
Email, URLs, IP addressesPatient portal links that contain IDsEMAIL, URL, IP rules
SSN, MRN, health plan and account numbers"MRN: …", "Member ID: …"SSN and MRN rules + custom terms
License, vehicle and device IDsImplant serial numbers, plates in trauma notesCustom terms
Biometrics and full-face photosNot text, so don't upload themn/a
Any other unique code or characteristicRare diagnoses, unusual occupations, newsworthy eventsYour judgment

Safe Harbor also requires that you have no actual knowledge that what's left could identify the person. That's why the final read-through matters more than any tool.

Tasks that work well with de-identified text

Ready-made prompts for these are on the HIPAA-aware AI prompt templates page.

Tasks to keep away from chatbots

FAQ

Is replacing names with placeholders enough for HIPAA?

Not on its own. Placeholders handle most structured identifiers. Safe Harbor also needs the free-text ones removed and no actual knowledge of re-identification risk. Treat the tool as doing the tedious 80% for you, then review the rest yourself.

Does the placeholder mapping count as a re-identification code?

HIPAA allows a covered entity to keep a re-identification code if it isn't derived from the patient's information and isn't disclosed. The mapping here stays in your browser tab and never goes to the AI. Don't paste it into the chat, and don't keep exported mapping files longer than you need them.

Does this work for GDPR health data too?

Health data is "special category" data under GDPR. Placeholder masking is pseudonymization, which lowers risk but leaves the data personal. See the GDPR / HIPAA compliance guide.

Is my text uploaded anywhere?

No. The tool frame's Content Security Policy (connect-src 'none') makes the browser refuse any network request from it. Open your browser's Network tab while you paste to check for yourself.

Where to go next