Files stay on your device Use HTML Minifier ↓

HTML Minifier Online — Free & Private

Remove ordinary HTML comments while preserving raw-text blocks and text spacing. Free, private, and processed entirely in your browser — no upload, no account, no file ever leaves your device.

No sign-up required Files stay on your device Works offline once loaded

Remove ordinary HTML comments while preserving raw-text blocks and text spacing.

Inputs and example for HTML Minifier

HTML
<p>Hello <!-- note -->world</p>

Supported scope: Conservative comment removal only. Script, style, pre and textarea blocks, conditional comments, attributes and text spacing are preserved.

Remove ordinary HTML comments while preserving raw-text blocks and text spacing.

  1. Enter the labeled values or edit the example.
  2. Run the operation and inspect the result.
  3. Review and copy or download the result.

Privacy proof for HTML Minifier

This tool processes input in your browser. Open DevTools → Network while you run it to check the requests. Some tools need downloaded libraries on their first use.

Popular available tools for everyday tasks. Browse categories or search the full catalog.

Star any tool — it appears under Favorites on this device.

Available tools process your files and text on your device. Choose the operation you need, check its supported inputs and limits, and keep the original file until you have reviewed the result. PDF compression offers a lossless mode and optional image-based modes; image-based exports lose selectable text. Scanned PDFs need OCR for text extraction. OCR language models may need an initial download. Some catalog operations are still being completed and are clearly marked as unavailable. A current browser and sufficient device memory are required. Optional sign-in stores activity metadata, not your documents.

What inputs and assumptions does this operation use?

Conservative comment removal only. Script, style, pre and textarea blocks, conditional comments, attributes and text spacing are preserved.

Is my input uploaded?

No. The operation runs in this browser tab.

From our blog: How to Use HTML Minifier Online (Free & Private)