How to use the html minifier
- Paste your HTML.
- Choose whether to minify inline CSS.
- Copy the minified HTML.
Safe minification
Whitespace next to block elements such as <div> or <p> never shows on screen, so it’s removed. Between inline elements like links, a single space is kept so words don’t run together. Conditional comments for old Internet Explorer are kept.
Examples
116 bytes
<a>One</a> <a>Two</a>