Sanitize PDF
Remove embedded JavaScript, auto-run actions and embedded files from a PDF — processed on your device, no file is uploaded.
Processed on your device — no file is uploaded to any server
Sanitize PDF removes auto-running JavaScript, actions that fire when a file is opened, and attachments embedded inside a PDF — the kinds of things that can be abused to spread malware.
The tool keeps your text, images, and page layout intact, stripping only the code and automatic behaviors, then reports exactly what it removed. Everything runs right in your browser on your own device — your files are never uploaded to a server, so you can open documents received from outside sources with more peace of mind.
How to clean malicious code and JavaScript out of a PDF
- 1Select a PDF file
Drag and drop or click to choose the PDF you want to check and clean.
- 2Sanitize
Click Sanitize PDF — the tool strips JavaScript, OpenAction, embedded files, and automatic behaviors.
- 3Download
Review the report of what was removed, then download the clean PDF to your device.
Frequently asked questions
Does Sanitize PDF send my files over the internet?
Everything runs right in your browser — your files are never uploaded to any server, keeping them completely private.
What does the tool remove?
Embedded JavaScript (/Names/JavaScript), auto-run-on-open behavior (/OpenAction), automatic actions (/AA), Launch actions, and embedded attachments. Page content is left untouched.
Does the document content change after sanitizing?
No. Only the code and automatic behaviors are removed; the text, images, and page layout stay the same.