CSS Minifier
Compress stylesheets by removing comments, redundant whitespace and the final semicolon.
CSS Minifier
Strings and calc() spacing are preserved. The tool compacts syntax; it does not remove unused rules or rewrite values.
CSS minification without rewriting rules
The HitBidder CSS Minifier removes comments and redundant whitespace, tightens punctuation and drops the final semicolon in a block. It does not rename selectors, merge rules or change values, so the stylesheet behaves the way you wrote it.
Minification runs entirely in your browser. Paste a stylesheet, review the compact output and download it; the CSS is never uploaded or stored.
What gets minified
- Comments are removed when the option is enabled.
- Repeated spaces, tabs and newlines collapse to a single space outside strings.
- Spaces around
{,},:,;and,are removed. - The final semicolon before a closing brace is dropped.
What is preserved
- Quoted strings and escape sequences, including
content: "…"values. - Spaces around
+and-insidecalc(), where they are required. - Selectors, declarations, vendor prefixes, media queries and custom property names.
/*!license comments when the option is enabled.
License comments
Many libraries ship with /*! … */ license headers. Keep the license option enabled when you
need to retain attribution, or disable it for the smallest possible file. Comments without the leading
exclamation mark are removed as normal comments.
Unused rules and deeper optimization
Syntax compaction is not the same as unused-code removal. Deciding that a selector is unused requires the HTML, runtime state and media conditions. Use browser coverage tools and manual review for that step, then minify the result here.
CSS minifier FAQ
Tools get you ready. Real traffic gets you results.
HitBidder is a free 1:1 traffic exchange. Give a click, get a click, and send real visitors to the pages you just finished optimising.