Smaller stylesheets, cleaner source

CSS Minifier & Beautifier

Compress CSS for delivery or expand dense stylesheets for review while preserving quoted strings, data URLs and important license notices.

Safe URL handlingFormat & minifyPrivate in browser
0 characters
Processed output
Safe minification

Strings and URLs stay intact

Processing understands quoted strings and CSS block comments. It does not mistake the double slash in an HTTPS URL for a JavaScript-style comment.

Licensing

Preserve important notices

Keep the license option enabled to retain comments beginning with /*!, a common convention for copyright and package notices.

Production

Test after optimization

This tool performs conservative text minification. For advanced transformations, compatibility rewriting and source maps, use a build tool such as Lightning CSS or cssnano.

CSS minification checklist

  1. Paste CSS or open a local file up to 2 MB.
  2. Choose license-comment behavior and press Minify CSS.
  3. Review the size change and test the output against your site.
  4. Copy or download the optimized stylesheet.

CSS minifier FAQ

Will this change colors or numeric values?

No. This conservative minifier removes comments and unnecessary whitespace but does not rewrite color values, units or calculations.

Why preserve license comments?

Some software licenses require attribution to remain in distributed files. The /*! convention identifies comments intended to survive minification.

When is usage counted?

One usage is recorded when you press Minify CSS or Beautify CSS. Loading, copying and downloading do not add uses.