JavaScript Beautifier

Format minified or messy JavaScript into readable code.

What is a JavaScript beautifier?

A JavaScript beautifier reformats code with consistent indentation, spacing and line breaks, turning one-line minified scripts into readable code without changing what the code does.

When to use it

  • Reading a minified library or third-party script to understand what it does.
  • Cleaning up code before a code review.
  • Debugging a script copied from a web page.

The beautifier restores indentation and line breaks, but it cannot restore original variable names that a minifier shortened — those stay as single letters.

It supports modern JavaScript (ES2020+), JSON and JSX-like syntax. For production, shrink your code again with the JavaScript Minifier.

Frequently asked questions

Can it de-obfuscate code?

It makes code readable again, but renamed variables and obfuscation tricks remain.

Does it change how the code runs?

No, only formatting changes.

Is my code uploaded?

No, formatting happens in your browser.