HTML Minifier

Paste HTML; script, style, pre and code blocks are preserved. Download the minified result.

Designed to process supported files locally in your browser.

How to use HTML Minifier

  1. Paste HTML.
  2. Minify.
  3. Copy or download.

How it works

Comments and inter-tag whitespace are removed; sensitive blocks are protected.

Privacy

Your files are processed in your browser and are not uploaded to ToolBoxy servers.

HTML Minifier FAQ

Will inline scripts break?

Contents of script/style/pre/code are left unchanged.

Is HTML uploaded?

No.

Are comments removed?

Yes, HTML comments are stripped.