Skip to content
MewixMewix

CSS minifier

Paste a stylesheet snippet, choose minify or beautify, and copy the result — good for quick size checks before deploy.

Updated by the Mewix team

What minify removes

Minify mode strips block comments (/* … */), collapses whitespace runs, and tightens spaces around {}:;,. It is a text transform, not a full CSS AST optimizer — duplicate rules or dead selectors stay unless you remove them manually.

How much size you might save

Savings depend on how verbose the source is: commented theme files shrink more than already-compact utility CSS. Compare character counts before and after in your editor; this tool does not report byte percentages automatically.

Questions

Will minify break modern CSS?

Unclosed braces or comments inside strings can confuse the regex passes. Validate in a browser after minifying unfamiliar input.

Does beautify match Prettier output?

Beautify only inserts breaks after braces and semicolons. It is a readability aid, not a formatter with consistent indentation rules across nested at-rules.