- What is an SCSS formatter?
- An SCSS formatter takes Sass code (the SCSS syntax) that has messy spacing and rewrites it with one declaration per line and consistent indentation, keeping nested rules, variables, and mixins clear. It does not compile the SCSS to CSS, it only cleans up how the source is laid out.
- How do I format SCSS?
- Paste your SCSS into the input box, pick your indentation, then click Format. The clean version appears below. Click the copy button to copy it, or download it as a .scss file.
- Does this compile SCSS to CSS?
- No. This tool formats the SCSS source so it is easy to read. It does not run the Sass compiler, so variables, nesting, and mixins are kept as written. Use it to clean up your Sass, then compile it with your normal build.
- Does formatting change how my SCSS compiles?
- No. Formatting only adds or removes whitespace and reindents the code. The selectors, variables, nesting, and mixins stay the same, so it compiles to exactly the same CSS as before.
- Is this a Sass beautifier?
- Yes. Format and beautify mean the same thing here: taking messy SCSS and laying it out cleanly with proper indentation. Some people call it a Sass or SCSS beautifier, prettifier, or pretty printer.
- Is my SCSS kept private?
- Yes. All formatting runs in your browser. Your SCSS is never uploaded to a server or saved anywhere, so you can safely paste in code from a private project. Once the page has loaded you can even use it offline.