Account

What new tool do you want?

PDF Tools

PDF Safety Check & Sanitizer

Check a PDF for JavaScript, actions that run on opening, program launches, hidden form submissions, attached files and suspicious links before you open it, then download a clean copy with all of it removed.

How to use

  1. 1Drop the PDF. It's analysed in your browser without being opened in a PDF reader, so nothing in it can run.
  2. 2Read the verdict and the list of findings, ordered from high risk to information only.
  3. 3Choose whether to remove attachments and links, then press Make a clean copy.

Frequently asked questions

Is this a virus scanner?

No. It doesn't compare the file with a database of known malware. It looks for the features a PDF needs in order to do anything harmful: scripts, automatic actions, program launches, embedded files and form submission. Most PDFs have none of these. A file that has them isn't necessarily malicious, but there's rarely a good reason for an invoice or CV to run code.

Is it safe to drop a dangerous PDF here?

Yes. The tool reads the file's structure as data; it never runs the scripts or opens attachments. The file stays in your browser.

What does the clean copy keep?

All pages, text, images, bookmarks and standard form fields. Scripts, automatic actions, launch and submit actions, rich media, XFA forms and (if you choose) attachments and links are removed, and the file is written again from scratch, which drops earlier revisions and anything hidden after the end of the file.

Why is an http link marked?

Links are listed so you can see where they go before clicking. Unencrypted http links, links to a bare IP address, look-alike (punycode) domains and links with a user name before the @ sign are flagged because phishing PDFs use them.

Sources

What each risk level means

High risk: something runs without you asking (JavaScript, an action when the file or a page opens), a program can be started, a link runs script, an attached file is a program or macro document, or keywords are disguised with hex escapes. Caution: data can be sent to a web address, another file can be opened, there are attachments, XFA forms or embedded media, or extra data is hidden around the file. Check: links with an unusual address. Info: ordinary links, encryption and earlier revisions.

Example: a fake invoice

A PDF named invoice_4471.pdf shows 'JavaScript automatically when the file opens' (code calling this.exportDataObject), 'Attached program or macro file: invoice.pdf.exe' and 'Disguised keywords: /JavaScript'. Each one alone is unusual; together they're a classic malware dropper. The clean copy contains just the page, which you can read safely, but the right move is to delete the original and report the email.

Why the file is rewritten

A PDF can carry earlier versions of itself (incremental updates), bytes before its header or after its end marker, and names written as /J#61vaScript to slip past scanners. Rather than patch the original, the clean copy is generated from the parsed objects, so only what the PDF reader would actually use survives, written in plain form.

Related tools

More: PDF Tools