Javascript Deobfuscator
Fast, accurate and free online javascript deobfuscator tool running directly in your browser.
-
1Enter data
Enter content, paste text or load a file from disk. -
2Click the button
The tool will immediately process your data in the browser. -
3Get the result
Copy the finished text or save the file to your device.
return "Result ready in 0.1s";
}
Rate this tool:
Related tools
Other tools you may find usefulJavaScript DeObfuscator online - recover readable code from obfuscated scripts
JavaScript DeObfuscator is a free online tool that turns obfuscated, hard-to-read scripts into the most readable code possible. You paste the obfuscated JavaScript, select intelligent repair options and after a while you receive a formatted result ready for analysis, debugging or security auditing. No ads, no login and no plugin installation.
JavaScript deobfuscator Code autoformatting Unwrap eval() Dean Edwards p.a.c.k.e.r Base64 decoding \xHH conversion Up to 3 parse passes Copy or download .js Shortcut Ctrl or Cmd + Enter
If you're working with obfuscated code, trying to understand how a library works, struggling with a bug in production, or learning front-end application security techniques, this JavaScript deobfuscator allows you to quickly get back to a parsable script form.
Table of Contents
How the JavaScript DeObfuscator tool works
The tool takes obfuscated JavaScript code, normalizes it and runs a series of transformations that remove subsequent layers of obfuscation. The engine works in layers. First, it gets rid of external wrappers and equalizes the format, then runs heuristics specialized for typical obfuscator patterns, and finally applies autoformatting (beautify) to maximize the readability of the result.
- You paste thecode into the input editor or use the Paste from Clipboard button.
- You enablerecovery options such as unwrap eval(), p.a.c.k.e.r unpacking, base64 decoding and hex sequence conversion.
- You set the number ofpasses from 1 to 3 to expand the obfuscation layers.
- You run deobfuscation, and you can copy the result or download it as a .js file.
The interface shows clear job status: Processing, Ready or No Result. There is also an Example button that provides a sample of obfuscated p.a.c.k.e.r. code, so you can test the tool without pasting your own script.
Deobfuscator functions and heuristics
JavaScript DeObfuscator combines the functions of a classic beautifier with specialized heuristics that know the typical tricks of obfuscators. Thanks to this, the tool not only improves formatting, but actually reproduces the structure and logic of the code.
Pre-layer
- Normalizeremoves the BOM tag, unifies line ends and prepares data for the parser. This is an important stage when the code comes from different environments or has been glued together from several files.
- Unwrap eval()will remove the outer wrapper
eval(...)in a situation where the obfuscator wrapped the entire script into one dynamic call.