Skip to content
DevKOM

CSS Formatter

Turn compressed or messy CSS into readable rules, or minify a stylesheet for production. The minifier understands strings, comments and url() values, so it never breaks them.

Mode
Indentation
Formatted CSS

How to format CSS

  1. Paste your CSS into the input editor.
  2. Choose Format or Minify, and the indentation for formatting.
  3. Check the warnings for unbalanced braces or unterminated strings.
  4. Copy the result or download it as a .css file.

Frequently asked questions

Does the minifier rewrite colours or merge rules?

No. It only removes comments and whitespace that browsers ignore, so the output behaves exactly like the input. Tools that restructure rules can save more bytes but occasionally change behaviour.

Does it support SCSS or Less?

Formatting usually works for SCSS and Less because their syntax is close to CSS, but the tool is designed for plain CSS.

More in Code & Data.