Home › Minifiers & Beautifiers › CSS Minifier

CSS Minifier

Shrink a stylesheet by removing comments and every space that CSS does not need, while protecting calc() expressions that require their spaces.

CSS Minifier

How to use the CSS Minifier

  1. Paste your CSS into the input box.
  2. Press Minify.
  3. Copy or download the compressed stylesheet.

About this tool

Most stylesheets carry 20–30% dead weight in comments and formatting whitespace. This minifier removes both, collapses what remains, and drops the redundant semicolon before each closing brace. Spaces inside calc() are preserved on purpose — CSS requires them around + and − there, and removing them silently breaks layouts.