JavaScript Obfuscator
Make your JavaScript hard to read and copy — rename, encode strings, and compact your code right in the browser. Nothing is uploaded. Free.
Everything runs in your browser — your code never leaves your device.
1
Obfuscation deters casual reading; it is not encryption or real security.
About JavaScript Obfuscator
The JavaScript Obfuscator makes your source code hard to read and casually copy, directly in the browser. It tokenizes your script and rewrites it: string literals become hex and unicode escape sequences, numbers turn into hex or XOR expressions, whitespace is compacted, and an optional self-defending wrapper resists reformatting.
Each transformation is a toggle — Encode strings, Obfuscate numbers, Compact (minify) and Self-defending wrapper — so you control the trade-off between readability and output size. The tool reports the size change as a percentage, and you can copy the result or download it as obfuscated.js.
Everything runs client-side, so your unreleased code never leaves your device. Keep in mind that obfuscation deters casual reading; it is not encryption and should not be treated as a security measure for secrets or license checks.
How to use JavaScript Obfuscator
- Paste your JavaScript into the Source pane, or click Sample to try it with example code.
- Pick your options: Encode strings, Obfuscate numbers, Compact (minify) and Self-defending wrapper.
- Review the obfuscated output and the reported size change.
- Click Copy, or Download to save the result as obfuscated.js.
- Test the obfuscated file in your project to confirm it still behaves identically.