JS Beautify

Beautify and format minified or messy JavaScript into readable code with proper indentation.

Loading tool…

How to use the JS Beautify

Turn compressed or messy JavaScript into clean, indented code you can actually read. Useful for inspecting third-party scripts, debugging and tidying up your own files.

  1. 1Paste your JavaScript code.
  2. 2Choose indentation and formatting options.
  3. 3Click "Beautify".
  4. 4Copy the readable JavaScript.

Frequently asked questions

Can it fully un-minify obfuscated code?

It restores indentation and spacing, but original variable names cannot be recovered once they are minified.

Does it support modern syntax?

Yes. ES2020+ features, arrow functions and template literals are supported.