Your result will appear here
Fill in the details on the left and press the button. You will see the answer right here, without the page reloading.
About this tool
A basic JavaScript beautifier: indentation, line breaks and spacing. Strings, template literals, comments and regular expressions are never touched, and code is never rewritten. It does not parse the language, so unusual constructs may be laid out less prettily than a full formatter like Prettier would manage. Your text is processed for this request only and is never stored.
Frequently asked questions
What does it do?
Indents and tidies JavaScript so it is easier to read.
Does it change what the code does?
No. Only spacing and layout change.
Does it find bugs?
No. For bugs, see our JavaScript debugging guide.