LESS to CSS screenshot

LESS to CSS

Compile LESS to plain CSS: @variables resolved, nesting flattened, arithmetic evaluated. Mixins are refused, not guessed.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What LESS to CSS does

LESS shares almost all of its syntax with SCSS, so the compiler is the same one: @brand resolves to its value, nesting flattens, and @gap * 2 is evaluated to 16px. What differs is the refusal list, because LESS has constructs SCSS does not — a mixin definition or call, a guard (.a when (iscolor(@c))), and :extend(…) are each refused by name. Inlining a mixin means finding every call site in the project and a guard is a conditional, so emitting either as CSS ships something that does not mean what it says.

How to use it

LESS to CSS: paste the LESS into the box above, and press Run to get the CSS below.

Worked example

Input:

@brand: #0066cc;
@gap: 8px;

.pill {
  background: @brand;
  padding: @gap * 2;

  &:hover {
    background: #004a99;
  }
}

Output:

.pill {
  background: #0066cc;
  padding: 16px;
}

.pill:hover {
  background: #004a99;
}

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads LESS and returns CSS; reloading the page discards both.

LESS shares almost all of its syntax with SCSS, so the compiler is the same one: `@brand` resolves to its value, nesting flattens, and `@gap * 2` is evaluated to `16px`. What differs is the refusal list, because LESS has constructs SCSS does not — a mixin definition or call, a guard (`.a when (iscolor(@c))`), and `:extend(…)` are each refused by name. Inlining a mixin means finding every call site in the project and a guard is a conditional, so emitting either as CSS ships something that does not mean what it says.

Compile LESS to plain CSS: @variables resolved, nesting flattened, arithmetic evaluated. Mixins are refused, not guessed.

How to use it

LESS to CSS: paste the LESS into the box above, and press Run to get the CSS below.

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads LESS and returns CSS; reloading the page discards both.

What to Expect

Best for

  • Converting LESS to CSS when the data is already on screen.

What this tool keeps

  • Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.

Sample input

@brand: #0066cc; @gap: 8px; .pill { background: @brand; padding: @gap * 2; &:hover { background: #004a99; } }

Sample output

.pill { background: #0066cc; padding: 16px; } .pill:hover { background: #004a99; }

Frequently asked questions

How do I use the less to css?

LESS to CSS: paste the LESS into the box above, and press Run to get the CSS below.

Is my input uploaded?

No. The text is parsed on this page with JavaScript and is never posted to a server.

Is there a size limit?

Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.