Merging keeps the cascade
Rules are merged in a way designed to keep the same cascade. If a page looks different, turn restructuring off and minify again.
Minify CSS by removing whitespace and comments, shortening colors and values, and merging duplicate rules. Free and in your browser.
Paste the CSS from a file or a style tag, including media queries and custom properties.
Leave rule merging on for the smallest file, or turn it off to only remove spaces, comments and redundant values.
Copy the result or download it as styles.min.css, then link that file from your pages.
Rules are merged in a way designed to keep the same cascade. If a page looks different, turn restructuring off and minify again.
Comments that start with /*! are kept, so copyright notices required by a license remain in the file.
The minifier does not report invalid CSS, so validate your stylesheet and test the minified file in the browsers you support.
Compile Sass or Less to regular CSS first, then paste that CSS here. This tool compresses CSS and does not compile preprocessor syntax. Keep your editable source separately from the minified output.
It depends on how much whitespace, comments and repetition the file has. The tool shows the size before and after and the percentage saved.
No. Compile Sass or Less to CSS first, then paste the compiled CSS here.
Yes. The minifier does not add new syntax: it shortens what is already there, for example #ffffff to #fff and 0px to 0.