No file open

Tools

Check a PDF for JavaScript

or drop a file anywhere here

Dropbox
Google Drive
OneDrive
Box

Files other than PDF are converted first. Signing in raises the size limit.

You add
One PDF
You set
Nothing to set
You get
Each script listed, with its place in the file

A PDF can carry JavaScript that a desktop reader may run when the file opens, when a page opens, or when you click or fill in something. Most PDFs have none. This page is for anyone who wants to see what a PDF's scripts say before opening it in a desktop reader, such as the person who got an unexpected attachment, someone checking a form, or a developer tracing a calculation. It opens the Properties panel in the editor. The panel's Scripts row has a Show the scripts button that lists each script with its location in the file and its code as plain text. The code is only displayed, never run. In our test on 5 November 2026 the panel listed all five scripts of a sample we made, in 3.6 seconds from the click, and the first one carried a long code in place of a readable name. The panel is shared with the file's pages, size and details. It lists JavaScript only: it is not a malware scanner, and it does not judge whether a script is harmful. To remove scripts, use Sanitize PDF. A file with a password has to be unlocked first.

Our own 2-page PDF, 5,411 bytes, with one script in each of five places

Scripts in the fileour own count, made before the upload
5 scripts
Scripts listed by the panelname, location and code for each, none run
5 scripts
Upload to the Scripts rowin our test
6.3 s
Click to the full listin our test
3.6 s
Downloads offeredthe input file was unchanged
0 files
Measured on indox.org on 5 November 2026: an anonymous run on a PDF we made, with scripts in five places. We counted the scripts ourselves first, then pressed Show the scripts. This page changes nothing, so there is no before and after to compare.

What can you do when you show a PDF's JavaScript?

See each script and where it sits

The list gives every script a name, a location such as document, and its code. The engine reads six places: the document-level scripts, the open action, the document's additional actions, each page's additional actions, link and button actions, and form field actions.

Read the code on screen

Show the scripts prints the code in the panel as text. There is no file to download and open in an editor.

See the file's other facts

The panel also shows pages, file size, attached files and the document details, so you can judge the file as a whole.

Know how to remove them

The panel's own note says scripts can run when the file opens and that Sanitize takes them out.

What showing JavaScript keeps and changes

Stays the same

  • The whole file, scripts included.
  • Every property and every page.
  • The file you have on your device.

Changes

  • Nothing. The scripts are only displayed, and in our test no download was offered.

Show scripts, remove them, or look at something else

You want toUseWhat it does
Read a PDF's scripts without changing the fileThis pageLists each script with its location and code, and runs none
Get a copy without the scriptsSanitize PDFTakes scripts out of the file, as the panel's own note says
Open a PDF that has a passwordUnlock PDFRemoves the password so the file can be read
See the pages, size and details of the filePDF infoShows the file's facts
See the files attached inside the PDFList attachmentsLists the embedded files

How to show the JavaScript in a PDF in 3 steps

  1. Open your PDF

    Add the PDF in the upload area. The Properties panel opens and reads the file.

  2. Press Show the scripts

    Find the Scripts row in the panel and press Show the scripts.

  3. Read each script

    Each entry gives a name, where it sits in the file and the code. To get rid of the scripts, use Sanitize PDF.

Screenshot of the Properties panel with its Scripts section showing a document-level script and the OpenAction script as code

Why show PDF JavaScript with indox?

Checking a PDF for scripts used to mean downloading a text file and opening it elsewhere. Here the scripts are listed on screen, each with its place in the file, and nothing runs. The tool displays what the file holds. It does not judge whether the code is harmful and it does not remove anything.

  • Each script listed with its location
  • Code shown on screen, nothing to download
  • The code is displayed, never run
  • Pages, size and details in the same panel
  • A pointer to Sanitize for removal
The indox Show JavaScript page before a file is added, with the Choose PDF file button in the editor

What are the limits when you show a PDF's JavaScript?

File size
A visitor who is not signed in can check a PDF of up to 200 MB, within a daily free allowance. A signed-in account can upload up to 200 MB per file.
Where it runs
The scripts are read on indox's server with a PDF parser that never runs them, so the PDF is uploaded over HTTPS. If you are not signed in, the upload and the result are deleted 24 hours after the job finishes. A signed-in account keeps them in its history until you delete them, for at most 180 days, and you can choose 24 hours or 30 days instead. Either way indox keeps a record of the job, such as the file name and its status, not the file.

Limits worth knowing

  • Showing a script does not remove it. In our test on 5 November 2026 the panel offered no download and the file was unchanged, so every script stays in your PDF. To get a copy without scripts, use Sanitize PDF.
  • In our test on 5 November 2026 the first script was listed under a long code (3c9da2fb-9b6d-4ba1-84aa-c4d3ce0fa742) instead of a readable name. That code is the key the file stores the script under. Read the location and the code below it to tell the scripts apart.
  • This page is the shared Properties editor, so it has no result screen of its own. In our test its main button still read Save properties. To get a PDF without scripts, use Sanitize PDF.
  • The engine looks in six places: document-level scripts, the open action, the document's additional actions, each page's additional actions, link and button actions, and form field actions on the page. It does not read XFA form scripts, RichMedia or 3D scripts, scripts inside attached files, or actions on bookmarks. For those, check the file in a desktop tool.
  • Our test used one two-page sample with five scripts, and we did not run a file without scripts or a locked file. Other files can behave differently.
  • Only JavaScript is listed. Other actions a PDF can carry, such as opening a web address or launching a file, are not shown, and fonts, images and attached files are not checked for exploits.
  • The panel shows scripts and does not decide whether they are harmful. Reading the code is up to you.
  • A password-protected file must be unlocked first.

