🌐 EN

🎨 LESS to CSS Compiler

Paste LESS code to compile it to CSS instantly using the official less.js engine. Supports variables (@var), nesting, mixins, operations and built-in functions.

πŸ”’ Compilation runs entirely in your browser β€” your code is never sent to a server. Even the less.js bundle is served from this site, not a CDN.

GUIDE

Learn more

01

1. What is LESS

LESS (Leaner Style Sheets) is a CSS preprocessor that adds programming features β€” variables, nesting, mixins and operations β€” on top of CSS. Browsers only understand plain CSS, so LESS must be compiled to CSS before deployment. This tool runs the official less.js engine in your browser to do that conversion instantly.

02

2. Key features

Manage colors and sizes in one place with variables (@brand: #4A90D9;), and mirror your markup structure by nesting selectors. Build reusable style blocks with mixins (.rounded(6px)), and use arithmetic like (@pad * 2) plus built-in color functions such as darken() and lighten().

03

3. Browser compilation and security

This tool compiles entirely in your browser and never uploads your input. For security, LESS's inline-JavaScript feature (backtick syntax) is disabled, so it runs safely without eval. For large projects, integrate LESS into your build pipeline (webpack, Vite, lessc, etc.).

Frequently asked questions

Is my LESS code sent to a server?
No. Compilation happens entirely in your browser's JavaScript and the code is never sent anywhere.
Can I use @import to pull in external files?
In the browser, external file access is restricted, so remote @import may fail. This tool is best for compiling single-file snippets.
Can I use LESS inline JavaScript (backticks)?
No. The JavaScript-evaluation feature is disabled for security. All standard features β€” variables, mixins, operations β€” work normally.
Does it also compile SCSS/Sass?
No, this tool is LESS-only. LESS and SCSS have different syntaxes.