JavaScript Beautifier

Re-indent minified or messy JavaScript into clean, readable code with consistent spacing. Runs in your browser. Free online tool.

Result

How to use JavaScript Beautifier

  1. Paste minified or messy JavaScript.
  2. Pick the indentation.
  3. Copy the readable code.

Good to know

  • Line breaks the author wrote are kept wherever JavaScript's automatic semicolon insertion might depend on them, so the code behaves exactly the same.

Privacy

Runs entirely in your browser. Nothing you enter or open here is uploaded.

Related tools