HTML, CSS and JS formatter

Turn minified or messy HTML, XML, CSS, JavaScript and JSON into neatly indented code. It runs in your browser, so your code is never sent anywhere.

Runs in your browser. Your files are never uploaded or stored.

Something not working, or missing an option?

How to use HTML, CSS and JS formatter

  1. Paste code or open a file.
  2. Keep “Detect” or choose the language, and pick an indent.
  3. Select Format code, then copy or download it.

Questions

Does formatting change what the code does?

No. Only spaces and line breaks change, so the code behaves exactly as before.

Are my files uploaded?

No. The tool runs inside your browser, and the page is blocked from sending data anywhere. You can check by turning off your internet connection: it keeps working.

Open-source parts

Full license texts