PDF/JS Polyglot

Generates a file that is both a valid PDF document and valid JavaScript. When loaded via <script src>, the JS payload executes.

JavaScript code to execute when the file is loaded as a script.

About this tool

Generates a file that is both a valid PDF document and valid JavaScript. When loaded via <script src>, the JS payload executes.

Read documentation →