PDF Metadata Cleaner
PDF Metadata Cleaner
/Info field you clear (the key is deleted, not left empty); with the boxes ticked, the other Info keys and every XMP metadata stream (the XML block Adobe apps write and PDF 2.0 prefers); and, always, objects the document no longer uses — which is where an incrementally saved file keeps its earlier author and title. What does not: attached files, comment and markup author names, form values, private application data (PieceInfo), metadata inside an image or font file's own bytes, and the file identifier. The panel above lists which of those this file has. The page content itself is untouched; check the result with exiftool or pdfinfo before relying on it.
How to clean PDF metadata
Add your PDF
Drag your file onto the dropzone or click to choose. The tool reads the document information dictionary as the file stores it and shows its eight standard fields — Title, Author, Subject, Keywords, Creator, Producer and both dates — and lists what else the file carries: other Info keys, XMP streams, leftovers from earlier saves, attachments and comment authors.
Review what's in there
Many PDFs carry surprising fingerprints — the original Word document's author name, the precise creation timestamp, the version of Acrobat Pro used to export it. Confidential? Embarrassing? Either way: now you can see it.
Edit or strip
Type into any field to change it; a field you leave alone is saved exactly as it was. Use Strip all metadata to clear every field and tick both boxes at once — useful before sharing a PDF outside your organisation. Restore original undoes your edits if you change your mind.
Save the scrubbed PDF
Click Save scrubbed PDF. The downloaded file keeps the fields you kept and has no entry at all for the ones you cleared. The status line says what was set, removed and dropped. The page content — text, images, layout — is unchanged, although pdf-lib re-serialises the whole file, so the bytes and the size will differ from the original, and a digital signature on the original will no longer verify.
PDF metadata — the fingerprint you didn't know you left
Every PDF carries a metadata block alongside the visible page content. When you export a PDF from Microsoft Word, the document's author name (the Windows account that owns the Word installation) is copied into the PDF's Author field. When you scan a document on a multi-function printer, the device's serial number and firmware version often end up in the Producer field. When you fill in a form in Acrobat and save it, your installed Acrobat license name lands in the Creator field. None of this is visible when you open the PDF — but it's all there in the file, readable by any tool that knows where to look.
Why this matters more than people think
A redacted PDF whose Author field still names the person who drafted it is the classic metadata leak: the visible content was scrubbed, the Info dictionary was not. Adobe Acrobat Pro has a "Sanitize Document" command for exactly this reason. This tool covers the document-level metadata — the Info fields, the XMP streams and the earlier revisions an incremental save leaves in the file — and is explicit about the layers it does not cover.
An incremental save appends changes and leaves the original contents intact, so a file can still hold the author it had before someone corrected it. Clearing the visible fields is not enough; the leftovers have to go too.
What this tool does — and what it doesn't
This tool edits or removes the standard PDF /Info dictionary — the eight text and date fields in the form, plus, if you tick the box, Trapped and any custom keys. A cleared field is deleted rather than written as an empty string, which is what ISO 32000-1 §14.3.3 asks for. With the second box ticked it removes every /Metadata entry in the document — the catalogue's XMP stream and the ones attached to pages, images, fonts or other objects (§14.3.2 allows metadata on any of them). And on every save it drops objects the document no longer reaches: §7.5.6 says an incremental update leaves the original contents in the file, so a corrected PDF often still carries its earlier Info dictionary, and pdf-lib on its own writes those leftovers back out.
What it does NOT touch: the page content itself (text, images, layout), metadata stored inside an image's or font's own bytes (EXIF or XMP in an embedded JPEG, a font file's name table), JavaScript actions, form-field values, embedded files (attachments), comments and annotations (each with its own author entry), private application data (/PieceInfo) and the file identifier (/ID). For complete sanitisation including those layers, use Adobe Acrobat's Sanitize Document, and verify with pdfinfo or exiftool afterwards.
Nine Info keys, two metadata stores, and the revisions a PDF keeps
ISO 32000-1 (Table 317) defines nine keys in the document information dictionary: Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate and Trapped. This tool edits the eight text and date keys.
PDF 1.4 added metadata streams holding Adobe's XMP (ISO 32000-1 §14.3.2), an ISO standard since 2012 (ISO 16684-1), and PDF 2.0 (ISO 32000-2) deprecates every Info entry except CreationDate and ModDate in favour of it. A modern PDF often carries the same author in both places, which is why clearing the Info fields alone is not enough.
The Producer field tells you the EXACT software that produced the PDF — including version numbers. "Microsoft Word 365 (16.0.17328.0)" tells an attacker more than you might want.
The Author field defaults to the OS account name on Windows. Many PDFs share a user's real name (or worse, internal username) without the user ever noticing.
Creation date precision is to the second, including timezone. That's enough to correlate document authorship with calendar events or surveillance logs.
Modification date updates every time you save a PDF, including from Preview on macOS or a browser's PDF viewer. Tools sometimes leak edit timestamps unintentionally.
PDF/A (ISO 19005) requires an XMP metadata stream and requires any Info entries present to agree with it. Clearing Info while XMP keeps the old values breaks that agreement — if you need PDF/A conformance, edit consistently rather than strip.
An incremental update appends the changed objects and a new trailer to the end of the file and leaves the original contents in place (ISO 32000-1 §7.5.6). A PDF corrected and re-saved that way can still contain the earlier author and title, invisible in any viewer.
Annotations, form fields, and digital signatures carry their own metadata — including the signer's identity. This tool doesn't touch those, only the document-level metadata.
Producer strings fingerprint the exporter: "Microsoft® Word for Microsoft 365" or "Skia/PDF m118" (Chrome's print-to-PDF) each name a program and a version. Clear the field and the key is removed; this tool never writes its own name into it.
FAQ
-
No. The pdf-lib library runs entirely in your browser. Your PDF is read into memory, metadata is rewritten in memory, and saved back to your downloads. In DevTools → Network you will see the page's usual beacons, but no request carries the PDF.
-
No. The /Info dictionary and XMP are informational — PDF readers don't depend on them to display the document — and the objects dropped are ones nothing in the document points at. Two cases to know: a PDF/A file needs its XMP stream, so removing it breaks PDF/A conformance; and a digitally signed PDF is re-written by any save, so its signature will no longer verify.
-
Tick Also remove XMP metadata streams (Strip all ticks it for you) and every
/Metadataentry in the document is removed, along with the streams themselves — the catalogue's and any attached to pages, images or fonts. The tool removes XMP; it does not edit it. If you change the Title and keep XMP, the XMP still holds the old title, and PDF 2.0 readers prefer XMP over the Info dictionary. XMP embedded inside an image's own JPEG bytes is not a/Metadataentry and is not removed. Check withexiftool file.pdforpdfinfo -meta file.pdf. -
No. Annotations (comments, highlights, sticky notes) and form field properties have their own author metadata that this tool does NOT touch. For complete sanitisation including those layers, use Adobe Acrobat's "Sanitize Document" feature.
-
No. PDFs can contain embedded file attachments (other PDFs, spreadsheets, images, even executables), and this tool leaves them, with their own metadata, in the file. It does count them: the panel above the form says how many the file has.
-
Leftovers from earlier saves. Acrobat and many other editors save changes as an incremental update: the changes are appended and the original contents stay in the file (ISO 32000-1 §7.5.6). If an update replaced the Info dictionary, the old one — with the old author and title — is still there, just no longer pointed at. pdf-lib keeps every object it parses, so without this step it wrote those leftovers back into the "cleaned" copy; this tool now walks everything the document can reach from its catalogue and Info dictionary, and drops the rest.
-
YYYY-MM-DD, optionally followed by a time (HH:MMorHH:MM:SS) and an offset (Zor+08:00for Singapore time). The form shows each date with the offset the file recorded. A time typed without an offset is saved without one, and ISO 32000-1 §7.9.4 says a reader then takes it as GMT. A date the tool cannot read stops the save with a message — it is never replaced with a placeholder. An empty field removes the key. Dates are saved in the PDF date format,D:YYYYMMDDHHmmSS+08'00. -
No. pdf-lib 1.17.1 does not support encrypted PDFs, including "restriction-only" (owner-password) files whose strings and streams are still encrypted. The tool refuses them at load (it used to accept them without an error), because pdf-lib's own documentation says the result of modifying such a document "may fail, or have unexpected results" — the rewritten Info strings would be written unencrypted into a file that declares encryption, and readers reject that. Remove the encryption first (Acrobat, macOS Preview export, or
qpdf --decrypt). -
You can type any value into the eight standard fields. The PDF spec also allows arbitrary custom keys in the /Info dictionary: this tool lists the ones a file has and can remove them all, but cannot add or edit one. For that you need Adobe Acrobat's Document Properties dialog.
-
Usually a little, sometimes noticeably: pdf-lib re-serialises the entire file on save — cross-reference tables are rebuilt and objects may be packed into compressed object streams — so the size can move by more than the few hundred bytes of metadata you changed, in either direction. A file with a long incremental history can shrink a lot, because the earlier revisions are dropped. The page content is identical.
-
Yes on iOS Safari and Chrome on Android. The form reflows to a single column on phone-width screens. All editing happens locally — same privacy story as desktop.
Method & sources
How it computes
pdf-lib 1.17.1 loads the PDF with updateMetadata: false, so nothing of pdf-lib's own is written, and the Info dictionary is read as stored. A cleared field's key is deleted (ISO 32000-1 §14.3.3); an untouched one is left as it was. Optional: remove the other Info keys and every /Metadata (XMP) entry (§14.3.2). Every save drops objects the catalogue and Info no longer reach — the earlier revisions an incremental update leaves (§7.5.6). All of this runs in your browser.
What this tool implements
- Corrected 2026-10-26: PDFs were loaded with pdf-lib's default updateMetadata: true, which sets Producer to "pdf-lib (https://github.com/Hopding/pdf-lib)" and ModDate to the current time (and Creator / CreationDate when absent) before the page read them. The form never showed a file's real Producer, and a file saved without clearing it came out stamped by pdf-lib.
- Corrected 2026-10-26: pdf-lib keeps every parsed object, referenced or not. An incremental update appends changes and leaves the original contents intact (ISO 32000-1 §7.5.6), so on a two-revision test PDF the old "Strip all metadata" saved revision 1's author, title and producer back into the "scrubbed" file. Every save now drops the objects the trailer's Root and Info no longer reach.
- Cleared fields are removed rather than written as empty strings or 1 January 1970 (§14.3.3: an entry whose value is not known "should be omitted"); an unreadable typed date stops the save instead of becoming 1970; untouched dates keep their seconds and UTC offset (§7.9.4); keywords keep their commas. ModDate is kept when the catalogue has PieceInfo, where Table 317 requires it.
- XMP: with the box ticked, every /Metadata entry the document reaches is removed with its stream — catalogue, pages, images, fonts and marked-content property lists (§14.3.2). Not removed, and counted per file on the page: attachments, markup-annotation authors (/T, §12.5.6.2), PieceInfo, the trailer /ID, and metadata inside image or font bytes. A signed PDF is re-written, so its signature stops verifying; the page says so.
Sources
- Adobe. PDF 32000-1:2008, the free copy of ISO 32000-1 (§7.5.6 Incremental updates; §7.9.4 Dates; §14.3.2 Metadata streams; §14.3.3 and Table 317, Document information dictionary). https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF…
- Hopding A. pdf-lib, src/api/PDFDocument.ts — load() option updateMetadata defaults to true; updateInfoDict() sets Producer and ModDate. https://raw.githubusercontent.com/Hopding/pdf-lib/master/src/api/…
- Adobe. XMP — Extensible Metadata Platform ("Since early 2012, XMP is also an ISO standard (16684-1)"). https://developer.adobe.com/xmp/docs/
- ISO. ISO 32000-2:2020, Document management — Portable document format — Part 2: PDF 2.0 (§14.3.3, document information dictionary).
What can make this go out of date
- None at runtime: the file is read and re-written in the browser by the page's own copy of pdf-lib 1.17.1; choosing a file sends no request.