CSS Formatter & Minifier

Beautify minified CSS into readable stylesheets or minify CSS to reduce file size. Shows size savings. Works offline in your browser.

Runs 100% in your browser. Nothing you paste is uploaded.

Input CSS

Output

—

About the CSS Formatter

Turn a compressed one-line stylesheet back into readable CSS with one rule per block and one declaration per line — or go the other way and minify your CSS, removing comments and whitespace. The size difference is shown so you can see the savings at a glance.

Features

  • Beautify with configurable indentation
  • Minify with size savings report
  • Handles media queries, nesting and custom properties
  • Optional blank line between rules

How to use it

  1. Paste CSS into the input pane.
  2. Choose Beautify or Minify.
  3. Copy or download the result.

Frequently asked questions

Does minifying change how my CSS works?

No. Only comments and insignificant whitespace are removed. Selectors, values and rule order stay the same.

Does it support SCSS or LESS?

Basic SCSS/LESS nesting is beautified correctly, but the tool does not compile them to CSS.

Esc