Skip to content

Code Beautifier

Re-format minified or compressed JS, HTML and CSS back into readable, indented code.

Developer Runs client-side Free forever
Launch Code Beautifier

About the Code Beautifier

Code Beautifier does the opposite of the minifier — it takes a single-line, whitespace-stripped blob of JS, HTML or CSS and restores proper indentation, line breaks and readability.

How to use

  1. Pick the language tab.
  2. Paste the minified code.
  3. Click Beautify and copy the indented output.

Benefits & key features

  • Choice of indent size (2 spaces, 4 spaces, tabs).
  • Handles most minifiers' output including UglifyJS, Terser and CleanCSS.
  • Useful for auditing third-party scripts and inline widgets.
  • Runs locally, so proprietary code never leaves the browser.

Pro tip

If the beautified output still looks mangled, the source was obfuscated (variable names replaced with gibberish). Beautifiers restore whitespace, not semantics.

Open Code Beautifier now