Show PDF JavaScript
See any PDF JavaScript hidden in a file, script by script, without running a line of it. The scan happens in your browser.
How to PDF javascript
Drop your PDF into the box.
The tool scans it for scripts.
Read each script and where it is attached.
Check a PDF for JavaScript
Scripts can hide in several places: document-level scripts, open actions, pages, form fields and links. The scan covers them all and shows the code with its location, so you know what would run and when.
The scripts are displayed as text only. Nothing is executed.
Found something you do not want?
This tool reads, it does not change the file. To strip the code out, run Sanitize PDF, which removes JavaScript and auto-run actions while keeping the pages intact. Form fields with calculations often rely on scripts, so check what a script does before you delete it. To look at other hidden parts of a file, open the PDF Metadata Editor.
Guides
Frequently asked questions
How can I tell if a PDF contains JavaScript?
Drop it here. The tool lists every script it finds, or tells you there are none.
Does viewing the scripts run them?
No. Each script is shown as text and never executed.
Where can JavaScript hide in a PDF?
In document-level scripts, open actions, page actions, form field actions and link actions. All of them are scanned.
How do I remove JavaScript from a PDF?
Use Sanitize PDF. This tool only shows the scripts.
Is PDF JavaScript always dangerous?
No. Forms often use it to check or total fields. Reading the code tells you what it does.