Skip to content
HB HitBidder.com
Developer Tools

CSS Minifier

Compress stylesheets by removing comments, redundant whitespace and the final semicolon.

Free No signup Runs in your browser
Tool workspace

CSS Minifier

Ready to use

Minify CSS

Remove comments and redundant whitespace while preserving strings and calc().

0 characters

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 - inside calc(), 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

It is conservative. Strings, url() values, calc() spacing and vendor prefixes are preserved. It removes comments, redundant whitespace, spaces around structural punctuation and the final semicolon in a block.

No. Removing rules requires knowing the markup and runtime state; the tool only compacts syntax. Use coverage tooling and manual review to remove unused selectors.

Spaces around + and - inside calc() are preserved because they are required by CSS. Media query syntax is compacted but otherwise unchanged.

Comments starting with /*! are preserved when the license-comment option is enabled. Turn it off for the smallest output.

No. The tool does not change color formats, shorthand values, prefixes or casing; it only removes unnecessary whitespace and comments.

No. Minification runs entirely in your browser. The CSS is not sent to HitBidder or stored.
Beyond the toolbox

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.