JavaScript Obfuscator
Create a reversible wrapper for a JavaScript snippet, or restore code wrapped by this tool.
Obfuscation is not encryption and cannot make browser JavaScript secret. This tool never executes the code you enter.
What changes in the generated JavaScript
The source is converted to UTF-8, encoded as Base64 and placed inside a loader. The result is less readable at a glance, but the original source can be recovered.
- Obfuscate
- Creates the wrapper from the text you enter. This page does not run the source or check whether it is valid JavaScript.
- Deobfuscate
- Recognizes the exact wrapper produced here and restores its text. It is not a general decoder for minified code or other obfuscators.
- Deploy
- The generated loader uses
evalwhen executed. A Content Security Policy that blocks eval can prevent it from running.
Keep secrets on the server — wrapping client-side code does not protect API secrets or passwords. For production assets, review the output in your normal build and test process.
