Free Online Sass Playground
Write SCSS and HTML and see the compiled result live. Use variables, nesting, mixins, maps and loops, and view the CSS that Sass produces.
Auto-run is on, so the page updates as you type. The SCSS tab is compiled to CSS and applied to the HTML. Use the CSS output button in the preview to see the CSS. Scripts in the HTML do not run.
Preview
How to use
Write SCSS in the SCSS tab. Variables, nesting, mixins, maps, loops and @use all work.
Write the HTML to style in the HTML tab.
Watch the preview update as you type, or turn off Auto-run and press Run.
Press CSS output in the preview to read the compiled CSS. Compile errors and warnings show there too.
Copy the code, download a zip of your files or clear the editor with the icons above it.
Open the full screen editor for more room, and use the A buttons to resize the text.
Press Format to tidy the tab you are editing, or untick Wrap long lines to scroll sideways instead.
Why use this tool
Dart Sass
The current Sass compiler, with variables, nesting, mixins, functions, maps, loops, placeholders and the built-in modules such as sass:math and sass:color.
See the CSS
The CSS output button shows the CSS that your SCSS compiles to, so you can learn what each feature produces.
Clear errors
A mistake shows the compiler's message and the line, and warnings are listed with it.
Stops runaway loops
If compiling takes too long, for example a loop that never ends, it is stopped after a few seconds.
One-click formatting
Tidy the indentation and spacing of the tab you are editing with one click or Shift + Alt + F.
Comfortable editor
Resize the text, switch line wrapping on or off, or go full screen with the editor and preview side by side.
About this tool
Compile SCSS to CSS as you type and see it applied to your HTML. This online Sass playground runs Dart Sass, so you can try variables, nesting, mixins, functions, maps, loops and the built-in modules, learn Sass, or check how a piece of SCSS compiles. The CSS output button shows exactly what your SCSS turns into.
This is a Sass playground for trying SCSS without setting up a project. Write SCSS and your HTML, and the CSS is compiled as you type and applied to the preview. Press the CSS output button to see exactly what your SCSS turns into, which is the quickest way to understand nesting, mixins and loops. Errors are shown clearly, and runaway loops are stopped.
Use it to learn Sass, test a mixin or function, or check how a piece of SCSS compiles. To format finished CSS, use the CSS Formatter, and for plain HTML and CSS use the CSS Playground.
Frequently asked questions
No. The SCSS tab uses the SCSS syntax, which is plain CSS with Sass features added.
Only the built-in Sass modules such as sass:math, sass:color and sass:map. There are no other files to load, so put everything in the SCSS tab.
No. The preview blocks scripts so it can update as you type. To run JavaScript, use the JavaScript Playground.
Press the CSS output button at the bottom right of the preview. If there is an error it opens by itself and shows the message.
Yes, the first time. The Sass compiler is a large file that is loaded from a public CDN when you open the page, and your browser keeps it afterwards.
Yes. Press Format, or Shift + Alt + F while you are typing, to tidy the tab you are editing. If the code has a syntax error it is left unchanged and the problem is shown under the editor.
Yes. Untick Wrap long lines under the editor and it scrolls sideways instead. Your choice is remembered on this device.
Write your SCSS in the editor. It compiles as you type, and the CSS output button shows the resulting CSS.
Yes. It runs Dart Sass, so variables, nesting, mixins, functions, maps, loops and the built-in modules all work.