The CSS minifier parses the stylesheet into an AST, runs compression passes, and then generates compact CSS again. This lets it remove redundant structure more carefully than simple whitespace stripping.
Use it when you need a compact stylesheet for a demo, a static snippet, or a quick before-and-after size check. Keep the readable source in your repository and treat the minified output as a deployable artifact.
Common questions and answers about this topic.
The CSSO engine removes unnecessary whitespace and ordinary comments, shortens values, and merges compatible rules. It retains /*! comments only at the top level of the stylesheet; comments inside rules or @media blocks are removed. To preserve a license notice, place it in a top-level /*! ... */ comment and check the output.
The engine aims to preserve styling, but it does more than remove formatting: it can rewrite values and restructure rules. Keep the original CSS and check the result in your target browsers before deployment, especially when using newer CSS syntax.
There is no fixed reduction percentage. It depends on whitespace, comments, repeated rules, and whether the input is already minified. Already compact CSS may shrink very little. Compare your own input and output rather than assuming a typical saving.
No. This CSS minifier uses server-side processing for its compression engine, so avoid pasting private or sensitive stylesheets.