DEVELOPER TOOLS · LOCAL ONLY

HTML Minifier

Strip HTML comments and redundant whitespace to shrink output.

Up to 200,000 characters. Removes comments and whitespace only; tags and attributes are not rewritten.

Minify
4 lines · 60 bytes
0 lines · 0 bytes
Run the tool to see the result

Up to 200,000 characters. Removes comments and whitespace only; tags and attributes are not rewritten.

How to use

Strip HTML comments and redundant whitespace to shrink output.

Collapse development HTML onto one line to cut transfer size. Newlines and indentation between tags are removed and HTML comments are deleted entirely, while the contents of `<script>`, `<style>`, `<pre>`, and `<textarea>` are always preserved so code and preformatted text survive.

Limits and privacy

Up to 200,000 characters. Removes comments and whitespace only; tags and attributes are not rewritten.

Everything runs inside this browser. Your input is never uploaded, stored, or written to the URL or any log.