Stripping PDF Metadata: A Complete Paranoid's Guide

Somewhere on a company website right now sits a PDF that cheerfully announces its author's full name, their network username, the software licensed to a department that was dissolved three reorganizations ago, and the precise minute the file was last saved. Nobody put that there deliberately. Nobody checked before publishing. And yet it sits in near-plain text a few hundred bytes into the file, waiting for anyone with a text editor and mild curiosity.
PDF metadata is the lint in the pocket of the digital world. Harmless most days. Occasionally a receipt from somewhere you told everyone you had never been. Security researchers who scrape public sector and corporate document libraries routinely report that the large majority of published PDFs still carry author names, internal usernames or software fingerprints, and a meaningful slice carry internal file paths that map out an organization's network like a courtesy brochure. This guide is for the people who would rather not contribute to that dataset.
Everything Your PDF Says Behind Your Back
Removing PDF metadata is not one action. It is a sweep, because metadata hides in at least six different places and clearing one does absolutely nothing to the other five. Here is the full guest list:
- Document properties. The classic info dictionary: Title, Author, Subject, Keywords, Creator, Producer, plus creation and modification timestamps. This is the part everyone knows about and roughly nobody clears.
- XMP packets. A separate block of embedded XML that often duplicates the document properties and then adds extras like editing history, document IDs and original file names. Clear the properties panel and the XMP packet will happily keep singing.
- Annotation and comment authorship. Every sticky note, highlight and markup carries the name of whoever made it and when. A review cycle can leave a complete org chart stapled to page four.
- Bookmarks and outlines. Often generated from internal headings that were renamed before publication. The visible text changed. The bookmark did not.
- Embedded files and attachments. A PDF can carry other files inside it, each with its own metadata. Nested metadata is the matryoshka doll nobody asked for.
- Hidden content. Optional content groups (layers) that are switched off, form field values, cropped-but-still-present image areas, and objects left behind by incremental saves. Turned off is not the same as gone.
Strip It Like You Actually Mean It
The paranoid approach is order-dependent, because some steps regenerate what earlier steps removed. Work through it in this sequence:
- Flatten first. Flatten form fields, annotations and layers so their content becomes ordinary page content and their authorship wrappers stop existing. Do this before touching metadata, not after.
- Remove attachments. Delete every embedded file. If one genuinely needs to travel with the document, clean it separately and re-attach it afterwards.
- Clear document properties. Blank the author, title, subject, keywords, creator and producer fields. Do not replace them with placeholder jokes. A field reading "none of your business" is still a fingerprint.
- Wipe the XMP block. Separately, explicitly, every time. This is the single most commonly missed step in the entire process.
- Normalize the timestamps. Creation and modification dates reveal working hours, time zones and deadline panic. Clear them or set them to something deliberately uninformative.
- Rebuild the file. Save a fresh copy rather than an incremental update, so discarded objects are not still lurking in the file's earlier revisions.
The Final Sweep, Because Trust Is Not a Method
A cleaning tool that says "done" has told you about its own intentions, not about your file. Verify independently: reopen the document properties on the exported copy, check that bookmarks contain no internal naming, confirm the attachments panel is empty, and open the file in a plain text viewer to scan for stray strings like usernames, drive letters or path fragments. Then rename the file itself, since Q3_Legal_Draft_v7_FINAL_jsmith.pdf leaks more than most metadata ever will.
Do this once as a deliberate exercise and it becomes a thirty second habit. The alternative is finding out what your documents have been saying about you from someone who is not on your side.
If the whole process sounds like a lot of software to install, it does not have to be. The metadata tool at pdfb2.io lets you inspect and strip PDF metadata entirely in your browser, which has the pleasant side effect that a file you are cleaning for privacy reasons never gets uploaded to anyone's server in order to be made private. Worth a look before your next send.
Disclaimer: This article is for informational purposes only and does not constitute legal, professional, or compliance advice. Always consult qualified professionals for specific guidance.
Ready to Try PDFb2?
Process your PDFs privately in your browser — 2 free downloads per day, no account needed. Your files never leave your device.
Try PDF Tools Free