SASS to Stylus Converter
Paste indented SASS and get Stylus output — variables, mixins, and includes are converted into Stylus conventions.
Last updated: May 25, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is SASS to Stylus Converter?
Stylus is a CSS preprocessor that, like SASS, prefers an indentation-based syntax with no curly braces or semicolons. Variables in Stylus are plain identifiers assigned with `=` (e.g. `primary = #0f766e`), and mixins are simple functions defined by their name and called the same way.
This converter takes indented SASS and produces Stylus by first normalising the SASS syntax (turning `=name` into `@mixin name` and `+name` into `@include name` via the SASS-to-SCSS pass) and then converting that SCSS to Stylus. The result drops the `$` sigil from variable references, replaces SCSS variable declarations with Stylus assignments, and removes braces and trailing semicolons.
It is useful when migrating a SASS project to Stylus, integrating an existing SASS snippet into a Stylus codebase, or comparing the syntax differences. Sass-only features (control flow, modules, `@function`) do not have direct Stylus equivalents and may need manual rework.
How to Use SASS to Stylus Converter
Paste indented SASS into the input panel.
The Stylus output appears instantly on the right.
Inspect the converted variables, mixins, and nested rules.
Copy the Stylus or download it as a .styl file.
Manually rework any Sass control-flow or module-loading features.
Common Use Cases
- Migrate a SASS partial to Stylus when adopting a new build pipeline.
- Integrate a SASS component into a Stylus-based design system.
- Compare how the same stylesheet looks in SASS vs. Stylus syntax.
- Convert a documentation snippet from SASS to Stylus for an article.
- Generate a Stylus baseline you can extend with Stylus-specific helpers.
Example Input and Output
Convert SASS variables and a mixin into Stylus syntax.
$primary: #0f766e
=flex-center
display: flex
.hero
+flex-center
color: $primaryprimary = #0f766e
flex-center()
display: flex
.hero
flex-center()
color: primaryPrivacy
All conversion happens locally in your browser. No SASS or Stylus is transmitted to any server.
Stylus syntax flexibility
Stylus accepts optional braces, colons, and semicolons. The converter outputs the canonical indented form. Reformat with a Stylus formatter if your project prefers another style.

