Javascript Obfuscator
This tool will obfuscate your Javascript source code to help protect it from theft or unauthorised reuse.
The online JavaScript Deobfuscator, also known as a JavaScript Unpacker, is a powerful tool designed to decode obfuscated or packed JavaScript source code. Obfuscation is often used to make code difficult to read by transforming it into a compressed or scrambled format, which can make debugging, reviewing, or modifying the code challenging. This tool reverses that process by restoring the JavaScript to a more readable and structured form.
By deobfuscating the source code, the tool helps reveal the original logic, variable names (where possible), and code structure, making it significantly easier to understand how the script works. This is especially useful when analyzing third-party scripts, debugging minified code, or learning from existing JavaScript examples.
Once unpacked, the restored JavaScript code can be safely reviewed, revised, or edited as needed. Whether you are troubleshooting an issue, optimizing functionality, or simply trying to understand how a script operates, this tool provides a quick and convenient way to turn complex, unreadable JavaScript into clean, human-readable code.
Your code is unpacked in your browser and nothing is uploaded.
The javascript deobfuscator is a handy little tool that will decode javascript files that have been obfuscated.
.js file.eval(function(p,a,c,k,e,d)...) wrapper it unwraps it first, then lays the result out on multiple lines with proper indentation either way..js file.Some packed code is packed more than once. This tool keeps unwrapping as long as it finds another packed layer, up to a sensible limit, so you get back to real source in one click.
If the code was also obfuscated with shortened variable names, unpacking restores the code's structure and logic but not the original names — those were never stored anywhere to begin with.
This tool reliably reverses the classic "Packer" eval-wrapper scheme used by most obfuscator tools. Other techniques, like control-flow flattening or string-array encoding, are not unwrapped — the code is still reformatted for readability, just not decoded further.
It specifically recognises the classic "Packer" eval-wrapper (code starting eval(function(p,a,c,k,e,d){...}(...))), which is what most online JavaScript obfuscators, including the one on this site, actually produce. Other obfuscation techniques are not reversed, only reformatted.
If no packed wrapper is found, the tool simply reformats your code onto multiple lines with consistent indentation. This is also useful on its own for reading minified JavaScript.
No. If a name was shortened during obfuscation, the original name was never kept anywhere, so there is nothing to restore. Only the code's structure and logic come back.
The tool reads through your code before changing anything, and an unusual or unterminated string, comment or template literal can stop it. Your original input is never altered when this happens.
No. Both the unpacking and the reformatting happen in your browser, and nothing is sent anywhere.
This tool will obfuscate your Javascript source code to help protect it from theft or unauthorised reuse.
This tool will validate your Javascript source code and display any errors that might need to be fixed.
JSON Tree Viewer is an online tool that will convert your raw json data into a readable tree view structure.
This easy to use tool is great to help you minify or beautify your JSON files.