My All ToolsEnglish

All tools / Developer tools

HTML minifier

Compress HTML by removing comments and whitespace between tags.

Open the tool

How to use

  1. Paste your HTML.
  2. Press Minify.
  3. Copy the compressed output.

Why My All Tools?

Common questions

pre and script?

Content inside pre, textarea, script and style is preserved as-is.

Comments?

HTML comments are removed except conditional ones.

More free tools

Free to try with a daily guest limit. No account needed, and your data stays in your browser.