How to remove personal information from a PDF before sharing it
Guide · updated 17 November 2026
The short answer: a PDF holds information in several separate places, and no single tool cleans all of them. Names and numbers printed on the pages are removed with Redact PDF. The author, software and dates are removed with Strip PDF metadata. Comments and highlights come off with Remove annotations. Attached files and scripts are deleted with Sanitize PDF. This guide says exactly what each one removes, what it leaves, and in which order to run them.
Where a PDF keeps information you cannot see
Before deciding what to run, it helps to know what can be in the file besides the pages.
- The information record: title, author, subject, keywords, the program the document was written in, the program that produced the PDF, and the dates it was created and last modified.
- The XMP packet: a second copy of the same details that many files carry, which often adds an editing history. Single pages and embedded images can have XMP packets of their own; an embedded photo commonly has one naming the camera or the editing software.
- Annotations: comments and replies, sticky notes, highlights, drawings and stamps added during a review, with reviewer names.
- Attached files: a spreadsheet behind a report, the XML of an electronic invoice, the source of a drawing.
- Earlier revisions: a file that was edited and saved in place keeps its older versions inside it.
- Text that is present but not visible: words under a black box someone drew, text in the colour of the background, text placed outside the page area.
- Form field values: whatever was typed into a fillable form.
Step 1: look at what the file reports
Three tools read the file and change nothing. Run them first so you know what you are dealing with.
- PDF metadata returns the information record and the XMP packet as a small JSON report. A field the file does not set is shown as null.
- Check redaction reports text that is in the file but cannot be seen, and flags earlier revisions, attachments and XMP metadata. It examines the first 100 pages.
- Extract attachments saves each attached file under its original name, so you can see what is travelling inside the document.
These reports quote what they find. A report that lists hidden text is as sensitive as the document it came from.
Step 2: remove what is printed on the pages
Anything a reader can see, such as a name in a header, an address, an account number or a signature, is page content. Only redaction removes it. In Redact PDF you drag a black box over each item; every page you mark is then replaced by a 200 dpi picture of itself, and the original content of that page is deleted from the file. Pages you did not mark are left exactly as they were, so the same name on an unmarked page is still there.
Two things that look like removal and are not. Drawing a rectangle over text in a PDF viewer leaves the text underneath. Cropping with Crop PDF hides the trimmed area from view and from print, but the area stays inside the file. The full procedure, including how to check the result, is in how to redact a PDF properly.
Step 3: remove the document properties
Strip PDF metadata has no options. Every time, it deletes:
- the whole information record: title, author, subject, keywords, creator, producer, both dates and any extra entries a program added,
- the XMP packet of the document,
- XMP packets attached to single pages or to images inside the file,
- private application data that authoring programs store about the document or a page.
The data is deleted from the saved file, not blanked, so the fields are absent afterwards. What it does not touch: the visible pages, attached files, comments and highlights with reviewer names, values typed into form fields, and camera data stored inside the pixel data of an embedded photo.
Step 4: remove comments and highlights
Remove annotations takes comments, sticky notes, highlights, underlines, drawings, stamps and attachments pinned to a page off every page at once. Form fields are kept while Keep form fields is ticked, and links are kept unless you tick Also remove links.
Two limits matter for privacy:
- The annotations are detached so that no reader shows or prints them, but traces of a removed note can remain inside the file for someone with specialist software. For a note that must not survive, redact the page it sits on, which deletes that page's comments from the file.
- Mark-up that was drawn into the page itself, for example comments that were printed to PDF, is page content. It stays, and only redaction removes it.
Step 5: remove attachments, scripts and outbound links
Sanitize PDF removes the parts of a PDF that act instead of display: the action that runs when the file opens, scripts, attached files, and links and bookmarks that open a website or launch a program. Script and attachment data is deleted from the saved file, not only hidden from the list a reader shows. Save anything you still need with Extract attachments first.
The side effect is that web links stop working. Links and bookmarks that jump within the document are kept, and form fields are kept without their scripts. Sanitizing is not a virus scan, and it does not handle comments or document properties.
Form answers
None of the tools above clears what was typed into a form. Flatten PDF does the opposite of removing: it draws every value onto the page and deletes the field, so the answers become page content. If a form answer has to go, flatten the form and then redact that area, or redact the page directly, which removes the fields on it together with their values.
The order to run them in
- Inspect: PDF metadata, Check redaction, Extract attachments.
- Redact the pages. Do this first, because it changes the most.
- Strip metadata from the redacted file.
- Remove annotations.
- Sanitize, to drop attachments and scripts.
- Inspect again: run PDF metadata and Check redaction on the final file and compare with the first reports.
Each step takes the output of the one before. A protected PDF is refused by all of them until it is unlocked; add a password again with Protect PDF at the very end if you need one.
What these tools cannot promise
No tool knows what counts as personal in your document. A check that finds nothing has not shown the file to be safe; it has shown that the specific things it looks for were not found in what it examined. Read the final file yourself, the way the recipient will, before it leaves your hands.
Files you upload to any of these tools, and the results, are deleted automatically within one hour.