Free JavaScript De-obfuscator & Beautifier

Turn minified or obfuscated JavaScript into readable, properly indented code — free, no sign-up, nothing leaves your browser.

What this actually does (and doesn't)

This reformats the structure of the code — proper indentation, line breaks, and spacing in place of a single dense wall of text — so you can actually follow the logic and see where functions, loops, and blocks begin and end. It can't recover a variable's original, meaningful name once that's gone, and it can't decode strings that a tool deliberately encoded and only decodes at runtime — those are exactly the parts of obfuscation designed to survive this kind of reformatting. Think of it as making the shape of the code readable again, not reversing everything that was done to it.

Frequently asked questions

Will this fully reverse cwtch.es's own JavaScript Obfuscator?

No tool can fully reverse it, including this one — that's the whole point of obfuscation. This will re-indent and reformat the output so its structure is readable again, and can meaningfully help with lighter obfuscation settings, but renamed variables stay renamed and encoded strings stay encoded. A human still has to work out what the code is actually doing.

What's the difference between this and just running a minifier in reverse?

There isn't really a "reverse" of minifying — once whitespace and original names are gone, they're gone. What this does instead is apply sensible formatting rules (consistent indentation, line breaks after statements, spacing around operators) to whatever names and structure remain, which is enough to make dense, single-line code genuinely readable again even though it can't restore anything that was actually deleted.

Will the reformatted code still run exactly the same?

Yes — this only changes whitespace, indentation, and line breaks. Nothing about the actual logic, order of operations, or behaviour changes.

Is my code sent anywhere?

No. This runs entirely in your browser — nothing you paste in is uploaded to a server.