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. Any algorithm for the "Javascript Unobfuscator" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "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.) or any database download or API access for "Javascript Unobfuscator" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Javascript Unobfuscator" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Javascript Unobfuscator on dCode.fr [online website], retrieved on 2025-04-22,