JSON Converters Code Gen Formatters All tools Browse all tools built byAbhay Darji

SASS to LESS Converter

Convert SASS syntax to LESS — variables, nesting and structure translated in one step.

100% client side No upload No size limit Works offline
Input
Output
Ready
Drop a file to load it

About this tool

Translate SASS into LESS. SASS uses the original indented Sass syntax — no braces, no semicolons; LESS uses variables prefixed with `@`, plus mixins and nesting. The converter rewrites the syntax — variable sigils, braces and separators — while keeping your rules and nesting intact.

When you would use it

  • Migrating a project from SASS to LESS
  • Reusing a SASS snippet in a LESS codebase
  • Seeing how a SASS file looks in LESS syntax

Worked example

SASS
.card
  color: red
  .inner
    margin: 0
LESS
.card {
  color: red;
  .inner {
    margin: 0;
  }
}

Things worth knowing

  • This is a syntax translation, not a compiler. Variables, nesting, comments and structure carry across.
  • Mixins, functions and control directives (@if, @each, loops) are preserved verbatim rather than evaluated, because their semantics differ between dialects.
  • SASS is indentation-based, so the converter infers block structure from indentation before re-emitting it with braces.
Questions

Frequently asked

Will my mixins be converted?
Mixin and function bodies are preserved as written. Their syntax differs meaningfully between dialects, so translating them automatically would risk producing something that looks right but behaves differently. Review those by hand.
Is the output ready to compile?
For plain rules, variables and nesting, yes. If your source uses dialect-specific features, check those sections after converting.
Is my data uploaded anywhere?
No. Every tool on JSONWorks runs entirely in your browser using JavaScript. Your input is never sent to a server, never logged and never stored. The simplest proof is to disconnect from the internet — the tools keep working. The site does load Google Fonts and a Google Analytics page-view tag, so you will see those two requests in your network tab, but neither receives anything you type or paste.
Related

Tools that pair well with this