When the result is not what you expected

What you seeWhyWhat to do
The first script has a long code as its nameThe code is the key the file stores a document-level script underRead the location and the code below it. The name is not a label a person chose.
The panel's main button says Save propertiesThis page is the shared Properties editor and only reads the scriptsThere is nothing to download here. Use Sanitize PDF for a copy without scripts.
A script you know is in the file is not listedIt sits in a place this page does not read, such as XFA, RichMedia, 3D or an attached fileCheck the file in a desktop tool. See List attachments for attached files.
The panel says it couldn't read thatReading the code failedPress Show the scripts again.
The scripts are still in the fileThis page only displays scriptsUse Sanitize PDF to remove them.
The panel says the file has a passwordProperties cannot be read from a locked fileUnlock the PDF first, then open the panel again.

What do the free and paid plans add?

Free

  • All converters
  • Daily credit refresh
  • Email support

Basic

  • Access to all features
  • AI Extract
  • Priority conversions
  • Email support
Highest priority

Premium

  • Everything in Basic
  • Highest priority queue
  • Priority support

Pay-As-You-Go

  • No subscription
  • Credits never expire
  • Opt-in auto-refill
  • Access to all features
See prices

Where a script can sit in a PDF, and which places this page lists

Place in the fileRuns whenListed here
Document-level scripts (the JavaScript names tree)The file is openedYes, listed in our test
Open action on the documentThe file is openedYes, listed in our test
Additional actions on a pageA page is opened or closedYes, listed in our test
Link or button actionYou click itYes, listed in our test
Form field actions, such as a format or calculationThe field is formatted, changed or calculatedYes, listed in our test
Document additional actionsThe document is closed, saved or printedYes by design, not in our sample
XFA forms, RichMedia and 3DThe content is activatedNo
Scripts inside attached filesThe attachment is opened on its ownNo
Action on a bookmarkYou click the bookmarkNo

Who looks at the JavaScript in a PDF?

  • People who got a PDF from someone they don't know

    Check whether it carries scripts before you open it in a desktop reader that might run them.

  • IT and security staff

    Take a quick look at a suspicious attachment, count its scripts and read them as text, then hand it to Sanitize PDF.

  • Developers and form builders

    See what JavaScript a form PDF carries, for example the code behind a calculation, without hunting for a separate tool.

When to show JavaScript, and when to pick another tool

  • A PDF arrived by email and you want to see whether it carries scripts.
  • You want to read the JavaScript a form uses.
  • You want to see which scripts a file carries before you publish it.
  • You were told the PDF has scripts and want to see them.
  • You want the scripts gone. Use Sanitize PDF.

Where can I read more?

Sources

Facts checked on November 5, 2026

Do it all with indox

Show JavaScript FAQs

How do I check if a PDF contains JavaScript?

Add the PDF here and press Show the scripts in the Properties panel. It says This file has no scripts, or gives the number it found and lists each script with its location and its code as text on screen. Nothing is run.

Does it run the scripts?

No. The code is displayed as text only. In our test on 5 November 2026 no script dialog appeared.

Does it remove the scripts?

No. In our test the file was unchanged and no download was offered. Sanitize PDF removes scripts.

Where in the PDF does it look for scripts?

In six places: document-level scripts, the open action, the document's additional actions, each page's additional actions, link and button actions, and form field actions on the page. It does not read XFA, RichMedia or 3D scripts, scripts in attached files, or actions on bookmarks.

Is a PDF with scripts dangerous?

Not necessarily. Harmless files can carry scripts. Didier Stevens, who writes PDF analysis tools, notes that an open action or additional actions run when the file is viewed, and that this combined with a script is very suspicious. Reading what the code does is the safe first step.

Can it tell me whether a PDF has malware?

No. It lists the JavaScript in the file and shows its code, which is one common sign to look for. It does not scan fonts, images or attached files for exploits, does not list actions that open a web address or launch a file, and does not judge the code. For a suspicious file, also run a malware scanner, and use Sanitize PDF to strip the scripts.

Do I need an editor or a download?

No. Add the PDF and press Show the scripts, and the code appears in the panel. There is no file to download and no separate editor to buy.

Why does it say my file has a password?

Properties cannot be read from a locked file. Unlock the PDF first.

Why is the first script named with a long code?

In our test the first script was a document-level one, and it was listed under the key the file stores it under, a code like 3c9da2fb-9b6d-4ba1-84aa-c4d3ce0fa742. It is not a name chosen by a person. The location and the code beneath it tell you what it is.

Do I need an account to check a PDF for JavaScript?

No. It works without signing in, within a daily free allowance and a 200 MB cap per file. Signing in raises the cap to 200 MB.

What happens to the PDF I upload?

It is sent to indox over HTTPS and read by a parser that does not run the scripts. If you are not signed in, the upload is deleted 24 hours after the job finishes; with an account it stays in your history until you delete it. The file on your device is not changed.