Search and jump to any tool. Type to filter; use arrow keys to move and Enter to select.
The HTML minifier strips comments and redundant whitespace from markup so the file is smaller to ship.
The HTML minifier strips comments and redundant whitespace from markup so the file is smaller to ship. You paste a page or snippet, pick which of five clean-up passes to apply, and get the compact version along with a before-and-after byte count. It suits hand-written static pages, email templates and embed snippets where setting up a build pipeline would be overkill.
<div class="card"> <!-- heading --> <h1 id=""> Hello world </h1> <p>Some text</p> </div>
<div class="card"><h1> Hello world </h1><p>Some text</p></div>
Good to know. Sizes are counted as UTF-8 bytes. This is a lightweight regex minifier, not a full HTML parser, so always open the minified page once to confirm it still renders the same.