CSS Formatter & Minifier
Beautify stylesheets for reading — or minify them for shipping. Transformations happen in place.
How it works
Beautify re-emits every rule on its own line with consistent indentation and one declaration per line. Minify strips comments (optional), collapses all whitespace outside strings, and removes the final semicolon of each block. Values inside quoted strings are never touched. Every action applies to the current editor content, and Undo restores the previous state.
FAQ
Does it support media queries and nested rules?
Yes — braces are tracked recursively, so @media blocks and nested rules are indented correctly.
Is minified output safe?
Yes for standard CSS. As with any minifier, unusual constructs inside strings or custom properties are preserved verbatim.
Is my CSS uploaded?
No. Everything runs in your browser.
CSS Formatter & Minifier — FAQ
Is CSS Formatter & Minifier free to use?
Yes. It is completely free, with no signup, no installation and no usage limits.
Is my data uploaded to a server?
No. The tool runs entirely in your browser — the data you paste or upload never leaves your device.
Does it work on mobile devices?
Yes. It works in any modern desktop or mobile browser, with nothing to install.