Code formatter

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

In
CSS · JS · HTML
Out
CSS · JS · HTML
Options
Input · CSS · JS · HTML
Output · CSS · JS · HTML

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