Skip to content

Less to CSS Compiler

Compile Less to CSS in your browser: variables, mixins, guards, operations and colour functions, readable or minified.

Runs in your browserLess → CSS
Loading tool…

Example

Input
@c: #333;
.nav {
  ul { margin: 0; }
  a { color: @c; &:hover { color: red; } }
}
Output
.nav ul {
  margin: 0;
}
.nav a {
  color: #333;
}
.nav a:hover {
  color: red;
}

How to use the Less to CSS Compiler

  1. Paste Less code and press Convert. Choose "Compressed" for minified output.

Privacy and limitations

  • Your data is processed on your device and is not uploaded to any server.
  • @import of other .less files can't be resolved because there is no file system; paste the imported code inline. Plain CSS imports are passed through.
  • Inline JavaScript (backtick expressions) and @plugin are disabled for security.
  • Division needs parentheses, e.g. (10px / 2), as in the Less 4 default math mode.

Browse all css tools →