HTML Minifier

Shrink HTML by collapsing whitespace and stripping comments. Options stay conservative: attribute quotes are kept, and embedded scripts are not aggressively rewritten.

Result

Paste code, then Minify. Libraries load in your browser.

Related tools

FAQ