Skip to content
AvailableRuns locally in your browser

HTML/CSS Minifier

Reduce HTML or CSS file size by safely stripping whitespace and comments, with a before/after size comparison.

Basic Minification
0 B

This performs conservative whitespace and comment removal, not full parser-based optimization — safe for production, but not the smallest possible output.

How it works
  • This is "Basic Minification": safe whitespace and comment removal, not a full parser-based optimizer — it never touches content inside strings, or inside <script>, <style>, <pre>, or <textarea>.
  • For CSS, spaces are only removed directly around { } and ; — spaces inside selectors and calc() expressions are preserved on purpose.
  • For maximum compression in production, pair this with build-time tooling (Webpack, Vite, a WordPress minification plugin) rather than relying on manual minification alone.
  • On mobile, switch between the Input and Output panels using the tabs above the editor.
Need real performance work?

Need your whole site optimized, not just one file?

I handle performance optimization, caching, and asset delivery as part of WordPress builds and audits.

Start a Project