ToolHub

CSS Minifier

Minify CSS by removing comments and unnecessary whitespace while preserving string values. Everything runs in your browser.

Input
Output

FAQ

Is my CSS sent to a server?

No. All minification happens entirely in your browser and no code leaves your device.

What gets removed?

Comments (/* */), repeated whitespace and line breaks, spaces around punctuation, and trailing semicolons.

Are string values like content safe?

Yes. Whitespace inside quoted strings is preserved exactly.

Related tools