CSS Formatter & Minifier

Format and minify CSS, with SCSS and Less support

Runs in your browserUtility01Formatters & Validators

What is CSS Formatter & Minifier?

A CSS formatter rewrites minified or inconsistently styled sheets into a readable one-declaration-per-line form, while minify mode strips comments and redundant whitespace. SCSS and Less syntax are supported, and all processing happens locally in your browser.

How to use CSS Formatter & Minifier

  1. 1Paste CSS, SCSS, or Less code.
  2. 2Choose format or minify; formatting lets you set the indent width.
  3. 3After minifying, the footer reports how much smaller the output is.

Frequently asked questions

How does this differ from the minifier in my build tool?+

This tool only performs safe whitespace and comment removal. It does not merge properties, substitute shorthand, or reorder selectors. Build-time minifiers such as cssnano and lightningcss apply far more aggressive optimizations that produce smaller output but need the full stylesheet context to stay correct.

Why should I verify minified CSS one more time?+

Any minifier can run into syntax where whitespace matters, such as string values inside custom properties. Rendering the page once in a real browser before you ship is the cheapest verification available.

Related tools

All tools