Sass to CSS
Compile the indented Sass syntax straight to CSS, in your browser. Variables resolved, nesting flattened.
What Sass to CSS does
The indented file is read first and then compiled, so there is one compiler and not two: indentation becomes rules, the rules are flattened, the variables are resolved, and the arithmetic is evaluated. The refusals are the same, which matters — @include, @extend and lighten() are refused here for exactly the reason they are refused on SCSS to CSS: they need the project, not the file.
How to use it
Sass to CSS: paste the Sass into the box above, and press Run to get the CSS below.
Worked example
Input:
$gap: 8px
.tile
padding: $gap * 2
&:hover
background: #004a99
Output:
.tile {
padding: 16px;
}
.tile:hover {
background: #004a99;
}
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads Sass and returns CSS; reloading the page discards both.
The indented file is read first and then compiled, so there is one compiler and not two: indentation becomes rules, the rules are flattened, the variables are resolved, and the arithmetic is evaluated. The refusals are the same, which matters — `@include`, `@extend` and `lighten()` are refused here for exactly the reason they are refused on SCSS to CSS: they need the project, not the file.
Compile the indented Sass syntax straight to CSS, in your browser. Variables resolved, nesting flattened.
How to use it
Sass to CSS: paste the Sass into the box above, and press Run to get the CSS below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads Sass and returns CSS; reloading the page discards both.
What to Expect
Best for
- Converting Sass to CSS when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
$gap: 8px .tile padding: $gap * 2 &:hover background: #004a99
Sample output
.tile { padding: 16px; } .tile:hover { background: #004a99; }
Frequently asked questions
How do I use the sass to css?
Sass to CSS: paste the Sass into the box above, and press Run to get the CSS below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.