JS Minifier
Minify JavaScript by removing comments, whitespace, and newlines. Supports console.* removal and variable name mangling.
Obfuscate JavaScript code to make it harder for third parties to read and analyze. Supports multiple options including string array extraction, control flow flattening, and self-defending code.
This tool raises the bar for third-party analysis of your JavaScript by renaming variables to meaningless names and rearranging strings and control flow so the logic is harder to follow — useful for distributed scripts or code you’d like to give lightweight protection.
It runs the popular javascript-obfuscator library directly in your browser, so your code is never sent to a server. You can combine several options depending on your needs: string array extraction, control flow flattening, dead code injection, and self-defending code.
Minification removes whitespace and comments to reduce file size. Obfuscation renames variables to meaningless names and rearranges code (such as moving strings into an array) to make the logic harder for a human to read. Obfuscated code is often larger than minified code.
No. Since JavaScript must be delivered in an executable form to run in a browser, anyone can technically obtain the code that actually runs. Obfuscation raises the effort required to analyze it — it does not guarantee true secrecy.
Control flow flattening restructures the program's execution order (typically into a switch-based dispatcher), which increases resistance to analysis but also significantly increases output size and runtime overhead. On larger code, the obfuscation process itself can take several seconds.
No. This tool only performs one-way obfuscation; there is no reversal feature. Always keep a separate copy of your original source code.
No. All obfuscation happens entirely in your browser — nothing is sent anywhere.