JavaScript Obfuscator
Obfuscate JavaScript online with light, medium and strong presets covering string arrays, control flow flattening and dead code injection.
Input JavaScript
Obfuscated result
About This Tool
The JS obfuscator converts readable JavaScript into a form that is much harder to reverse engineer. Three presets cover the trade-off: light does string arrays and identifier renaming with minimal size growth, medium adds control flow flattening, and strong adds dead code injection plus base64 string encoding for maximum strength at the cost of size.
The obfuscator loads from a CDN on first use and runs entirely in your browser, so source code is never uploaded. It suits internal tooling and frontend logic that has to be delivered to third parties.
Key Features
Three presets
Balance protection strength against output size without tuning parameters.
String array encoding
Extracts and shuffles string constants to break literal-to-logic mapping.
Control flow flattening
Scatters branch structure, making reading and debugging much harder.
Local processing
Code never leaves the page and nothing is uploaded.
When to Use It
Protect delivered scripts
Add basic obfuscation to frontend scripts handed to third parties.
Harden internal tools
Raise the cost of reverse engineering internal operation scripts.
Study obfuscation
Compare the output of all three presets on the same snippet.
How to Use It
- 1Pick the light, medium or strong preset.
- 2Paste the JavaScript to obfuscate.
- 3Click Obfuscate and wait for completion.
- 4Copy the output and verify behaviour in a browser.
Frequently Asked Questions
Does obfuscation slow the code down?
There is some overhead. Control flow flattening and dead code injection add more, so use the light preset for performance-sensitive logic.
Can obfuscation replace server-side checks?
No. Obfuscation only raises the reading cost and cannot truly hide logic. Core validation must stay on the server.
