Format Less stylesheets with Prettier. Handles variables, mixins, nesting, @import, and all Less-specific directives. Configurable indent. 100% browser-based.
The Less Formatter is a Prettier-powered, browser-based tool that instantly reformats Less stylesheets into clean, consistently indented output. Using Prettier's postcss parser with the Less dialect, it handles the full Less language — `@variables`, parameterised mixins, nesting with ampersand (`&`) references, operations and functions, `@import`, `@plugin`, and all Less-specific directives. Configurable indentation and an 80-column print width produce output consistent with modern Less project conventions. All formatting runs in a Web Worker; your stylesheets never leave the browser.
QWill this compile Less to CSS?
No — this tool formats Less source for readability. To compile Less to CSS, use the Less Compiler tool.
QWhich Less features are supported?
All core Less features — @variables, parameterised mixins, nesting, operations, built-in functions, @import, namespaces, and mixin guards.
QIs my Less sent to a server?
No. All formatting runs locally in a Web Worker inside your browser. Your stylesheets never leave your device.