CSS Minifier
WEBFree online CSS minifier that strips comments and whitespace to shrink stylesheets, or beautifies them, right in your browser.
What it does
The Carbide CSS Minifier compresses stylesheets to the smallest safe size by removing comments, collapsing whitespace, and tightening the spacing around selectors, braces, and declarations, while carefully preserving the contents of string values so your CSS keeps working exactly as written. When you want to go the other way, the same tool beautifies minified CSS back into clean, consistently indented rules that are easy to read and edit. It is free, runs completely in your browser, and is offline-friendly after the first load, so your code stays private and is never uploaded to a server. Paste a snippet or a whole stylesheet, choose Minify for a compact production file or Beautify for readable formatting, then copy the output or download it as a .css file. It is perfect for trimming bytes before deploy, cleaning up exported styles, or quickly inspecting a minified file.
How to use the CSS Minifier
- Paste or type your CSS into the editor
- Choose Minify to strip comments and whitespace
- Or choose Beautify for clean, indented rules
- Review the result with live syntax highlighting
- Copy the output or download it as a .css file
Frequently asked questions
- Is the CSS Minifier free?
- Yes, entirely. No sign-up, no watermarks, and no limit on how much CSS you minify or beautify.
- Does minifying change how my CSS behaves?
- No. It only removes comments and insignificant whitespace and tightens spacing around syntax, while preserving the contents of string values, so the styles render identically.
- Does my CSS get uploaded anywhere?
- No. All minifying and beautifying happens locally in your browser, so your stylesheet never leaves your device and the tool works offline once loaded.
- Can I un-minify CSS I already compressed?
- Yes. Paste the minified CSS and choose Beautify to restore clean indentation and one declaration per line for easy reading.