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!
JavaScript obfuscation involves transforming valid JavaScript code to make it difficult for humans to read and understand, while maintaining the exact same execution behavior.
This is done using tools called JavaScript obfuscators, which modify the code's structure without changing its underlying logic. The main goal is to complicate reverse engineering, copying, or analyzing the source code.
JavaScript deobfuscation involves analyzing and transforming obfuscated JavaScript code to make it readable and understandable again.
Common obfuscation techniques include renaming variables with short or meaningless identifiers, removing formatting, encoding strings, introducing unnecessary calculations, or using dynamic functions like eval().
Deobfuscation includes decoding encoded strings, rewriting complex expressions, and restoring more explicit variable names.
Perfect deobfuscation, meaning recovering exactly the original source code written by the author (variable names, structure, comments), is generally not possible. Obfuscation intentionally destroys semantic information not needed for execution, and this loss is irreversible.
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.
JavaScript minification involves reducing the size of JavaScript code to optimize its loading time and bandwidth consumption.
Unlike obfuscation, minification's primary goal is not to protect the code, although it does make it less readable.
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). 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 (Creative Commons CC-BY free distribution license).
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-12-22,