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
- Paste SCSS into the left box, open a .scss file, or press Load example.
- Switch Input syntax to Sass if your file uses the indented syntax.
- Choose readable or minified CSS under Output.
- 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,@contentand placeholder selectors with@extend. - Functions,
@if,@each,@forand@while, maps and lists. - Built-in modules loaded with
@use, for examplesass:mathfor division andsass:colorfor 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
How to compile SCSS to CSS without installing Node
Compile an SCSS file with variables, a mixin, a map and a loop to plain CSS in your browser, and fix the warnings Sass shows.