Skip to content
Code Formatters

SCSS Formatter

Format SCSS with clean indents, nested rules and variables kept in place. Or minify it to plain compact code. Free online SCSS formatter.

Something not working? Report a problem

What is the SCSS Formatter?

SCSS adds variables, nesting and mixins to CSS. This formatter keeps all of that, and tidies the indents so nested rules are easy to follow.

Choose Minify for a compact version with comments removed. It is not compiled to CSS, so your variables and nesting stay as written.

How to use it

  1. Paste your SCSS in the left box.
  2. The clean version shows on the right.
  3. Copy it or save it as a file.

Why people like this tool

Prettier powered

The same formatter many teams use.

Fast and private

Runs in your browser, nothing is sent.

Shows the error

Tells you where the code is broken.

Your style

Choose indent size and line width.

How it works, in one picture

Infographic: how to use the SCSS Formatter in 3 easy steps: Add your text, Choose your options and Copy the result. You get: Prettier powered, Fast and private, Shows the error and Your style.

Frequently asked questions

How do I format SCSS?
Paste your SCSS in the left box. It shows clean, nested code on the right.
Does it compile SCSS to CSS?
No. It only formats the code. To compile, use Sass in your build tool.
Does minify remove // comments?
Yes. Line comments that start with // are removed in Minify mode.

You may also like