Minify HTML

Minify HTML to reduce file size

How to use

  1. Paste your HTML into the box.
  2. Extra whitespace and comments are removed.
  3. Copy the minified HTML for production.

Why use this tool

Frequently asked questions

Does minifying HTML change rendering?

No. The page renders the same; only non-significant whitespace and comments are removed.

Should I minify by hand?

Usually your build pipeline does it, but this tool is handy for quick one-off minification or static files.

Is my markup private?

Yes. It's processed in your browser.

Back to all tools