CSS Minifier

Compress CSS by removing comments and extra spaces.

CSS Minifier produces a smaller stylesheet for transfer or embedding. It strips comments and unnecessary whitespace.

Input
Output

When to use CSS Minifier

  • Embedding critical CSS in experiments
  • Reducing snippet size for sharing
  • Comparing readable vs compact CSS

Example

/* comment */
body {
  margin: 0;
}

Benefits

  • Free to use—no account required
  • Runs in your browser
  • Instant results with no software install
  • Basic processing does not upload your content to a server
  • Minification does not rewrite selectors or merge identical rules.

Not the same as

Need readable CSS again? Beautify or format the source file—not the only minified copy.

Related tools