CSS Minifier & Beautifier

LOCAL · IN-BROWSER

Minify or beautify CSS code. See byte savings and copy results in one click.

Advertisement728 × 90
CSS0 chars · 0 B
Output
Advertisement728 × 90

About CSS Minifier & Beautifier

Compress CSS by stripping whitespace, comments, and unnecessary characters to reduce file size, or beautify minified CSS into a readable format with consistent indentation. Shows the size reduction (bytes and percentage) after minification. All processing happens client-side — your stylesheets never leave your browser.

All processing happens entirely in your browser using modern web APIs. Nothing is uploaded to our servers — your data stays local and private. Free to use forever.

Common use cases

  • Minifying CSS before deploying to production to reduce page load time
  • Beautifying minified CSS from third-party libraries to read and debug
  • Removing CSS comments before code review or open-sourcing
  • Checking the byte savings from CSS minification
  • Formatting inconsistently indented CSS for consistency

How it works

Minification strips: line comments (// ...), block comments (/* ... */), leading and trailing whitespace on each line, unnecessary spaces around colons, semicolons, braces, and selector operators. Beautification uses a state machine parser that adds newlines after { } ; and indents nested rules. No external CSS parser — pure regex and character-level processing.