PDF On My Device Buy me a coffeeSupport

Sanitize a PDF

Make a PDF safe to open or pass on: remove JavaScript, automatic actions, attached files, hidden layers and metadata.

About Sanitize PDF

A PDF can do much more than show pages. It can run JavaScript when it opens, try to launch other files, carry attached programs or documents, and hide content in layers you can't see. Attackers use these to deliver malware in invoices and CVs, and businesses leak private details through them. This tool first lists everything active or hidden in the file, then removes what you choose and rebuilds the file so the removed parts are really gone, not just disconnected. The pages themselves look the same afterwards. It's a good habit before forwarding a PDF from an unknown sender, or before publishing your own.

What people use it for

How to sanitize a PDF

  1. Choose a PDF. The scan runs straight away and lists scripts, actions, attachments, layers and metadata.
  2. Keep the recommended boxes ticked. Tick Links as well if you also want web links removed.
  3. Click Remove selected. The cleaned PDF downloads and the report confirms what's left.

Questions

Are my files uploaded anywhere?

No. Your files are processed inside your browser and never uploaded. There's no server that receives them, no account and no watermark.

Is it safe to use for confidential files?

Yes. Sanitize PDF runs on your own device, so bank statements, contracts and IDs are never sent to a server where they could be stored, read or leaked.

Does this remove viruses?

It removes the parts of a PDF that attackers use to run code: JavaScript, launch actions, automatic actions and attached files. It isn't a virus scanner, so keep your antivirus too.

Are links removed?

Not by default, because most links are harmless. Tick Links before cleaning to remove every web link as well.

Will the pages look different?

No. Text, images and layout stay the same. Only hidden layers' content is deleted, and only if you leave that box ticked.

What does rebuilding the file mean?

Simply disconnecting a script leaves it inside the file. We rebuild the file from the parts still in use, so the removed data isn't there at all.

Does it work without internet?

Yes. Once this page has loaded you can switch off Wi-Fi or mobile data and keep using it. Tools you've opened before load even with no connection, and you can install the site as an app from your browser menu.

More PDF tools