LESS Beautifier
Paste minified or messy LESS code and get it back formatted with consistent indentation and spacing.
Last updated: May 21, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is LESS Beautifier?
LESS is a CSS preprocessor that extends CSS with variables (`@var`), nested rules, mixins, and functions. Minified or auto-generated LESS can be hard to read — this tool reformats it with consistent indentation, one property per line, and proper spacing around braces.
Since LESS is a superset of CSS, the formatter handles standard CSS properties alongside LESS-specific features including nested selectors, `&` parent references, and `@variable` declarations.
How to Use LESS Beautifier
Paste LESS code into the input area or click "Load Sample"
Choose indent size (2 or 4 spaces)
Optionally place opening braces on a new line
Copy the formatted output
Common Use Cases
- Developers formatting auto-generated or minified LESS from build tools.
- Teams enforcing consistent LESS formatting across a codebase.
- Front-end engineers cleaning up LESS pasted from Stack Overflow or documentation.
- Developers reformatting LESS before committing to version control.
Example Input and Output
Minified LESS with nested rules is reformatted with proper indentation.
.card{@bg:#fff;background:@bg;.title{font-size:1.25rem;color:#333;}}.card {
@bg: #fff;
background: @bg;
.title {
font-size: 1.25rem;
color: #333;
}
}Privacy
All formatting runs in your browser. No code is sent to any server.

