Sanitize PDF
Sanitize PDF files by stripping out scripts and hidden content before you open or share it. The visible pages stay the same, and the file never leaves your browser.
How to sanitize PDF
Drop your PDF into the box.
Select what to remove: JavaScript and actions, embedded files, links, XFA data, metadata.
Run it and read the report of what was found and removed.
Download the sanitized PDF.
Remove JavaScript from a PDF
PDFs can carry scripts and actions that run when the file opens. Sanitizing removes the JavaScript along with those auto-run and launch actions, so the file just shows its pages.
Want to see the code before deleting it? Show PDF JavaScript lists every script and where it is attached.
Clear hidden data before sharing
Embedded files, XFA form data and metadata can reveal more than the pages do. Pick each one you want gone, and the report shows what the file contained. Comments are separate: remove comments from the PDF for those. To edit metadata rather than wipe it, use the PDF Metadata Editor.
Guides
Frequently asked questions
How do I remove JavaScript from a PDF?
Drop the PDF here, keep the JavaScript option selected and run it. Scripts and auto-run actions are removed.
What does sanitizing a PDF remove?
JavaScript and auto-run actions, embedded files, links and launch actions, XFA form data and metadata. You choose which.
Will the pages look different?
No. The visible pages stay the same.
Does it tell me what it found?
Yes. You get a report of what was found in the file and what was removed.
Is it safe to sanitize a suspicious PDF here?
The file is processed in your browser and not uploaded. The tool removes the content it reports; it is not a virus scanner.
Can I remove comments and highlights too?
Use Remove Comments from PDF for annotations.