JavaScript Obfuscator — obfuscate and protect your JS code with configurable options
JS Obfuscator
Protect your JavaScript source code
v2.0 Pro
Obfuscation Options
Variable Renaming
Rename vars to meaningless names
String Encoding
Encode string literals to hex/unicode
Control Flow Flatten
Flatten control flow structure
Dead Code Injection
Insert unreachable dummy code
Self Defending
Breaks if code is reformatted
Debug Protection
Prevents usage of debugger
Unicode Escape
Convert identifiers to \\uXXXX
Comment Removal
Strip all comments from code
Identifier style
Hex (_0x1a2b)
Underscore (_a, _b)
Mangled (a,b,c)
Emoji (🔒,🛡️)
String encoding
Hex escape
Unicode escape
Base64 array
RC4 encrypt
Preset
Default
Low (readable)
Medium
High (max)
Input
Output
Ready — paste your code and click Obfuscate
Input: 0 chars
Output: 0 chars
Ratio: —
Obfuscate
Load Sample
Clear
Copy Output
Download .js