Code formatter

Pretty-print CSS, HTML or SQL.

How it works

  1. Choose the language: CSS, HTML or SQL.
  2. Paste your code, even if it's all crammed into a few lines.
  3. Click "Process" and copy the result, now indented and readable.

Frequently asked questions

Does it also format JavaScript?

Right now this tool covers CSS, HTML and SQL; for JavaScript you can use a local editor together with the "Code minifier" the other way around.

Does formatting change my code's logic?

No, it only adjusts spacing, line breaks and indentation; the code's behavior stays exactly the same.

Try it now