JavaScript Obfuscator (eval)
Obfuscate your JavaScript code by wrapping it in an $$eval()$$ function with encoded payloads. This tool helps obscure logic to deter casual code inspection, ideal for basic protection of scripts or generating test cases for security tools.
Eval-Based JavaScript Obfuscation Tool
Eval Obfuscation Encoding Process
The original code is transformed into a Base64 or hexadecimal string, then passed into an $$eval()$$ wrapper that decodes and executes it at runtime.
Eval-based obfuscation is a simple but effective way to obscure JavaScript code. It works by encoding the code string (e.g., using Base64) and embedding it in a dynamic $$eval()$$ call. While not secure against determined reverse engineers, it deters basic inspection and can be used for educational demos, licensing, or challenge scenarios in CTFs. The tool supports multiple encoding options and optional code compression before encoding.