Format, beautify, and minify CSS instantly. Supports SCSS-like syntax, removes comments, and shows compression savings.
The CSS Formatter uses the js-beautify CSS engine to convert compressed or hand-written stylesheets into clean, consistently spaced code β with each rule on its own line, proper brace alignment, and optional blank lines between rule sets for clarity. The configurable indent size and newline-between-rules toggle let you match any team style guide with a single click.
The minify mode strips all comments and unnecessary whitespace, producing the smallest possible stylesheet for production. Both modes show a real-time character count and percentage savings. No data leaves your browser, so your unreleased designs and proprietary styles stay confidential.
Yes. The built-in minifier strips both single-line and multi-line CSS comments (/* β¦ */) along with excess whitespace. This is useful for removing development notes or license headers that you don't want exposed in the production stylesheet.
It works well with SCSS-like syntax including nested selectors and variables. However, it does not compile SCSS to plain CSS β it only formats the text as-is. For full SCSS compilation you would need a preprocessor such as Sass CLI or a build tool like Vite.
Savings vary depending on how many comments and blank lines exist in the original file. For well-formatted stylesheets with comments, minification typically reduces file size by 20β40%. For already-compact code the savings are smaller. The stats row shows the exact character count reduction after every operation.