CSS Minifier

Strip comments and whitespace to shrink a stylesheet.

ABOUT THIS TOOL

What this tool does

Ship smaller stylesheets. This tool strips unnecessary whitespace and comments from your CSS, reducing file size without changing how the styles work — a simple step before publishing.

USE CASES

When to use it

  • You are preparing CSS for production and want a smaller file.
  • You want to reduce load time on a site with large stylesheets.
  • You are comparing how much minification saves.
  • You need a compact version of a CSS snippet to paste somewhere.
UNDERSTAND IT

How to understand this tool

INPUT
CSS/* Example */ .container { color: red; padding: 10px; }
OUTPUT
.container{color:red;padding:10px}

The output removes comments, indentation and redundant spaces while keeping the CSS valid. That makes it hard to edit later, so keep the readable source and minify a copy at build time. A missing semicolon is much harder to find once everything sits on one line.

What it will not do

  • It does not merge rules, remove unused selectors or autoprefix.
  • It cannot guarantee the same result as a full build tool on unusual syntax.
FAQ

Questions people ask

Will minification change my design?

It should not. If something breaks, it is usually due to unusual syntax or a missing semicolon.

How much does it save?

It depends on how much whitespace and commenting your CSS had — often a noticeable reduction.

GOOD TO KNOW

One thing worth knowing

This is a lightweight browser tool — for production-critical work, pair it with your normal linters and tests.