SCSS to CSS Compiler

Compile SCSS or indented Sass to CSS with Dart Sass: variables, nesting, mixins and functions, readable or minified.

Runs in your browser. Nothing is uploaded.

How to use the SCSS to CSS Compiler

  1. Paste SCSS into the left box, open a .scss file, or press Load example.
  2. Switch Input syntax to Sass if your file uses the indented syntax.
  3. Choose readable or minified CSS under Output.
  4. Copy or download the compiled CSS.

Compile Sass without installing Node

Sass adds variables, nesting, mixins, functions and loops to CSS, but browsers only understand plain CSS, so Sass has to be compiled first. Normally that means installing Node.js and the sass package or setting up a build tool. This page runs Dart Sass, the reference compiler, in your browser, so you can compile a stylesheet on any computer, check what a mixin produces or convert a snippet for a project that doesn’t use Sass.

What it supports

Everything in the Sass language works within a single file:

  • Variables, nesting and the parent selector &, including suffixes such as &--large.
  • Mixins with arguments, @include, @content and placeholder selectors with @extend.
  • Functions, @if, @each, @for and @while, maps and lists.
  • Built-in modules loaded with @use, for example sass:math for division and sass:color for colour adjustments.
  • Both SCSS (braces) and the indented Sass syntax.

Output

Readable gives normal, indented CSS. Minified removes all unnecessary whitespace, ready to upload. For extra optimisation, such as merging duplicate rules, pass the result through the CSS minifier.

Errors and warnings

If something is wrong, such as an undefined variable, a missing brace or a mixin that doesn’t exist, the message shows Sass’s error with its line and column, and the editor highlights it. Warnings, including deprecation notices for older features, are listed under the output while the CSS is still produced, so you can see what to modernise.

One file at a time

Because nothing is uploaded and there is no file system, imports of your own partials can’t be resolved. Paste the contents of partials such as _variables.scss at the top of the file instead.

Private

Your stylesheet is compiled on your device and never leaves the browser.

Frequently asked questions

Which Sass compiler does this use?

Dart Sass, the official Sass implementation, running in your browser. Its output matches the sass command-line tool and the sass package on npm.

Can I use @use and @import?

Built-in modules such as sass:math, sass:color and sass:map work. Imports of your own partials don't, because the page compiles one file at a time; paste the partial's contents into the file instead.

Why do I see deprecation warnings?

Sass warns about features that will be removed in a future version, such as global functions like darken() or / for division. The CSS is still produced; the warning tells you what to update.

What is the difference between SCSS and Sass?

They are two syntaxes for the same language. SCSS uses braces and semicolons like CSS; the indented Sass syntax uses indentation instead. Both compile to the same CSS.

Is my code uploaded?

No. Compilation runs in your browser and nothing is sent anywhere.

Tutorials