PDFPhotoTools

Sanitize PDF

A PDF can hold more than pages: scripts that run when it opens, attached files, and actions that launch programs or send data somewhere. Before you open a PDF from a stranger or forward one to clients, Sanitize PDF strips all of that out and keeps the pages. Ordinary web links still work.

Runs in your browser. The file is never uploaded

Drop your file here

or paste from the clipboard · PDF up to 200 MB

How to remove JavaScript from a PDF

  1. 1

    Open the PDF

    Drop the file on the page.

  2. 2

    Sanitize it

    There is nothing to set.

  3. 3

    Save

    The file is saved as report-sanitized.pdf, with a note listing what was removed, or saying there was nothing to remove.

  • Your file never leaves your device
  • Free, with no account and no watermark
  • Real progress, not an endless spinner

Questions

What exactly is removed?

JavaScript wherever it appears, attached files, and actions set to run on their own: anything that launches a program, submits data, or fires when the file opens, a page turns or a field is used. XFA form data is removed too. Ordinary web links are left alone.

Will my pages look different?

Normal pages look exactly the same. Two things can change: form fields lose scripts that format dates and numbers or add up totals, and an XFA form may display differently or lose its fields.

Is this the same as a virus scan?

No. It removes the parts of a PDF that can act on their own, which is where PDF attacks usually hide, but it does not scan anything for viruses.

Is my file uploaded anywhere?

No. The file is cleaned inside your browser tab. That is the point when you do not trust a PDF: it is checked and rewritten on your device, not sent somewhere else to be opened.

Related tools

Missing something in Sanitize PDF?

Suggest an improvement or a new tool. It takes a minute.

esc