How to Remove Metadata From a PDF, Including Its Earlier Versions
· 6 min read
To remove metadata from a PDF, you need to clear more than the Author and Title fields. A PDF can also keep XMP metadata, comment author names, photo data inside embedded images and, most easily missed, earlier saved versions of the whole document. Clear the fields but leave those versions in place, and someone can still open an older copy, deleted text included.
Most PDF metadata removers stop at the document properties. This guide covers what a PDF actually carries, how to check it on Mac or iPhone, and how to get a clean copy.
What metadata a PDF carries
A PDF stores its descriptive metadata in a few separate places:
- Document info. Title, author, subject, keywords, the app that created the document, the app that produced the PDF, and created and modified dates. Apps can also add custom fields here.
- XMP metadata. An XML block that often repeats the same author, title and dates, and sometimes adds edit history or document IDs. Clearing the document info alone can leave the author’s name sitting in the XMP.
- Comments and annotations. Each highlight, sticky note or markup can record the name of the person who made it and when.
- Embedded images. A photo placed into a PDF can keep its own EXIF data, including the camera model and GPS coordinates of where it was taken.
- App-private data. Some apps store their own editing data inside the PDF. Illustrator, for example, can keep its editing data in a structure called PieceInfo so the file can be reopened and edited later.
None of this shows on the page, but all of it travels with the file.
The part most tools miss: earlier versions
The PDF format allows an app to save changes by appending them to the end of the file instead of rewriting it. This is called an incremental update. Each save adds a new section that says which objects changed, and the original content stays in the file, byte for byte, above it.
A PDF reader only shows you the latest version, so the file looks clean. But each earlier version ends at its own %%EOF marker, and cutting the file at one of those markers gives you that version back. If you deleted a paragraph, a name or a price and saved, the deleted text may still be in the file you sent.
This matters for metadata removal too. ExifTool’s PDF documentation explains that its PDF edits are written as incremental updates, so the original metadata is not actually removed and the change can be reversed. It recommends rewriting the file afterwards (for example with qpdf) to drop the old data. Any tool that “removes” PDF metadata by appending an update has the same problem.
How to view PDF metadata on Mac
Open the PDF in Preview and choose Tools > Show Inspector. The first tab lists the document info that Preview recognizes, such as title, author, the creating app, the producer and dates.
That is a quick check, not a full one. Preview does not show XMP, comment authors, EXIF data in embedded images, or earlier versions of the file.
Remove metadata from a PDF with Scrubb
Scrubb is our metadata inspector and remover for Mac, iPhone and iPad. From version 1.2 it opens PDFs as well as photos and videos, and everything runs on your device. Nothing is uploaded.
- Add the PDF. On Mac, drag it onto Scrubb’s window. On iPhone or iPad, use Choose Files.
- Inspect it, free. The inspector shows the document info, custom fields, XMP metadata, comment and annotation authors and dates, EXIF and GPS data in embedded images, and app-private data such as Illustrator’s PieceInfo.
- Check the earlier versions. If the file contains incremental updates, Scrubb lists each earlier version and the text that was removed from it. This is often the most useful thing to look at before you send a document.
- Clean it with Scrubb Pro. Scrubb rebuilds the PDF with that metadata removed and the earlier versions gone, then checks the result: the PDF must reopen, every page must render pixel-identical to the original, and no earlier versions can remain. A failed check stops the export.
- Open the saved copy and look through it before sharing.
Inspecting PDFs is free. Cleaning them needs Scrubb Pro, a one-time $9.99 in the US that also unlocks unlimited photo and video cleaning; the App Store shows your local price.
Some limits to know first:
- Encrypted or password-protected PDFs are refused. Scrubb will not produce a half-cleaned copy of a file it cannot fully read and rewrite. Remove the password in the app that set it, then try again.
- Signed PDFs get a warning. A digital signature covers the file exactly as it was signed, so rebuilding it invalidates the signature. Scrubb’s inspector tells you when a PDF is signed, so you can decide before you clean it. If the signature has to stay valid, clean the document before it is signed.
- Visible text is not redacted. Scrubb removes hidden data. It does not black out names, numbers or anything else you can see on a page. Use a proper redaction tool for that, then check the result.
Other ways to remove PDF metadata
Adobe Acrobat Pro has redaction and document sanitizing tools that remove hidden information, including metadata and comments. It is a subscription product, and the free Acrobat Reader does not include them.
ExifTool plus qpdf works on a Mac from the Terminal. ExifTool clears the metadata fields, and rewriting the file with qpdf removes the old data that ExifTool’s incremental update leaves behind. Check the output, since neither tool reports what was in the earlier versions.
Print to PDF (File > Print, then Save as PDF) writes a brand new file, which leaves the earlier versions behind. It can also drop links, form fields and accessibility tags, and it records its own producer and dates. Fine for a simple document, not for a form or a long report.
Online PDF metadata removers mostly clear the document info and sometimes XMP. Check whether a site uploads your file or works in the browser, and whether it does anything about earlier versions. A document you want to scrub is a poor thing to hand to a server you know nothing about.
Before you send it
Open the cleaned copy, not the original, and inspect it again. If the PDF went through several rounds of edits, look at its earlier versions first, so you know what the recipient would have been able to read.
For photos and video, see our guides to removing photo metadata on Mac, removing location from iPhone photos and removing metadata from video.