HTML Minifier & Beautifier
Format HTML or compress it in your browser. Contents of script, style, pre and textarea are left untouched.
What is preserved
Compressing removes comments and the whitespace between tags. Text inside script, style, pre and textarea is copied as-is, because collapsing it can change how the page runs or how preformatted text looks.