JavaScript formatter

Re-indents JavaScript and puts it on readable lines — minified code included. Indent with 2 or 4 spaces or tabs.

In
JS
Out
JS
Reverse: JS
Options
Input · JS
Output · JS

Waiting for input

Runs in this tab. The text is not sent anywhere.

Related

Questions

Does formatting change what the code does?

No: only whitespace and line breaks change. It also does not check the code, so a syntax error is formatted as far as it goes.

↑ ↓ move · Enter open · Esc close