LESS Beautifier

Format LESS stylesheets with variables, mixins and nesting. Free, private and instant: everything runs in your browser.

LESS
Formatted LESS
Press Run to see the result

What does the LESS Beautifier do?

A LESS beautifier reformats LESS code, preserving @variables, mixins, guards and nested rules while applying clean indentation and one declaration per line. It is ideal for maintaining older Bootstrap themes and legacy stylesheets.

How to use the LESS Beautifier

  1. 1

    Paste your less

    Paste or type less into the input box, open a file from your device, or click Sample to load an example.

  2. 2

    Adjust the options

    Set indent to match what you need.

  3. 3

    Copy or download the result

    Review the formatted less on the right, then copy it to the clipboard or download it as a .less file.

LESS Beautifier example

Input
@brand:#4dd9c0;.rounded(@r:8px){border-radius:@r}.panel{.rounded(12px);color:@brand;&-title{font-size:18px}}
Output
@brand: #4dd9c0;
.rounded(@r:8px) {
  border-radius: @r;
}
.panel {
  .rounded(12px);
  color: @brand;
  &-title {
    font-size: 18px;
  }
}

When to use it

  • •Maintaining Bootstrap 3 or older LESS themes
  • •Cleaning up legacy stylesheets
  • •Reviewing LESS changes

Why use this less beautifier

  • 100% free, no signup or login
  • Runs locally: your data never leaves the browser
  • Instant results with clear error messages
  • Works on desktop, tablet and mobile
  • Copy to clipboard or download in one click
  • No watermarks and no usage limits

Frequently asked questions

Is the LESS Beautifier free?+

Yes. The LESS Beautifier is 100% free with no signup, no login, no usage limits and no watermark. It works on desktop and mobile browsers.

Is my data uploaded when I use the LESS Beautifier?+

No. The LESS Beautifier runs entirely in your browser with JavaScript. Nothing you paste or upload is sent to our servers, logged or stored.

Last updated by the Imaginex AI team.