Free online tool

CSS Formatter and Minifier

Turn compressed CSS into readable code, or shrink a stylesheet by removing comments and extra spaces. Everything runs in your browser. Your files and text are not uploaded to our servers.

Use the tool

Loading the tool...

How to use it

  1. Paste your CSS.
  2. Choose the indentation.
  3. Select Format or Minify.
  4. Copy the result and check the character counts.

Tips for best results

  • Media queries and other nested rules are indented correctly.
  • Keep a readable copy of your source; minified CSS is hard to edit.

Frequently asked questions

Does minifying change my styles?

It removes comments and whitespace only, so the styles behave the same.

Is it safe for data URLs?

Yes. Strings and parentheses are protected so semicolons inside them are not split.

← Back to Developer Tools