- What is a LESS formatter?
- A LESS formatter takes LESS code that has messy spacing and rewrites it with one declaration per line and consistent indentation, keeping nested rules, variables, and mixins clear. It does not compile the LESS to CSS, it only cleans up how the source is laid out.
- How do I format LESS?
- Paste your LESS into the input box, pick your indentation, then click Format. The clean version appears below. Click the copy button to copy it, or download it as a .less file.
- Does this compile LESS to CSS?
- No. This tool formats the LESS source so it is easy to read. It does not run the LESS compiler, so variables, nesting, and mixins are kept as written. Use it to clean up your LESS, then compile it with your normal build.
- Does formatting change how my LESS compiles?
- No. Formatting only adds or removes whitespace and reindents the code. The selectors, variables, nesting, and mixins stay the same, so it compiles to exactly the same CSS as before.
- Is this a LESS beautifier?
- Yes. Format and beautify mean the same thing here: taking messy LESS and laying it out cleanly with proper indentation. Some people call it a LESS beautifier, prettifier, or pretty printer.
- Is my LESS kept private?
- Yes. All formatting runs in your browser. Your LESS is never uploaded to a server or saved anywhere, so you can safely paste in code from a private project. Once the page has loaded you can even use it offline.