JavaScript Obfuscator & De-Obfuscator
Secure your source code with advanced obfuscation, or unpack and beautify scripts for analysis.
Processing Error
Error details will appear here.
About the JS Obfuscator & De-Obfuscator
JavaScript runs completely exposed in the client's browser, meaning anyone can view your intellectual property, API logic, and algorithms. The OnlinePaste.com JS Toolkit allows you to transform readable source code into a highly scrambled format, or unpack messy code for easier analysis.
Advanced Protections
Basic minifiers just remove spaces. Our tool utilizes advanced AST (Abstract Syntax Tree) manipulation. Enable Control Flow Flattening to destroy the logical structure of your `if/else` statements. Enable Debug Protection to cause endless loops if a user attempts to open the Chrome Developer Console.
De-Obfuscation (Beautify)
Are you analyzing a malicious payload or trying to debug a minified script? Switch the Mode Option to De-obfuscate. While it is mathematically impossible to recover original variable names (like converting _0x1a2b back to userName), our engine will unpack the arrays, normalize the structure, and apply perfect indentation to make the logic readable.