When you click “Export to PDF” in your software, the resulting file contains more than just your content. Beneath the visible text lies structured data that silently records who created the document, what software was used, and when it was modified.
This guide explores the anatomy of PDF metadata, why clearing document properties isn’t always enough, and how to remove all metadata locally.
What Exactly is Hidden Inside PDF Metadata?
PDFs store metadata in two primary locations within the file architecture: the Document Information Dictionary and the Extensible Metadata Platform (XMP) Stream.
1. The Document Information Dictionary (Info Dict)
This legacy structure contains key-value pairs that describe basic properties:
Author: Often auto-filled with your account or user name (e.g.,jsmith).Creator: The original application that generated the source document.Producer: The exact engine used to convert the file to a PDF.Title: The internal working title of the document.
2. Extensible Metadata Platform (XMP)
Modern PDFs embed XML-based XMP packets directly into the file stream. Unlike the simple Info Dictionary, XMP can include an edit history and thumbnails in some files.
Software and version strings left in these metadata fields can help someone fingerprint your setup.
Method 1: Blanking Fields with Utiliome
For a quick way to clear the basic Document Information Dictionary, you can use our PDF Metadata Remover. The tool runs in your browser, so the file is not uploaded.
- Navigate to the PDF Metadata Remover.
- Select your PDF file.
- Click “Remove Metadata”.
- Click “Download Cleaned PDF”.
This tool blanks the Document Information Dictionary fields (Title, Author, Subject, Keywords, Creator, Producer, CreationDate, and ModDate) and removes the catalog /Metadata XMP stream reference directly in browser RAM. You can also inspect the raw Info and XMP properties before and after cleaning with the PDF Metadata Viewer, or lock interactive annotations and form layers permanently using Flatten PDF. For setting custom properties instead of removing them, see how to change a PDF’s title, author and subject or open the PDF Metadata Editor.
Why Incremental PDF Updates (%%EOF Appends) Leak Historical Metadata
When a PDF editor or command-line utility modifies a document using an incremental update, it does not overwrite the original bytes of the file. Instead, as defined in ISO 32000-1 Section 7.5.6, the editor appends a new body section, a delta Cross-Reference (xref) table, and a second %%EOF marker to the end of the file. The same mechanism can keep whole deleted pages recoverable, as covered in how to remove confidential pages from a PDF safely.
Because standard PDF viewers only read the latest xref table pointed to by the final startxref offset, the document appears to have blank properties in Adobe Acrobat or macOS Preview. However, anyone who opens the file in a hex editor, runs strings document.pdf, or inspects earlier revisions can still read:
| Metadata Location | PDF Object / Stream Path | Cleared by Basic Property Editors? | Cleared by Full Object Rewrite (pdf-lib / qpdf)? |
|---|---|---|---|
| Legacy Info Dictionary | Trailer /Info indirect object (1 0 obj) | Yes (often via incremental append) | Yes (rewritten from scratch) |
| Catalog XMP Stream | /Root Catalog -> /Metadata XML stream | Rarely (often left untouched) | Yes (unlinked and garbage-collected) |
| Object-Level XMP Packets | Embedded image/font /Metadata sub-streams | No | Yes (when flattened or linearized) |
| Previous Incremental Revisions | Bytes before earlier %%EOF markers | No (recoverable via exiftool -PDF-update:all=) | Yes (orphaned revisions purged) |
If a corrupted or truncated incremental update prevents a file from opening cleanly, you can reconstruct its Cross-Reference table locally with Repair PDF before sanitizing its metadata.
Method 2: Stripping Metadata with ExifTool and qpdf
If you need to remove all metadata, exiftool is highly effective. To remove all metadata from a PDF, run:
exiftool -all:all= -overwrite_original document.pdf
Output:
Warning: [minor] ExifTool PDF edits are reversible. Deleted tags may be recovered! - document.pdf
1 image files updated
As the warning indicates, ExifTool performs incremental, reversible edits. The deleted tags may be recovered using a recovery command, which restores earlier values:
exiftool -PDF-update:all= document.pdf
To make the removal permanent and rewrite the file completely, you must use qpdf. Run the following command to linearize the document and clear the reversible update history:
qpdf --linearize document.pdf document-clean.pdf
Alternatively, you can use qpdf’s native options to remove metadata without ExifTool:
qpdf --remove-info --remove-metadata in.pdf out.pdf
After rewriting the file, run exiftool -a -G1 -s again to confirm that no XMP tags remain.