Remove JavaScript from PDF
Stars are kept in your account, so starring a tool needs you to sign in. Every tool works without signing in. Sign in
Remove JavaScript from a PDF, including scripts that run when the file opens. Pages stay the same. Free, no sign-up, and your file never leaves your device.
Stays on your device
A $6 day pass gives you 24 hours of server tools. You pay once, and it does not renew. Pricing
How to remove JavaScript from a PDF
Some PDFs carry small scripts that run when you open the file. This tool removes the ones that start on their own: the action that runs when the file opens, the actions tied to the whole document, and the scripts stored in the file's list of scripts. There is nothing to set. Choose your file, then download without-js.pdf. An instruction to open the file at a certain page is removed too, because it is stored in the same place. Pages stay in the same order with the same size, turn and text. The title and author stay. Other items stay as well, such as attachments and named destinations. It does not remove every script. One tied to a single link, button or form field on a page can stay, so do not rely on this tool as a full security check.
Your file stays on your device. It is never uploaded, so you can clean up private or unknown files without sending them anywhere. You can check this yourself: open your browser's developer tools, go to the network panel and add a file. No upload appears. There is no sign-up and no watermark, and when you close the page the copy in your browser is gone.
There is no page limit and no daily limit. A long PDF works as long as your device has enough memory to open it. Very large files, such as scans with hundreds of pages, can be slow on a phone or an older laptop. To also remove form fields or bookmarks, use the related tools below.
If the page says your PDF could not be read, the file may be damaged or may not be a PDF, so try another copy. A PDF with no pages cannot be changed. A password-protected PDF will not work here, so remove the password with Unlock PDF first and try again. If the file has no scripts of this kind, you still get without-js.pdf with the same pages.
How to use this tool
- Choose your file. It never leaves your device.
- Pick a setting, if the page has one.
- Download your new file.
Common questions
What does removing JavaScript from a PDF remove?
The script that runs when the file opens, the actions tied to the whole document, and the scripts stored in the file's list of scripts. The file you download is without-js.pdf. Other items stay.
Is my PDF uploaded when I remove JavaScript?
No. Your file stays on your device. It is never uploaded. You get without-js.pdf. Only PDF to Word, OCR PDF and heavy compression send files to our server.
Will my pages and form fields stay the same?
Pages stay, including their size and text. The title and author stay. Attachments and named destinations stay. A script tied to a single button, link or field on a page can stay, because this tool does not remove every script.
Is it free to remove JavaScript from a PDF?
Yes, it's free. No account, no daily limit, no watermark.