Remove comments and spaces from CSS to make the file smaller.
Comments are deleted, runs of whitespace become single spaces, spaces around braces, semicolons, commas and after colons are removed, and the last semicolon in each rule is dropped. That's typically a 15 to 30% saving on a hand-written stylesheet, before gzip.
Two things are deliberately left alone. Text inside quotes, such as content: "a b" or font names, is never changed. And a space before a colon is kept, because in a selector like div :first-child it means 'any descendant', which is different from div:first-child.
This is a whitespace-and-comment minifier. It doesn't merge rules, shorten colours or remove unused CSS, which build tools like cssnano or Lightning CSS can do. Keep your original, readable file for editing and only publish the minified copy.
It shouldn't. Strings are untouched and selector spacing that changes meaning is kept. As always, test the page after changing a stylesheet.
No, all comments are removed. Add a license comment back by hand if your project requires one.
Plain CSS only. Compile SCSS or LESS to CSS first.
No. It's minified in your browser.
OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.