Stylus to SCSS Converter
Paste Stylus source and get SCSS — braces and semicolons are added, variables become `$variables`, and bare references are prefixed automatically.
Last updated: May 25, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Stylus to SCSS Converter?
Stylus and SCSS are both CSS preprocessors with similar capabilities — variables, nested selectors, parent references (`&`), and mixins — but the two flavours look quite different on the page. Stylus prefers indentation, treats colons and semicolons as optional, and uses bare identifiers (`name = value`, `color primary`). SCSS uses curly braces, mandatory semicolons, and the `$` sigil for every variable.
This converter normalises Stylus into SCSS-style source: it detects whether your input uses indentation or braces, adds the syntactic punctuation SCSS requires, rewrites `name = value` declarations as `$name: value;`, and prefixes bare identifier references with `$` when they match a declared variable. Stylus mixin definitions and calls are translated to SCSS `@mixin`/`@include`.
It is well suited for migrating a Stylus codebase to Sass, integrating Stylus snippets into an existing SCSS design system, or simply comparing how the two syntaxes line up. Advanced Stylus features (transparent mixins, control flow, built-in colour and math helpers) are not evaluated and may need manual rework.
How to Use Stylus to SCSS Converter
Paste Stylus code into the input panel.
The SCSS output appears instantly on the right.
Inspect the rewritten variables, mixin calls, and nested rules.
Copy the SCSS or download it as a .scss file.
Rework anything that relied on Stylus-only built-ins.
Common Use Cases
- Migrate a Stylus stylesheet into an SCSS project.
- Integrate a Stylus component into a Sass-based design system.
- Compare equivalent variable and mixin syntax between Stylus and SCSS.
- Generate an SCSS baseline from a Stylus prototype for further refinement.
- Convert documentation snippets from Stylus to SCSS for an article.
Example Input and Output
Convert Stylus assignments and a mixin into SCSS equivalents.
primary = #0f766e
flex-center()
display flex
.hero
flex-center()
color primary$primary: #0f766e;
@mixin flex-center {
display: flex;
}
.hero {
@include flex-center();
color: $primary;
}Privacy
All conversion happens locally in your browser. No Stylus or SCSS is transmitted to any server.
Stylus-only features
Transparent mixins, @block-style assignments, and Stylus built-in functions are not translated. Review and rework these manually after conversion.

