LESS Formatter

Client-sideNo sign-upFree

Reformat LESS source for readability - indentation and brace placement - while keeping it as LESS.

Quick facts

Category
Formatters & Beautifiers
Best for
Cleaning up a messy or minified LESS file before editing it
Input
✓ Formatted
Formatted output
@primary: #333; .box { color: @primary; .child { margin: 10px; } }
Reformats LESS source for readability (indentation, brace placement) while keeping it as LESS -@variables, mixins, and nested rules pass through as-is since this only adjusts whitespace, it never interprets or compiles LESS syntax. To compile LESS down to plain CSS instead, use the LESS Compiler.
In-content slot
Was this tool helpful?
On this page

Overview

Cleans up the indentation and brace placement of LESS source without compiling it - @variables, mixins, and nested rules all pass through untouched as literal text, because this only adjusts whitespace rather than interpreting LESS syntax. That’s a different job from compiling: if you want @variables resolved and nested rules flattened into plain CSS, use the LESS Compiler instead. This tool is for the more common day-to-day case of just wanting a messy or minified LESS file to read clearly again before you edit it. Runs entirely client-side; nothing you paste is ever uploaded.

Best for: Cleaning up a messy or minified LESS file before editing it

How to use this tool

  1. Paste LESS. Minified or inconsistently indented LESS source works fine.
  2. Reformatted instantly. Braces, selectors, and declarations are reformatted for readability - LESS syntax stays intact.
  3. Copy the result. Copy the cleaned-up LESS, still valid LESS, not compiled CSS.

Frequently asked questions

No - that’s compilation, not formatting. This tool only touches whitespace and brace placement; @variables, mixin calls, and nested rules are left exactly as written. For variable resolution and flattening, use the LESS Compiler.

The output is reformatted LESS, not CSS - it can still contain @variables and nested rules that aren’t valid plain CSS on their own. If you need browser-ready CSS, compile it first with the LESS Compiler.

Explore more free tools

Formatters, converters, validators, and generators - all free and running entirely in your browser.

Browse more tools