How to Anonymize a PDF Before Uploading to ChatGPT or Claude
Replace real names, SSNs, emails, and dollar amounts with reversible [PARTY_01] tokens locally before pasting PDF text into ChatGPT or Claude, then restore the real names offline.
Pasting a live client contract, medical chart, or M&A term sheet into ChatGPT or Claude is one of the fastest ways to breach a non-disclosure agreement or privacy statute. Even when an AI vendor promises not to train on API or enterprise inputs, your raw document still leaves your machine, crosses external networks, and sits in third-party server logs for abuse monitoring.
On the other hand, if you use permanent PDF redaction to black out every name, date, and dollar figure before prompting the model, the AI loses the plot. When every party in a contract is replaced with [REDACTED], the model can no longer tell who is paying whom.
The practical fix is reversible pseudonymization: replace real names, tax IDs, emails, and dollar amounts with numbered tokens locally on your machine, send only the tokenized text to the external model, and restore the real names locally once the model replies.

"Pseudonymization is a particular type of anonymization that both removes the association with a data subject and adds an association between a particular set of characteristics relating to the data subject and one or more pseudonyms." — NIST Special Publication 800-122, Guide to Protecting the Confidentiality of PII
Redaction vs. Pseudonymization: Which one do you need?
Before touching a file, decide whether the recipient is another human or an external AI prompt:
Workflow | What happens to the data | When to use it |
|---|
Permanent PDF Redaction | Destroys underlying text streams and pixels permanently; cannot be reversed | Sending a PDF to opposing counsel, a court, a landlord, or a FOIA requester (see how to redact a PDF safely) |
Reversible PII Pseudonymizer | Replaces entities with deterministic tokens ([PERSON_01], [SSN_01]) + a local JSON key | Summarizing, translating, or drafting clauses with ChatGPT, Claude, or Gemini without leaking real identities |
Local WebGPU RAG Chat | Runs vector search and Q&A strictly inside your browser tab | Querying sensitive PDFs when your policy forbids pasting anything into external cloud LLMs |
Step-by-step: Anonymize a PDF before pasting into ChatGPT or Claude
Load the PDF into a local pseudonymizer. Open SillyPDF's Reversible PII Pseudonymizer. Because it runs in client-side WebAssembly, your unredacted PDF stays in your browser's RAM.
Extract and tokenize the text. The engine scans for Social Security numbers, emails, phone numbers, currency figures, and named entities, swapping each unique match with a numbered token such as [PARTY_01], [EMAIL_01], or [AMOUNT_01].
Inspect the tokenized output for edge cases. Automated regex and local NER catch standard patterns and repeated exact names, but they can treat an abbreviated name (like "A. Meyer" vs. "Anna Meyer") as a separate string or miss a contextual trade secret (such as a codename or street landmark). Skim the tokenized text and manually mask any remaining clues before copying.
Save or keep your local cipher map. By default, the cipher key lives only in your active tab memory so no sensitive mapping lingers on disk when you close the browser. If you plan to come back tomorrow, export the .json cipher key to a local folder you pick.
Prompt the external LLM and restore locally. Paste the tokenized text into ChatGPT or Claude and ask it to keep the bracketed tokens intact in its response. Copy the AI's reply back into the Pseudonymizer to swap [PARTY_01] back to the real name on your machine.
What if you need to upload the actual PDF file instead of text?
Sometimes you have a multi-column layout or table where pasting plain text isn't enough, and you want to upload a PDF file directly to an AI attachment slot. Do not upload the original file. Instead:
FAQ
What is the difference between PDF redaction and pseudonymization?
PDF redaction permanently destroys sensitive text and pixels so no one can ever recover them—which is required when sending a PDF to a court, regulator, or opposing party. Pseudonymization replaces identifiers with consistent placeholders (such as [PERSON_01]) and keeps a separate local key so you can restore the original names after running text through an external tool.
Where is the cipher key stored when I anonymize a PDF on SillyPDF?
By default, the token-to-entity cipher map stays strictly in your browser tab memory for the active session so nothing sensitive is written to disk automatically. If you want to reuse the same mapping later, you can export the cipher key as a local JSON file to a folder you choose.
Can I query my PDF with AI without sending text to ChatGPT at all?
Yes. If you do not need an external cloud model, open SillyPDF's Multi-Doc Local RAG Chat, which runs embeddings and document Q&A entirely on your device using WebGPU and WebAssembly.
Should I still watch out for name variations like "Anna Meyer" vs. "A. Meyer"?
Yes. Exact matches across paragraphs automatically map to the same token, while abbreviated initials, nicknames, or typos inside OCR scans may receive a separate token or slip past regex rules. Always scan the tokenized preview before copying it into an external prompt.