LESS to Stylus Converter
Paste LESS code to get Stylus output — braces and semicolons removed, variables converted to Stylus assignment syntax.
Last updated: May 21, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is LESS to Stylus Converter?
LESS and Stylus are both CSS preprocessors. LESS uses CSS-like brace syntax and `@variable` notation. Stylus uses a flexible indented syntax (braces and semicolons are optional) and uses bare `variable = value` assignments instead of `@` prefix variables.
Converting LESS to Stylus involves: removing curly braces and semicolons, converting `@var: value` to `var = value`, removing `@` from variable references in values, and converting LESS parametric mixin calls (`.mixin()`) to bare function calls (`mixin()`).
How to Use LESS to Stylus Converter
Paste LESS code into the input panel (or click Load Sample)
The Stylus output appears instantly in the right panel
Copy or download the converted .styl file
Common Use Cases
- Developers migrating from LESS to Stylus.
- Teams evaluating Stylus as a replacement for LESS who want to see equivalent syntax.
Example Input and Output
Convert LESS variables and mixin to Stylus equivalents.
@primary: #0f766e;
.flex-center() {
display: flex;
}primary = #0f766e
flex-center()
display flexPrivacy
All conversion happens in your browser. No code is sent to any server.

