JavaScript Beautifier
Make minified JavaScript readable again.
About this converter
Usually because you are reading something you did not write — a bundle you are debugging, a snippet from a page, a file with no source map.
Formatting restores the layout and nothing else. If the file was minified with mangling on, the variables are still called a, b and c: those names were thrown away and no tool can recover them. What you get back is structure, which is enough to follow the logic.
For your own code a formatter that runs on save — Prettier, or your editor — is a better answer than a web page. This is for the files that arrive without one.
Frequently asked questions
Will this give me back my original variable names?
No. Mangling discards them, so a minified file genuinely no longer contains them. Formatting restores indentation and line breaks, which makes the structure readable, but a variable called "e" stays "e". A source map is the only thing that recovers the original.
Does it change what the code does?
No. Only whitespace and line breaks move. The one thing worth knowing is that formatting cannot repair code that was already broken — if it will not parse, it comes back as it went in.
Does what I paste get sent anywhere?
No. Everything runs in your browser, on your own machine. What you paste is not uploaded or logged.