Code and data

JavaScript Beautifier

Turn minified or messy JavaScript into readable code.

  • Free
  • Runs in your browser: nothing is sent
  • No limit: it runs on your device
  • No sign-up
About JavaScript Beautifier

Paste minified, bundled or badly indented JavaScript and get it back with consistent indentation and line breaks, so you can read a production bundle or clean up a snippet before sharing it. It parses the code rather than guessing, and runs in your browser.

  • Re-indents and re-breaks code from a real syntax tree
  • Good for reading minified bundles and third-party scripts
  • Nothing is uploaded
Questions · 1

Can it restore original variable names?

No. Names shortened by a minifier are gone unless you have a source map. Beautifying restores layout, not names.

Use it from code · API

JavaScript Beautifier runs in your browser, so there is no server call for it. API docs covers the tools you can call from code.