Tested tool guide
Tested browser tools
Checked August 16, 2026
What HTML Minifier does, with a checked example
HTML Minifier rewrites pasted HTML into a smaller source form by removing comments, tightening removable whitespace, and omitting tags whose absence is permitted by HTML. It targets bytes spent on authoring layout rather than the document's intended browser behavior. The common surprise is that whitespace is sometimes page content: a space between inline elements can separate visible words, while indentation between structural elements may be dispensable. The compact result is intended for delivery or storage, not easier editing, and should be tested as HTML rather than judged only by its shorter appearance.
Worked example
A concrete input and expected output from the current implementation.
Input
<!-- list note -->
<ul>
<li>One</li>
<li>Two</li>
</ul>
->
Expected output
<ul><li>One<li>Two</ul>
The ordinary comment and formatting whitespace disappear. Each li end tag is optional in this list structure: the second <li> starts a new item, and </ul> ends the final item.