All tools

JavaScript Beautifier

Beautify and format minified JavaScript code. Adds indentation and line breaks for readability.

JavaScript Input
1
function hello(){return 'world';}
Ln 1, Col 1
Outputlive
1
Output appears here as you type...
Ln 1, Col 1

How to js beautifier

  1. 1

    Paste your JavaScript code.

  2. 2

    Click Beautify.

  3. 3

    Copy the formatted code.

Frequently asked questions

Does this work on minified code?

Yes — it adds back indentation and line breaks. Complex minified code with removed variable names cannot be fully restored, but readability improves significantly.

Related tools