HTML / CSS Formatter

Crammed-on-one-line code, tidied up in one click. 100% client-side — your code never leaves the browser.

FAQ

Does the formatter upload what I write?
No. Code is parsed and laid out locally in your browser; nothing is sent to any server.
What does HTML formatting support?
It regenerates indented, structured HTML from the browser DOM, handling nested tags, self-closing tags and text nodes correctly. Comments and doctype are omitted — meant for everyday formatting.
Will CSS formatting change my selectors?
No. The tool only adjusts indentation and line breaks; selectors, property names and values are never modified.