Developer

CSS FORMATTER

Format CSS stylesheets with clean rule indentation or compress CSS down to single-line minified code.

Input CSS Code

Formatted CSS Result

HOW TO USE CSS

01

Step 1

Paste CSS stylesheet rules into the input box.

02

Step 2

Click Format to expand CSS rules or Minify to compress bytes.

03

Step 3

Copy formatted CSS output.

FREQUENTLY ASKED QUESTIONS

Does minifying preserve CSS custom properties (variables)?

Yes, CSS variables like --primary-color are preserved during formatting and minification.