SCSS to CSS Converter

Compiles SCSS to plain CSS without installing anything. Handles variables, nesting, mixins with @content, nested media queries and common color functions, and reports unsupported features clearly.

The output will appear here.
Advertisement Kelivo — a word game by icyabmod, on Google Play and the App Store

How SCSS to CSS Converter works

Compiles SCSS to plain CSS without installing anything. Handles variables, nesting, mixins with @content, nested media queries and common color functions, and reports unsupported features clearly.

Input SCSS
Output CSS
Works done 1,992

How to use it

This SCSS to CSS converter compiles SCSS into plain CSS that browsers understand, with nothing to install. It substitutes variables, unwraps nested rules, expands mixins (including @content), merges nested media queries and evaluates color functions such as darken and rgba. When it meets something it does not support, it stops with a clear error and a line number instead of emitting wrong CSS.

How to compile SCSS to CSS

  1. Paste your SCSS. If it uses variables or mixins defined in other files, paste those definitions at the top.
  2. Compile with "Run tool" or Ctrl + Enter.
  3. If an error appears, adjust the construct on the reported line using the notes below.
  4. Copy the CSS or download it as a text file.

A worked example

Take $brand: #8f39e8;, $gap: 8px;, a mixin flex-center($dir: row) that sets display: flex, flex-direction: $dir and align-items: center, and a .card block containing padding: $gap * 2, border: 1px solid lighten($brand, 30%), an &:hover with rgba($brand, .1), an &__title with darken($brand, 10%), an .icon child that includes flex-center(column), and a nested @media (min-width: 768px) that sets padding: $gap * 3. The output is:

SelectorCompiled declarations
.cardpadding: 16px; border: 1px solid #ddc2f8;
.card:hoverbackground: rgba(143, 57, 232, 0.1);
.card__titlecolor: #7519d5;
.card .icondisplay: flex; flex-direction: column; align-items: center;
.card inside @media (min-width: 768px)padding: 24px;

Supported features

  • Variables with scoping, !default and !global.
  • Nesting with &, including suffixes like &__title and &--large, plus #{} interpolation.
  • @mixin and @include with default and named arguments and @content blocks.
  • Nested @media, which is merged into combined queries such as screen and (min-width: 600px), plus @supports, @keyframes, @font-face and @at-root.
  • Nested properties (font: { size: 18px; }) and %placeholder selectors, which are dropped from the output because @extend is not available.
  • Arithmetic with +, - and * on compatible units, and the color functions darken, lighten, rgba, mix, transparentize and opacify.

Line comments (//) are removed; block comments are kept. Plain CSS imports using url() or a .css file pass through untouched.

Unsupported features and the errors you will see

Control flow (@if, @each, @for, @while), @function, @extend, the module system (@use, @forward) and imports of Sass partials stop compilation with a message such as @each is not supported by this converter (line 4). Silently skipping them would give you incomplete CSS that only fails later in the browser. Practical workarounds:

  • Unroll short loops by hand: three color modifiers become three rules.
  • Replace @extend with a mixin and @include.
  • For Undefined variable: $brand, paste the variables file above your code.
  • For @import of Sass files is not supported here, paste the imported file's contents instead.

Units and arithmetic

$gap * 2 gives 16px and 16px + 4px gives 20px. Mixed units are not combined: 10px + 2em is left as written, which browsers reject, so use calc() instead; calc(100% - #{$gap * 2}) compiles to calc(100% - 16px). Division with / is deliberately not evaluated, so shorthands like font: 16px/1.5 survive.

When this tool fits

It is ideal for checking what a snippet compiles to, fixing a stylesheet on a machine without a build setup, moving an old SCSS fragment into a CMS field that only accepts CSS, or learning Sass and seeing the result immediately. For production builds of larger projects, keep using the official Sass compiler in your toolchain.

Compilation runs in JavaScript in your browser; the code is not uploaded, and the page only increments an anonymous usage counter. To go the other way and nest plain CSS, use the CSS to SCSS converter; to tidy the result, the CSS beautifier is one click away. Other utilities live under developer tools.

Advertisement Clicker Alchemist — a mobile game by icyabmod, on Google Play and the App Store

Frequently asked questions

Browsers only understand CSS. Variables, nesting and mixins are SCSS features that a compiler must translate into plain CSS first. If you link a .scss file in a page, the browser ignores the rules it does not recognize and most of your styles never apply. This tool performs that compile step without any installation; in real projects the step is usually automated by the official Sass compiler in a build pipeline.

This converter does not support control flow and reports an error with the line number when it finds it. For short loops, unrolling by hand is usually quickest: write one rule per item instead of an @each over a list. Conditions can often be simplified to the branch you actually use. If your codebase relies heavily on loops, functions or modules, compile it with the official Sass compiler instead.

The SCSS you pasted uses a variable that is not defined anywhere in that text. Most projects keep colors and spacing in a separate partial that is pulled in with @import or @use, and this tool cannot read files from your project. Paste the contents of the variables file above your code and compile again. The line number in the message points to where the variable is used.

For the supported features the result is equivalent: the same selectors, values and media queries, though whitespace and line layout can differ. The converter prefers a clear error over an approximation, so if a snippet compiles without errors you can rely on the output. For production-critical builds, still run your project's own toolchain as the final step.