The tool’s interface below is still in French. The interface is being translated by Google Translate.
JavaScript deobfuscator and beautifier
A minified, packed or deliberately scrambled script: get back code you can read, without ever executing it.
Code lisible
Points d’attention
| Collez un script pour l’analyser. |
Adresses trouvées
—
Ce que l’outil fait, et ne fait pas
- Il réécrit, il n’exécute pas. Toutes les transformations sont des remplacements de texte : un script malveillant ne peut rien déclencher ici.
- Il dépaquette le format « p,a,c,k,e,d » en recalculant la table de mots, y compris sur plusieurs couches.
- Il décode les échappements \x41 et \u0041, les appels atob("…") et String.fromCharCode(…) à arguments constants, et les tableaux de chaînes indexés directement.
- Ses limites : les obfuscateurs qui font tourner le tableau de chaînes, chiffrent les chaînes en RC4 ou aplatissent le flux de contrôle demandent une exécution contrôlée ; JSFuck et consorts sont seulement signalés. Les noms de variables d’origine, eux, sont perdus pour toujours.
How to use the JavaScript deobfuscator
A minified, packed or scrambled script turned back into indented, readable code, without ever being executed.
-
Paste the script
Minified, packed or obfuscated.
-
Choose the passes
Unpacking, string decoding, simplification, renaming.
-
Read the result
Indented code, detected techniques, sensitive calls and addresses.
About the JavaScript deobfuscator
Minification shortens code to load it faster, while obfuscation scrambles it on purpose. In both cases the logic is intact: you just need to restore the formatting, decode the strings and replace the indirections to recover it.
All the transformations are text rewrites. That makes the tool safe for examining a suspicious script found on a hacked site, and it is also its limit: protections that decrypt their strings at runtime only partly give way.
Frequently asked questions about the JavaScript deobfuscator
Can I recover the original variable names?
No, they were removed. The tool can only replace unreadable names with short, regular ones.
Is my script executed during the analysis?
Never. No eval call is made: even the packed format is unpacked by computation.
What if the result is still unreadable?
Run the result through again: some protections stack in layers. Beyond that, you need a debugger and a controlled execution.
Is reverse engineering legal?
Analyzing your own files, a piece of malware you received or a format for interoperability is generally accepted. Bypassing a protection or a license is not, so check the rules that apply before going further.