CSS Formatter

CSS Formatter turns minified or inconsistently spaced stylesheets into readable CSS with consistent indentation, braces, selectors, declarations, media queries, and nested at-rules.

Choose tabs or spaces, place opening braces on the same line or their own line, split selector lists, and control spacing between rules. String values, custom properties, comments, functions, and data URLs are parsed without destructive regular-expression replacements.

Minify removes unnecessary CSS whitespace without restructuring rules. Optimize & Minify can also merge and reorganize compatible CSS for a smaller result. CSS formatting and compression run locally in your browser. Use SCSS Formatter for variables, nesting, mixins, functions, and other SCSS syntax.