Is this HTML minifier free?
Yes. This HTML minifier is free to use with no sign-up and no limit on how much markup you minify.
Does it upload my HTML to a server?
No. Minification happens entirely in your browser, so the HTML you paste stays private on your device and is never uploaded.
Does it replace a full production HTML optimizer?
No. It focuses on practical whitespace and comment cleanup for pasted markup, not a complete build pipeline.
Can I inspect the result before exporting?
Yes. The minified output stays visible so you can review it before you copy or download it.
How much smaller will my HTML get?
It depends on how much whitespace and how many comments your markup contains. The tool shows the exact before-and-after size so you can see the savings.
Will minifying HTML make my page faster?
Barely, if compression is already on. Gzip and Brotli encode long whitespace runs very cheaply, so the extra saving from stripping that whitespace first is usually a low single-digit percentage of an already small file. Page weight is normally dominated by images, fonts, and JavaScript, and HTML minification does not touch any of them.
Does a full page keep its <head>?
Yes. If the markup you paste has head content, the whole document is returned, doctype and head included. A fragment with no head comes back as a fragment, which is what you want when you are cleaning a snippet.
Will it damage <pre> or <textarea> content?
No. Those blocks, along with <script> and <style>, are lifted out before the whitespace passes and restored afterwards, so the spacing inside a code sample is exactly as you left it.
Are conditional comments safe?
No. Every comment node is removed, including <!--[if IE]> blocks, build-tool markers, and the comment anchors some frameworks use for hydration. If your snippet depends on a comment doing something, minify it somewhere else.
Does the size delta show bytes saved?
No, it shows characters: the trimmed input length against the output length. That is a fair proxy for ASCII markup and an overcount for anything with accented characters or emoji, and it is measured before compression, so it is not the number that reaches the network.
Is my HTML uploaded?
No. Parsing, comment removal, and whitespace collapsing all run in your browser, and the markup is never sent anywhere.