SCSS to CSS
Compile SCSS to plain CSS in the browser: variables resolved, nesting flattened, arithmetic evaluated.
What SCSS to CSS does
Three mechanical steps, and nothing else. Variables are resolved, following references and refusing a cycle by name, so $gap: 8px reaches every use. Nesting is flattened: & is replaced by the parent, a bare child becomes a descendant, a selector list multiplies out, and a @media inside a rule is hoisted into a wrapper that still names the rule. Arithmetic on numbers is evaluated — $gap * 2 is 16px, which is the answer, not 8px * 2. What needs the whole project is refused by name rather than printed as text that looks like CSS and is not: mixins, @extend, control flow, functions such as lighten(), and #{…} interpolation.
How to use it
SCSS to CSS: paste the SCSS into the box above, and press Run to get the CSS below.
Worked example
Input:
$brand: #0066cc;
$gap: 8px;
.card {
color: $brand;
padding: $gap * 2;
&:hover {
color: #004a99;
}
.title {
font-weight: 700;
}
@media (min-width: 40rem) {
padding: $gap;
}
}
Output:
.card {
color: #0066cc;
padding: 16px;
}
.card:hover {
color: #004a99;
}
.card .title {
font-weight: 700;
}
@media (min-width: 40rem) {
.card {
padding: 8px;
}
}
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 SCSS and returns CSS; reloading the page discards both.
Three mechanical steps, and nothing else. Variables are resolved, following references and refusing a cycle by name, so `$gap: 8px` reaches every use. Nesting is flattened: `&` is replaced by the parent, a bare child becomes a descendant, a selector list multiplies out, and a `@media` inside a rule is hoisted into a wrapper that still names the rule. Arithmetic on numbers is evaluated — `$gap * 2` is `16px`, which is the answer, not `8px * 2`. What needs the whole project is refused by name rather than printed as text that looks like CSS and is not: mixins, `@extend`, control flow, functions such as `lighten()`, and `#{…}` interpolation.
Compile SCSS to plain CSS in the browser: variables resolved, nesting flattened, arithmetic evaluated.
How to use it
SCSS to CSS: paste the SCSS 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 SCSS and returns CSS; reloading the page discards both.
What to Expect
Best for
- Converting SCSS 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
$brand: #0066cc; $gap: 8px; .card { color: $brand; padding: $gap * 2; &:hover { color: #004a99; } .title { font-weight: 700; } @media (min-width: 40rem) { padding: $gap; } }
Sample output
.card { color: #0066cc; padding: 16px; } .card:hover { color: #004a99; } .card .title { font-weight: 700; } @media (min-width: 40rem) { .card { padding: 8px; } }
Frequently asked questions
How do I use the scss to css?
SCSS to CSS: paste the SCSS 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.