How to remove metadata from a PDF
Every method that removes PDF metadata removes something different, and some leave the old values recoverable inside the file. This guide covers Acrobat Pro, Word, Mac, Windows and the command line, then shows how to prove the file is clean.
To remove metadata from a PDF, use Acrobat Pro: All tools › Redact a PDF › Sanitize document › Remove all, then save. Without Acrobat, run exiftool -all:all= file.pdf and then rewrite the file with qpdf, because exiftool's PDF edits are reversible. Then open the result in a metadata viewer to confirm it is clean.
Which method removes what
"Metadata" ranges from the author field to whole attached files (see what metadata is in a PDF). The methods below cover very different parts of that list.
| Method | Title, author, dates | XMP | Comments, attachments, form data, scripts | Old versions | Cost |
|---|---|---|---|---|---|
| Acrobat Pro Sanitize document | Yes | Yes | Yes | Yes (saves a new file) | Subscription |
| Acrobat document properties (edit fields) | Partly | Partly | No | Only with a full save | Acrobat |
| Word Inspect Document before converting | Yes | Yes | Comments and revisions in the Word file | Not applicable (new PDF) | Included with Office |
| exiftool alone | Yes | Yes | No | No: reversible | Free |
| exiftool, then qpdf | Yes | Yes | No | Yes | Free |
| Windows file Properties | Not reliable for PDFs (see below) | Free | |||
| BatesBench | Yes | Yes | Yes, plus bookmarks | Yes (writes new files) | $99 once |
Method 1: Acrobat Pro, Sanitize document
Sanitizing is Acrobat Pro's built-in way to strip hidden content. Adobe's current steps (Adobe Acrobat help):
- Open the PDF and select All tools › Redact a PDF.
- In the left pane, select Sanitize document.
- To remove everything hidden, choose Remove all, pick a file name and location, and select Save.
- To choose what goes, choose Selectively remove instead. In the Hidden Information panel, tick the items to remove, select Remove, then save. Adobe notes the content is removed permanently when you save.
When you apply redactions in Acrobat Pro, the same dialog offers a toggle to sanitize and remove hidden information in the same step. Older Acrobat versions put Sanitize Document and Remove Hidden Information on the Redact tool's toolbar instead of the left pane.
Sanitizing is an Acrobat Pro feature; Acrobat Reader cannot do it. Keep the original: sanitizing also removes things you might want, such as bookmarks and form fields.
Why editing document properties is not enough
In Acrobat you can open Ctrl+D (document properties) and clear the Title, Author, Subject and Keywords on the Description tab. That is fine for tidying a title, but it is not a cleanup: the Producer and dates stay, comments and attachments are untouched, and a plain Save may append the change to the end of the file rather than replace the old values. If you go this route, use Save As to write a new file, then check it.
Method 2: clean the Word file before you convert
If the PDF is made from a Word document, the cleanest PDF comes from a clean source. Microsoft's steps for Word on Windows (Microsoft Support):
- In a copy of the document, go to File › Info › Check for Issues › Inspect Document.
- Inspect, then select Remove All for each category you want gone: comments, revisions, versions and annotations; document properties and personal information; hidden text; invisible content; custom XML data; headers, footers and watermarks if appropriate.
- Save as PDF with File › Save a Copy, choose PDF, then More options › Options and clear Document properties (Microsoft Support).
The resulting PDF will still name the producing software and carry creation dates, which is usually harmless. It cannot fix PDFs you received from someone else.
Method 3: on a Mac
Preview's Inspector (the Info button) shows a PDF's general information and keywords, but Apple's Preview guide documents viewing only, with no way to clear the author or other fields (Apple). On a Mac, use Acrobat Pro for Mac (Sanitize document works the same way), or install the free command-line tools with Homebrew (brew install exiftool qpdf) and follow Method 5.
One Mac-specific item is not PDF metadata at all: the Where from line in Finder's Get Info, which records the download URL. It is stored as an extended attribute of the file, not inside the PDF, and is usually lost when the file is emailed or copied to another system. To clear it locally: xattr -d com.apple.metadata:kMDItemWhereFroms file.pdf.
Method 4: Windows "Remove Properties and Personal Information"
File Explorer's Properties › Details › Remove Properties and Personal Information only works for file types whose property handler supports writing those properties. It is designed around formats like Office documents and JPEG images. We found no Microsoft documentation that it cleans PDFs; users widely report that it does nothing for them, and a standard Windows installation does not include a property handler for PDF files. Even where it works, it only touches basic document properties, never XMP, comments, attachments or earlier versions. Do not rely on it for PDFs.
Method 5: exiftool and qpdf (free, command line)
ExifTool is a free, widely used metadata tool. To delete all writable metadata from a PDF:
exiftool -all:all= contract.pdf
This clears the document information dictionary and the XMP stream, and keeps a backup named contract.pdf_original. The catch is documented on ExifTool's own PDF page: it writes PDF changes as an incremental update, so "all metadata edits are reversible," which it calls "a potential security problem because old information is never actually deleted from the file" (ExifTool PDF tags). Anyone can restore the old values with exiftool -PDF-update:all= contract.pdf.
To remove the old information permanently, rewrite the file with qpdf, as ExifTool recommends:
qpdf --linearize contract.pdf contract-clean.pdf
qpdf writes a fresh file containing only the objects the document still uses, so the superseded metadata does not survive. Then confirm:
exiftool -a -G1 contract-clean.pdf
Limits: this pair does not remove comments, attachments, form data, JavaScript or bookmarks, and metadata attached to individual images inside the PDF may remain. Delete the backup files when you are done; they still hold the original metadata.
Online metadata removers
Many websites will strip PDF metadata for free. They require uploading the file, which is usually unacceptable for privileged or confidential documents, and few say exactly what they remove. If you use one, check the output as described below.
Removing metadata from many PDFs at once
exiftool and qpdf can process whole folders from a script, and Acrobat Pro can include sanitizing in an Action. For legal productions, BatesBench scrubs the author, XMP, comments, attachments, form data, bookmarks and scripts from every file in the same pass as Bates numbering and redaction, on your own PC.
How to check the result
- Open the cleaned file, not the original. Check document properties (Ctrl+D in Acrobat or Reader): Title, Author, Subject and Keywords should be empty.
- Check XMP too. Viewers may show only the information dictionary. Our free PDF metadata viewer shows both in your browser, with nothing uploaded, or run
exiftool -a -G1 file.pdf. - Look for leftovers in the file. Search the PDF's raw bytes for a name you removed: open it in a text editor and search, or on the command line use
findstr /i "Smith" file.pdf(Windows) orgrep -a -i "Smith" file.pdf(Mac, Linux). Compressed streams hide some text from this test, so treat a match as a failure and no match as a good sign. - Open the comments, attachments and bookmarks panes. They should be empty unless you meant to keep them.
- Check the redactions still hold. If the file was also redacted, run the tests in failed redactions.
Frequently asked questions
How do I remove metadata from a PDF without Adobe?
If you have the source Word file, run Inspect Document and clear Document properties when saving as PDF. For an existing PDF, the free command-line tools exiftool and qpdf work on Windows, Mac and Linux: exiftool clears the document information and XMP, and qpdf rewrites the file so the old values are really gone.
How do I remove metadata from a PDF in Windows?
Windows File Explorer's Remove Properties and Personal Information option is not a reliable way to clean PDFs. Use Acrobat Pro's Sanitize document, exiftool followed by qpdf, or a dedicated tool, and then check the result in a metadata viewer.
Why can't I remove metadata from a PDF?
Common reasons: the PDF is encrypted or restricts editing, it is digitally signed (any change invalidates the signature), the tool saved incrementally so old values remain further down the file, or the metadata you see is file-system information outside the PDF, such as the Mac Where from attribute.
Can I remove metadata from multiple PDF files at once?
Yes. exiftool and qpdf can be run over a whole folder from a script, Acrobat Pro can run sanitizing as part of an Action, and production tools such as BatesBench scrub every file in a batch while they number and redact.
Does saving a PDF as a new file remove metadata?
Not by itself. Save As usually keeps the title, author and XMP. It can help after other edits, because a full save rewrites the file and drops the earlier versions that an incremental save keeps, but you still need to clear the metadata first.