Dashboard 100% Local Execution

HTML & CSS Minifier

Strip comments and whitespace from HTML and CSS to shrink file size.

Loading tool…

About This Tool

Shrink HTML and CSS files by removing comments and collapsing unnecessary whitespace. The tool reports the exact character saving so you can judge whether it is worth shipping. JavaScript is deliberately not minified.

How to Use This Tool

  1. Choose HTML or CSS mode.
  2. Paste your markup or stylesheet.
  3. Press Minify and compare the size reduction.
  4. Copy the result and test it before deploying.

Frequently Asked Questions

Why is JavaScript not minified?

Safe JS minification requires a full parser. Regex-based minification can silently break code, so this tool leaves scripts untouched.

Does it change how my page renders?

Collapsing whitespace between tags can matter for inline elements. Check the output visually before shipping.

Is my code uploaded?

No. Everything runs in your browser; nothing is sent anywhere.