JavaScript Obfuscator
Protect your JavaScript source code with AST-level transforms. Everything runs in your browser your code never leaves your device.
Options
Compact
Remove whitespace and line breaks
String Array
Move strings into a hidden array
Control Flow Flattening
Restructures code flow · slow
Dead Code Injection
Inject random unreachable code
Numbers to Expressions
Replace numbers with math expressions
Self Defending
Breaks if code is reformatted · risky
Debug Protection
Prevents DevTools debugging · risky
Disable Console
Silences all console.log calls
Rename Globals
May break external API calls · risky
Loading library…
100% private
Your code never leaves your browser or saved on our server.
AST-level transforms
Powered by javascript-obfuscator, not regex hacks.
Load JS files
Drag & drop or click to open a .js file.