Paste CSS and get it minified, with the characters before and after. Nothing leaves your browser.
A stylesheet that reached production with its comments and indents costs bytes on every page view. This page opens in Minify mode, so the sample on screen is already shortened and the counts show the characters before, the characters after and the percent saved. The minifier removes comments and the white space around braces, semicolons, commas and parentheses, and it drops the last semicolon in each rule. It does this with plain character rules, not with a CSS parser, so it stays inside what is safe: quoted strings and url() values are copied exactly, the space in a descendant selector is kept, and the spaces around plus and minus inside calc() are kept. It does not shorten colours, remove unused rules or merge selectors, so the saving is usually 10 to 30 percent for hand-written CSS. Switch to Format at any time to read the result again.
The figure is shown as Saved. Hand-written CSS with comments and 2 space indents commonly drops by 10 to 30 percent. A file that is already minified saves 0%. Servers that gzip files shrink the result further, but that is separate from this page.
No. A value such as #FFFFFF or 0.50px is copied as written. Only comments and white space are removed, so the minified rule means exactly what the original did.
Yes, if it starts with /*! the comment is kept. All other comments are removed.