Free CSS Minifier Online
Paste or upload your CSS and compress it instantly in your browser. Removes comments, collapses whitespace, and optimises selectors — no server required.
About the CSS Minifier
CSS minification strips everything your browser doesn't need to apply styles correctly: comments, whitespace between rules, newlines, and spaces around operators. Smaller stylesheets download faster and reduce the time to first render for your visitors.
The minifier handles all CSS features including media queries, custom properties (CSS variables), keyframe animations, and pseudo-selectors. Output is valid CSS that behaves identically to the source.
Everything runs in your browser — your CSS is never sent to any server.
CSS Minifier FAQ
What does CSS minification remove?
CSS minification removes comments, unnecessary whitespace, newlines, and trailing semicolons. It also collapses shorthand properties and removes redundant spaces around selectors, colons, and brackets.
How much can CSS minification save?
Typical savings are 20–50% depending on how your CSS is written. Stylesheets with many comments, consistent indentation, and verbose property values see the biggest reductions.
Does CSS minification affect browser compatibility?
No. Minification only removes characters that have no effect on CSS parsing. All selectors, property values, and at-rules remain unchanged. The minified stylesheet behaves identically to the original.