Minify and improve the performance of HTML code.
The HTML minifier removes comments and collapses whitespace in your HTML, trims the spaces around block level tags and minifies the CSS of inline style tags. The content of pre, textarea and script elements is preserved exactly.
Lighter HTML reaches the browser faster, especially on mobile networks, and helps the first contentful paint. Minification is also a good last step for email templates and static pages.
HTML comments are removed, conditional comments are kept.
Runs of spaces and line breaks are reduced.
Style tags are minified with the CSS minifier.
pre, textarea and script contents are left untouched.
Spaces between inline elements are kept as a single space, so the layout stays the same.
The savings are smaller than for CSS and JS once gzip is on, but they still add up on large pages.
Inline scripts are kept as they are. Use the JS minifier for JavaScript.
No, everything is processed in your browser.