How to use it
- Choose a PDF, or drop one anywhere on this page. Try a sample PDF opens a made-up file that was saved twice and carries a photo with camera data, a comment, an attachment and a script.
- Read the summary, then the details: document information, XMP metadata, earlier versions, attached files, photos, comments, JavaScript, forms and signatures.
- Choose what else to remove: comment authors and dates (ticked to start with), attached files and JavaScript. Then press Remove metadata.
- The tool reads the clean copy back and shows it beside the original, so you can see what is gone. Download clean PDF saves it.
What a PDF says about itself
- Document information. The fields a PDF reader lists under document properties: title, author, subject, keywords, the app that created the document, the app that turned it into a PDF, and when it was created and last modified. Apps fill them in from your account name and the original file, often without asking.
- XMP metadata. An XML copy of the same facts, often with more: document and version IDs, an edit history, and the apps the file passed through. Pages, images and fonts can carry XMP of their own.
- Earlier versions. Many apps save a change by adding it to the end of the file. A reader shows the latest version, but the earlier ones stay inside, with their old title and author and the pages you deleted. The tool counts the saves, reads each earlier one back, and shows what differs from the latest.
- Photos. A JPEG photo placed in a PDF keeps the data the camera and photo apps wrote into it: the camera's maker, model and serial number, when the photo was taken, the editing app, and often where, as GPS coordinates.
- Comments. Each comment records its author, usually the name set in the app, and when it was made and last changed.
- Attached files and JavaScript. Files embedded in the PDF, and scripts that run when it opens, when a page opens, or when a form field changes.
- Forms and signatures. How many fields are filled in, and the signer's name, date and reason as the signature records them.
- Document ID. An identifier written into the file that copies keep, so it can tie a shared copy to the original.
What a clean copy keeps and removes
The clean copy is written from scratch in one save. It leaves out:
- the document information and every XMP packet, including those on pages, images and fonts;
- the document title, which goes with them. W3C technique PDF18 uses it to give assistive technology a title for the PDF, so set it again after cleaning if the PDF has to stay accessible (a PDF/UA file keeps it);
- earlier versions, and objects that nothing in the document uses any more;
- private data that apps such as Illustrator keep for re-editing, with the page dates that go with it;
- camera data in JPEG photos: their EXIF, XMP, IPTC and comment segments. The picture data is copied byte for byte, so each photo looks the same;
- the old document ID, replaced by a new random one;
- the authors and dates of comments, unless you untick them; the comments stay;
- attached files and JavaScript, when you tick them.
Pages, text, images, links, bookmarks, form fields and their values, comments, and the tags screen readers use stay as they are. A PDF/A file keeps its PDF/A declaration, which PDF/A requires in the XMP. An accessible PDF/UA file keeps its PDF/UA declaration and its title, which PDF/UA requires and asks readers to show in the title bar. Nothing else from the XMP stays. The tool does not validate either standard, so check the copy with a validator if an archive or an accessibility check needs it.
Some things a metadata tool does not reach:
- The text on the pages is not checked. A name in a header or footer stays. Blacking out text is redaction, which needs its own tool and a check of the result.
- A signed PDF loses its signature. Any rewrite breaks it, so the tool warns you first and asks you to confirm.
- Camera data is removed from JPEG photos only. An image stored as JPEG 2000 keeps whatever its file carries.
- A password-protected PDF is not cleaned. The tool reads a PDF that opens without a password, including one that only blocks printing or copying, but it does not remove protection.
What stays on your device
The tool is JavaScript that does all of its work in this browser tab.
- Your browser reads the file, and this tab reads it, cleans it and reads the copy back. No request carries the file, its name or anything found in it, which you can confirm in the browser's network panel. Like every page on this site, the page records an anonymous visit, which sends its own address and nothing you open.
- The PDF library, pdf-lib, loads the first time you point at or use the tool. After that the tool works offline. It is open source, under the MIT License; its licences and notices cover the code it includes from other projects.
- Nothing is kept: the file and the clean copy are gone when you close the tab.
Removing metadata in other apps
- Adobe Acrobat Pro has a Sanitize command: All tools, then Redact a PDF, then Sanitize document, then Remove all, and save. It also removes comments, hidden layers and other hidden content.
- ExifTool writes its PDF edits as an incremental update, so its own documentation calls them reversible and warns that the old values stay in the file. It suggests rewriting the file afterwards with
qpdf --linearize in.pdf out.pdf.