HTML Minifier
Minify HTML to shrink page size.
HTML input0 B
Minified0 B
Free online HTML minifier. Strip comments and collapse whitespace to shrink your HTML, and see exactly how many bytes you saved. Runs in your browser — nothing uploaded.
How to use the HTML Minifier
- 01Paste your HTML into the input box.
- 02Get minified output plus the size and percentage saved.
- 03Copy the compressed HTML.
Frequently asked questions
Will minifying break my page?
It removes comments and redundant whitespace between tags. For typical markup this is safe, but check pages that rely on whitespace inside <pre> or between inline elements.