developer
Free
No signup
JavaScript Obfuscator (Basic)
Apply basic obfuscation transformations to JavaScript code: variable renaming, string encoding, and whitespace removal.
Loading tool…
About this tool
Learn how JavaScript obfuscation works by applying transformations directly in your browser — no server required. Choose from Low, Medium, or High obfuscation levels to rename variables, encode string literals as hex/unicode escapes, strip comments and whitespace, and optionally wrap output in an eval call. A Deobfuscator tab attempts to reverse basic obfuscation so you can compare before and after.
How to use
- 1 Paste your JavaScript code into the left panel.
- 2 Select an obfuscation level: Low (whitespace/comments only), Medium (+ variable rename), or High (+ string encoding + eval wrap).
- 3 Click 'Obfuscate' to see the transformed output in the right panel.
- 4 Switch to the 'Deobfuscate' tab to paste obfuscated code and attempt to recover a readable version.
Frequently Asked Questions
Related tools