CSS Formatter & Minifier
Format CSS with consistent indentation, or minify it by stripping whitespace and comments.
Frequently asked questions
How much does minifying CSS actually save?+
It depends on how much whitespace and how many comments the source has, typically 10-30% for hand-written CSS. Most of the real savings on a production site come from Gzip/Brotli compression at the server level, which minification complements but doesn't replace.
Does formatting change what the CSS actually does?+
No, only whitespace and indentation change. Selectors, property values, and rule order stay exactly the same.
Does this handle nested CSS (like Sass or native CSS nesting)?+
It formats standard flat CSS correctly. Nested syntax from a preprocessor should be compiled to plain CSS first, this isn't a Sass/Less compiler.