Skip to content
OnlineToolStudio

LESS Formatter

runs in your browserno sign-upfree

Format and beautify LESS stylesheets with nested rules, variables and mixins, using Prettier.

Formatting…

Input233 chars
Output

About this tool

This LESS formatter tidies LESS stylesheets: nested rules, @variables, mixins and guards are indented consistently with one declaration per line. Paste LESS, choose the indent and copy clean, readable code.

How to use

  1. Paste your LESS into the Input box. It is formatted as you type.
  2. Choose 2 spaces, 4 spaces or tabs, and a maximum line width.
  3. Copy the formatted LESS or download it as a .less file.

FAQ

Which formatter is used?

Prettier, the most widely used code formatter for web projects. It runs entirely in your browser, so your code is never uploaded.

Does it compile LESS to CSS?

No. It only formats your LESS; variables and mixins stay as they are.

What happens if my code has a syntax error?

The status line shows the problem with its line and column, and the error is marked in the editor. Fix it and the formatted result appears straight away.

Related tools

All tools