CSS Minifier & Beautifier
Minify or beautify CSS and see the size saved. Strings, url() and licence comments are kept.
The result appears here as you type.
CSS Minifier & Beautifier FAQ
How do I minify CSS online?
Paste the CSS, keep Minify selected and click Copy or Download .css. The size before and after and the percentage saved appear below the boxes.
Is it safe to minify CSS?
Yes, with this tool: it only removes comments and whitespace that CSS ignores, and keeps quoted text, url() values and meaningful spaces such as the one in .card :focus-visible. Always test the page after changing CSS.
What is the difference between minify and beautify?
Minify makes CSS as small as possible for websites to load faster. Beautify adds line breaks and indentation so people can read and edit it. Both keep the same rules.
How much smaller does minified CSS get?
Usually 15–30% for hand-written CSS with comments and indentation. Your server's gzip or Brotli compression shrinks it further.
Is my CSS uploaded?
No. Minifying and beautifying run in your browser, and nothing is saved.