iPGaze

HTML Minifier

Collapse whitespace and comments in HTML.

Results appear as you type

Everything runs locally in your browser โ€” your input never leaves this page.

About the HTML Minifier

The HTML Minifier collapses redundant whitespace and removes comments from your markup to cut down its file size. Leaner HTML loads faster and uses less bandwidth, which is especially helpful for large pages and email templates. Minification happens in your browser, so your markup stays on your machine.

How to use

  1. Paste your HTML into the input area.
  2. Run the minifier to collapse whitespace and strip comments.
  3. Copy the minified HTML into your project or deployment.

Frequently asked questions

What does HTML minification remove?
It removes comments and collapses unnecessary whitespace and line breaks, producing compact markup that renders identically.
Could minifying break my page?
It targets insignificant whitespace and comments, so well-formed HTML keeps rendering the same after minification.
Does my HTML leave my computer?
No. The markup is minified entirely in your browser, so nothing is uploaded.

Related Developer tools