SCSS to CSS Compiler Online — Free Tool

SCSS to CSS Compiler

Paste SCSS and compile it to plain CSS in your browser with Dart Sass, the official Sass implementation. Nothing is uploaded, and nothing needs installing.

What gets compiled

Everything Dart Sass supports in a single file:

  • Variables — $brand: #3b82f6;
  • Nesting and the parent selector & — &:hover, &--active
  • Mixins with arguments and defaults — @mixin rounded($r: 6px)
  • Placeholder selectors and @extend
  • Control flow — @if, @each, @for, @while
  • Functions — @function, and the built-in modules via @use "sass:math", "sass:color" and so on

The output uses Sass's expanded style: one declaration per line, readable and ready to minify.

Example

$brand: #3b82f6;
@mixin rounded($r: 6px) { border-radius: $r; }
 
.card {
  padding: 1rem;
  @include rounded;
  &:hover { border-color: $brand; }
}

compiles to

.card {
  padding: 1rem;
  border-radius: 6px;
}
.card:hover {
  border-color: #3b82f6;
}

Errors point to the line

A mistake shows the Sass error with its line and column — for example Undefined variable with the offending $name highlighted — instead of producing broken CSS.

Limits of a single-file compiler

  • @use and @import of your own files cannot be resolved, because the compiler only sees the code you paste. Paste the partials' contents in order, or compile the project locally with npx sass.
  • Deprecated functions such as darken() still compile, but Dart Sass recommends the sass:color module (color.adjust($c, $lightness: -10%)). Newer Sass versions may also print colour results in rgb() notation.