SCSS Formatter
runs in your browserno sign-upfree
Format and beautify SCSS with nested rules, variables and mixins, using Prettier.
Formatting…
About this tool
This SCSS formatter cleans up Sass stylesheets written in SCSS syntax: nested rules, variables, mixins, @include, @use and functions are indented consistently, one declaration per line. Paste SCSS, choose the indent and copy the result.
How to use
- Paste your SCSS into the Input box. It is formatted as you type.
- Choose 2 spaces, 4 spaces or tabs, and a maximum line width.
- Copy the formatted SCSS or download it as a .scss file.
FAQ
Which formatter is used?
Prettier, the most widely used code formatter for web projects. It runs entirely in your browser, so your code is never uploaded.
Does it support the indented Sass syntax (.sass files)?
No. It formats SCSS — the syntax with braces and semicolons used in .scss files. The older indented .sass syntax is not supported.
Does it compile SCSS to CSS?
No. It only formats your SCSS; variables and mixins stay as they are.
What happens if my code has a syntax error?
The status line shows the problem with its line and column, and the error is marked in the editor. Fix it and the formatted result appears straight away.