Stylus to SASS Converter
Paste Stylus source and get indented SASS — variables, mixins, and includes are rewritten in SASS conventions.
Last updated: May 25, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Stylus to SASS Converter?
Stylus and indented SASS both prefer whitespace-based blocks, so a Stylus stylesheet often looks superficially similar to a SASS one. The differences are in punctuation and sigils: SASS requires `$` before variable names and uses `=` and `+` shorthand for mixin definitions and includes. Stylus declares variables with `name = value`, uses bare identifiers for variable references, and treats mixin definitions and calls as plain identifiers followed by parentheses.
This converter first normalises Stylus into SCSS-style source so it can pick up variable assignments and mixin definitions reliably, then runs the SCSS-to-SASS pass, which strips braces and semicolons, restores indentation-based nesting, and replaces `@mixin`/`@include` with SASS `=name`/`+name` shorthand.
It is well suited for migrating a Stylus project to indented SASS, integrating Stylus snippets into an existing SASS codebase, or comparing how the two indentation-based syntaxes line up. Stylus-only features such as transparent mixins, control flow, and built-in helpers are not translated.
How to Use Stylus to SASS Converter
Paste Stylus code into the input panel.
The SASS output appears instantly on the right.
Inspect the rewritten variables, mixins, and nested rules.
Copy the SASS or download it as a .sass file.
Rework anything that relied on Stylus-only built-ins.
Common Use Cases
- Migrate a Stylus stylesheet into a SASS-based project.
- Integrate a Stylus component into a SASS design system.
- Compare equivalent variable and mixin syntax between Stylus and SASS.
- Generate a SASS baseline from a Stylus prototype before adding SASS helpers.
- Convert documentation snippets from Stylus to SASS for an article.
Example Input and Output
Convert Stylus assignments and a mixin into SASS shorthand.
primary = #0f766e
flex-center()
display flex
.hero
flex-center()
color primary$primary: #0f766e
=flex-center
display: flex
.hero
+flex-center()
color: $primaryPrivacy
All conversion happens locally in your browser. No Stylus or SASS is transmitted to any server.
Stylus-only features
Transparent mixins, control flow, and Stylus built-in functions are not translated. Review and rework these manually after conversion.

