JS (eval) Encode/Decode

About this JS obfuscation tool

1) In JavaScript, eval can execute any string as code.

2) This tool encodes/decodes JS by wrapping with eval.

3) Warning: eval is dangerous and can lead to injection or XSS.

4) Tip: Use the JS format/minify tool to beautify decoded code.

How to Use

What this tool does

Encodes or decodes JavaScript snippets using escape/unescape around eval for obfuscation demos.

Steps

  1. Encode: paste JS โ†’ click Encode to get an eval(unescape(...)) string.
  2. Decode: paste encoded string โ†’ click Decode to recover the original code.

Examples

Security notes