JavaScript Obfuscator & De-Obfuscator

Secure your source code with advanced obfuscation, or unpack and beautify scripts for analysis.

Input JavaScript
Processed Output

Processing Error

Error details will appear here.

Mode Option
Protections:

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.

Note: Heavy obfuscation will drastically increase your file size and slightly reduce execution performance. Use strictly on sensitive logic.

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.

Please disable your ad blocker to see relevant ads.