Those Boring Tools
Developer ToolsPrivate by design

HTML Minifier

Paste HTML to strip comments, collapse whitespace, and remove unnecessary line breaks, reducing payload size.

How to use this tool

  1. 1Paste your HTML source into the input box.
  2. 2Click Minify to compress it.
  3. 3Copy the minified output.

Frequently asked questions

Will minifying break my HTML?+

This minifier only removes comments and collapses redundant whitespace between tags — it doesn't rewrite attributes or tags, so behavior is preserved for well-formed HTML.

Does it minify inline CSS or JavaScript too?+

No, only the HTML markup itself. Inline <script> and <style> content is left as-is.

Keep the boring tools boring.

If this saved you five minutes of nonsense, you can help keep the free tools running.

Buy the toolbox a coffee