Home › Developer Tools › HTML Minifier
Minify HTML in your browser · remove comments whitespace · copy or download · 100% client-side
Drop in a full HTML document, a template partial, or a component markup. Any valid HTML works.
Toggle which optimizations to apply: remove comments, collapse whitespace, remove optional closing tags, minify inline CSS and JS.
Get the compacted HTML with the original and minified file sizes shown so you can see exactly how much was saved.
Minify JSON payloads alongside your HTML.
Minify the stylesheets linked from your HTML.
Minify the scripts used on your page.
Convert Markdown content to HTML before minifying.