Sanitize a PDF Before Sharing
PDFs can carry more than meets the eye: author names and editing history in the metadata, file attachments embedded inside the document, JavaScript snippets, and actions that run automatically when the file opens. This tool strips all of it in one pass — every metadata field and date, the XMP metadata stream, embedded files, JavaScript name trees, and OpenAction or auto-action hooks — while the visible pages stay exactly the same. Sanitizing runs locally in your browser, so the document never leaves your device.
Choose files or drag & drop here
.pdf · single file
Processed locally in your browser — your files never leave your device.
How to sanitize PDF
- Upload the PDF you want to sanitize.
- Click "Sanitize PDF" — hidden data and scripts are stripped.
- Download the clean document, safe to forward or publish.
Frequently asked questions
What exactly does sanitizing remove?
All standard metadata (title, author, dates, producer), the XMP metadata stream, embedded file attachments, document JavaScript, and automatic open actions.
Will the visible document change?
No. Only hidden data and active content are removed. Every page, image, font, and piece of text remains exactly as it was.
Why sanitize a PDF before publishing it?
Metadata can leak author names, software versions, and timestamps, while scripts and attachments can carry active content you never intended to share.
Related tools
Add Watermark
Stamp a text watermark like DRAFT or CONFIDENTIAL on every PDF page
Add Page Numbers
Insert page numbers into a PDF automatically — centered "N / total" format with custom start offset
Crop PDF
Trim unwanted margins from every PDF page by exact point values
Flatten PDF
Flatten PDF form fields and annotations into static page content so they can no longer be edited
View Metadata
Inspect the hidden metadata of any PDF — title, author, creator, dates and more
Edit Metadata
Change the title and author metadata of a PDF document