SASS to LESS Converter
Paste indented SASS and get LESS output — braces, variable sigils, and mixin syntax are mapped to LESS conventions.
Last updated: May 25, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is SASS to LESS Converter?
SASS and LESS are sibling CSS preprocessors with overlapping ideas but different syntax. SASS (indented) uses whitespace-based blocks, `$variables`, and the `=name`/`+name` shorthand for mixin definitions and calls. LESS uses curly braces and semicolons, `@variables`, and treats mixins as parametric class selectors written like `.name() { ... }` and called with `.name();`.
This converter performs the SASS-to-SCSS pass (adding braces and expanding shorthand) and then the SCSS-to-LESS pass (swapping variable sigils, rewriting mixin/include directives). Nested selectors and parent references (`&`) are valid LESS already and pass through unchanged.
It is well suited for projects standardising on LESS, integrating a few SASS components into a LESS codebase, or just comparing the syntax differences in one place. Sass-only features such as control flow, `@function`, modules, and colour helpers do not have LESS equivalents and may need manual rework after conversion.
How to Use SASS to LESS Converter
Paste indented SASS code into the input panel.
The LESS output appears instantly on the right.
Inspect the rewritten variables and mixins.
Copy the LESS or download it as a .less file.
Replace any unsupported Sass helpers manually (LESS has its own colour functions).
Common Use Cases
- Standardise on LESS in a project that has a few legacy SASS files.
- Integrate a SASS component into a LESS-based design system.
- Compare equivalent variable and mixin syntax between the two preprocessors.
- Migrate documentation snippets from SASS to LESS without installing toolchains.
- Pre-process a SASS partial into LESS for a build pipeline that only consumes LESS.
Example Input and Output
Convert SASS variables and a mixin to LESS equivalents.
$primary: #0f766e
=flex-center
display: flex
.hero
+flex-center
color: $primary@primary: #0f766e;
.flex-center() {
display: flex;
}
.hero {
.flex-center();
color: @primary;
}Privacy
All conversion happens locally in your browser. No SASS or LESS is transmitted to any server.
Sass-only features
Sass modules (@use/@forward), @function, @if/@for/@each control flow, and parameter defaults beyond simple defaults are not represented in LESS. Review and rework these manually after conversion.

