Convertur

HTML minifier

Paste HTML to remove comments and collapse whitespace between tags for a smaller page. A safe, conservative minifier that runs in your browser.

Loading tool…

What the HTML minifier does

It strips ordinary comments and collapses whitespace between tags to reduce byte size, while leaving script, style, pre, and textarea contents untouched.

Why minify HTML

Smaller markup means faster downloads and quicker first paint. It is a low-effort optimisation for landing pages and emails.

Safe by design

Conditional comments and the contents of code and preformatted blocks are preserved, so minification will not silently break scripts or layout.

How to html minifier

  1. Paste your HTML into the input pane.
  2. Click Convert to minify it.
  3. Copy the compact markup or download it as an .html file.

Related converters

HTML Minifier — FAQ