Developer

CSS Minifier & Beautifier

Minify CSS by stripping comments and collapsing whitespace — safely, without touching selectors or values — and see exactly how many bytes you saved. Or paste minified CSS and beautify it back into readable, indented rules. All processing is local to your browser.

Examples

Input · Minified
body {
  color: red;
}
Output
body{color:red}

How to use CSS Minifier & Beautifier

Paste CSS
Drop in a stylesheet — hand-written or from a build.
Pick a mode
Minify to compress for production, or Beautify to make minified CSS readable.
Copy the result
Copy or download the output; minifying shows original size, new size and % saved.

Why use this tool

Strips comments and collapses whitespace without changing behaviour
String-aware: content in quotes and url() is never touched
Shows original size, minified size and percentage saved
Beautify mode un-minifies CSS with clean 2-space indentation

Frequently asked questions

This minifier is deliberately conservative: it only removes comments and unneeded whitespace and never rewrites selectors, properties or values, so the output behaves identically.

Typically 15–40% depending on how heavily commented and formatted the source is. The exact saving is shown after minifying.

No — minification runs entirely in your browser. Your CSS never leaves your device.

Found a bug or have an idea?

ToolOrbit is actively developed — feedback directly shapes what gets built next.

Send feedback