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.
Frequently Asked Questions
What is Stylus?
Stylus is a CSS preprocessor that offers a very flexible syntax — colons, semicolons, and braces are all optional. It supports variables, mixins, functions, loops, and conditionals. Its .styl files compile to CSS like LESS and SASS/SCSS.
Related Tools
SCSS to Stylus Converter
Convert SCSS code to Stylus indented syntax. Removes braces and semicolons, converts $variables to bare assignments, @mixin/@include to function syntax.
SCSS to LESS Converter
Convert SCSS code to LESS syntax. Maps $variables to @variables, @mixin/@include to .mixin() syntax, and @extend to &:extend().
SASS to SCSS Converter
Convert SASS indented syntax to SCSS brace syntax. Adds curly braces and semicolons, converts = and + shorthand to @mixin and @include.
SCSS to SASS Converter
Convert SCSS brace syntax to SASS indented syntax. Removes braces and semicolons, converts @mixin/@include to = and + shorthand.
LESS Beautifier
Format and beautify LESS stylesheets online. Fixes indentation, normalizes spacing around braces and properties, and handles nested rules and variables.
Stylus to LESS Converter
Convert Stylus code to LESS. Adds braces and semicolons, rewrites name = value assignments as @variables, and converts Stylus mixin syntax to LESS .mixin() form.

