Detect JavaScript in PDF
Scan a PDF for embedded JavaScript actions locally in your browser — useful before opening an unfamiliar file, though heavily obfuscated scripts may evade detection.
Files are processed locally in your browser — no upload is required for this tool.
Frequently asked questions
Why would a PDF contain JavaScript?
PDF allows embedded JavaScript for form validation, auto-fill actions, and interactive features. It has also been used by malicious actors to execute code when a file is opened.
Does this guarantee a PDF is safe to open?
No. The tool looks for recognizable JavaScript patterns. A carefully obfuscated script could avoid detection. Always treat unexpected PDFs from unknown senders with caution.
Is my file uploaded for scanning?
No. The scan reads the PDF structure locally in your browser.
What should I do if JavaScript is detected?
Open the file only in a sandboxed viewer with JavaScript disabled. If the source is unknown or suspicious, do not open it at all.
Privacy-focused document tools, local-first from the start.