Minify HTML to make your pages smaller and faster. Paste your markup to remove comments, redundant whitespace and unnecessary characters, then copy the compressed HTML for production — a free, private minifier that runs in your browser.
Smaller HTML means less to download and parse, which improves load time and Core Web Vitals. The minifier strips comments and collapses whitespace between tags to cut size. It is a lightweight minifier, so check whitespace-sensitive content such as preformatted blocks and inline scripts after minifying.
When you do not want to wire up a build step, paste HTML here, minify it, and copy the result. Great for email templates, landing pages and snippets you ship by hand.
Paste your HTML into the input and the minified version appears instantly with comments and extra whitespace removed. Copy it with one click.
In most cases no — it removes comments and whitespace that browsers ignore. Because this is a lightweight minifier, double-check whitespace-sensitive areas such as preformatted text and inline scripts after minifying.
Yes, free with no sign-up. Everything runs locally in your browser.