Tool/Unobfuscator to unobfuscate a JS script. Javascript snippets or lines codes can be minified or obfuscated in order to reduce their size or to protect them.
Javascript Unobfuscator - dCode
Tag(s) : Programming Language
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Obfuscation is to turn JS language native syntax into a human unreadable code (or very difficult to understand). This work is done by Javascript Obfuscators that minify/compress the original code. This is a way to protect the code so that it is difficult to reverse engineer. It's also a game to write source code with unreadable and unnatural syntax.
The techniques use ASCII codes (to replace characters with letters), changing names of variables by short non-defined names, overcoding such as base64, and so on.
The deobfuscation JS is the reverse of the obfuscation. The goal is to rewrite / decode / deobfuscate / decrypt / uncompress the javascript obfuscated code to retrieve native JS. Tools are called unobfuscator or deobfuscator.
JSFuck is a method for writing valid JavaScript with 6 characters: []()+!., similar to obfuscation.
Go to here website
Copy paste this in the address bar:javascript:for (i=0;i < document.forms.length;++i) {for(j=0;j < document.forms[i].elements.length;++j){document.forms[i].elements[j].removeAttribute("readonly"); document.forms[i].elements[j].removeAttribute("disabled");}}
Paste the obfuscated code in the lower textarea and click Decode to get something like:
Example: var … = …;
eval(…);
Replace the eval with a document.write
Execute javascript with a JavaScript editor.
JS minification is similar to obfuscation but for reasons of size and bandwidth saving. The principle is to reduce the size of the code, even if it makes it unreadable.
dCode retains ownership of the "Javascript Unobfuscator" source code. Except explicit open source licence (indicated Creative Commons / free), the "Javascript Unobfuscator" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Javascript Unobfuscator" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Javascript Unobfuscator" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.
The copy-paste of the page "Javascript Unobfuscator" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Javascript Unobfuscator on dCode.fr [online website], retrieved on 2024-12-21,