CSS Minify

Shrink CSS to a smaller version.

Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.

CSS Minify

How to use this tool

  1. Enter your values in the fields above.
  2. Press Generate to see the result.
  3. Use Load sample to try the worked example, Copy result to copy it, or Clear to start again.

Worked example

The sample stylesheet (35 characters with line breaks) minifies to “body{color:red;margin:0}” (24 characters).

What this tool does not do / Limits

This is a simple minifier for everyday stylesheets. It does not rewrite values, merge rules, or guarantee identical rendering for exotic CSS tricks.

Frequently asked questions

Is the minified CSS safe to use?

For normal stylesheets, yes. Keep the original file as your source and use the minified copy for delivery.

Does it remove comments?

Yes. All block comments are removed, including notes you may want to keep in the source.

Related tools