LESS to CSS Compiler

Compile LESS to CSS online with less.js: variables, mixins, guards, operations and colour functions. Readable or minified output.

About LESS to CSS Compiler

Paste LESS and get CSS instantly, compiled with less.js, the official LESS compiler. Variables, nesting, mixins, guards, operations and colour functions all work. Choose readable or minified CSS; errors show the line and column.

How to use it

  1. Paste your LESS (or start from the sample).
  2. Choose readable or minified CSS.
  3. Copy the CSS or download it.

Compilers and when to use them

LESS to CSS

LESS adds variables, mixins, guards and colour functions to CSS.

  • Compile Bootstrap 3 or Ant Design style LESS
  • Migrate a LESS codebase by seeing plain CSS output
  • Test colour functions like fade() and darken()

SCSS to CSS

SCSS is CSS with variables, nesting, mixins and functions, using braces and semicolons.

  • Turn a component's SCSS into CSS for a site without a build step
  • Check what a mixin or @each loop outputs
  • Learn Sass by comparing input and output
  • Minify styles for an email or embed

Sass to CSS

Indented Sass uses indentation instead of braces and semicolons.

  • Compile older .sass files from legacy projects
  • Convert Sass snippets from tutorials to CSS
  • Quickly test indented syntax

Questions

Which compiler does it use?

SCSS and Sass use Dart Sass, the official reference compiler. LESS uses less.js, the official LESS compiler. Both run in your browser.

Can I use @import or @use for other files?

No. Only the code you paste is compiled, so inline any partials first. Built-in modules like sass:math and sass:color work.

Is my data uploaded?

No. Everything runs in your browser; nothing you paste or open is sent to a server.

More Developer & Code tools

Home · All Tools · Blog