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 it works

Minify removes comments, collapses whitespace, drops the spaces around braces, semicolons, commas and colons inside rules, and removes the last semicolon before each closing brace. It does not rename anything, merge rules or shorten colours and values. Quoted strings and url() contents are left exactly as written.

body {
  /* comment */
  color : red ;
}

body{color:red}

The summary shows the size before and after in bytes and the percentage saved. Beautify does the opposite, putting one declaration per line with a two-space indent. All comments are removed when minifying, including licence comments that start with /*!, so add those back if you are required to keep them.

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