Skip to content
OnlineToolStudio

LESS Editor

runs in your browserno sign-upfree

Edit LESS stylesheets in a full-page editor with syntax checking and one-click Prettier formatting.

Checking…

About this tool

This LESS editor gives you one large editor with syntax highlighting, folding and search for LESS stylesheets. It checks the syntax as you type — variables, mixins, guards and nesting — marks the first error, and formats the code with Prettier. Everything runs in your browser.

How to use

  1. Paste or type LESS into the editor, or open a .less file from your computer.
  2. Watch the status line under the editor: it shows the first syntax error with its line and column, and marks it in the code.
  3. Press Format to tidy the code or Minify to make it as small as possible.
  4. Use Full screen for more space, and fold or unfold blocks to focus on one part.
  5. Copy the code or download it as a .less file.

FAQ

How is this different from the LESS Formatter?

The LESS Formatter shows your input and the result side by side. The LESS Editor has a single, larger editor, and Format changes the code in place, so it is better for reading and editing one file.

Why is there no Minify button?

LESS has to be compiled to CSS before a browser can use it, and minifying is done on that CSS. Compile it with your build tool, then use the CSS Minifier.

Can I undo Format or Minify?

Yes. Press Ctrl + Z (⌘ + Z on Mac) in the editor to undo it, just like a normal edit.

Are there keyboard shortcuts?

Ctrl/⌘ + Enter formats the code, Ctrl/⌘ + F opens search inside the editor, and Esc leaves full screen.

Is my code sent to a server?

No. Editing, checking, formatting and minifying all run in your browser. Your last code is only saved in this browser so it is still there when you come back. Press Clear to remove it.

Related tools

All tools