Alpha DevTools logoAlpha DevTools
All ToolsBy Technology
Search tools…⌘K
ToolsFormattersLess Minifier

Less Minifier

Formatters

Minify Less source without compiling — strips comments and collapses whitespace while preserving variables, mixins, and nesting. Shows compression ratio. Browser-based.

Related Tools

JSON FormatterSQL FormatterHTML FormatterCSS Formatter

About Less Minifier

The Less Minifier performs source-level minification on Less stylesheets — stripping all single-line (`//`) and block (`/* */`) comments, collapsing all whitespace sequences to a single space, and removing spaces around syntax characters (`{}`, `:`, `;`, `,`, `()`, `>`, `~`, `+`). The output retains full Less syntax: `@variables`, parameterised mixins, nesting, `@import`, and all Less-specific constructs — making it ideal for reducing Less source files before distributing as part of a theme or design system. Compression ratio and exact byte savings are shown after each run.

Features

  • ✓Source-level minification — preserves Less syntax without compiling to CSS
  • ✓Strips single-line comments (// comment) and block comments (/* comment */)
  • ✓Collapses all consecutive whitespace to a single space
  • ✓Removes spaces around syntax characters: {, }, :, ;, ,, (, ), >, ~, +
  • ✓Preserves @variables, .mixins(), nesting, @import, and all Less-specific syntax
  • ✓Instantaneous — pure string transformation with no Web Worker needed
  • ✓Displays compression ratio and exact byte savings after minification
  • ✓Download minified output as a .less file with one click
  • ✓Language picker — instantly switch to SCSS, CSS, JavaScript, or other minifiers
  • ✓One-click clipboard copy of minified output
  • ✓Mobile-responsive layout with a dedicated Minify button
  • ✓100% client-side — your stylesheets never leave the browser

Common Use Cases

  • Reducing Less source file size before distributing as part of an npm package
  • Stripping development comments from Less component libraries before publishing
  • Compressing Bootstrap Less source files for embedding in documentation
  • Reducing Less patch size when committing style changes to long-lived branches
  • Quickly measuring how much whitespace and comments exist in a Less file

Frequently Asked Questions

QDoes this compile Less to CSS?

No — this tool minifies Less source while preserving Less syntax. The output is still Less. To compile Less to CSS, use the Less Compiler, then run the CSS through the CSS Minifier.

QAre Less variables and mixins preserved?

Yes — the minifier only removes comments and extra whitespace. All Less @variables, parameterised mixins, nesting, and @import statements are preserved.

QIs my Less sent to a server?

No. All minification is pure string processing in your browser. Nothing is transmitted to any server.

See Also

  • SCSS MinifierMinify SCSS source without compiling
  • CSS MinifierMinify compiled CSS with csso
  • Less CompilerCompile Less to CSS with Less.js
  • Less FormatterBeautify Less source with Prettier
189+ tools·and growing
100% private·nothing uploaded
Zero signup·open instantly
Always free·no paywalls ever
Alpha DevTools logoAlpha DevTools

Fast, free developer utilities for daily tasks. No signup required. Everything runs in your browser.

GitHubTwitter

Categories

  • Formatters
  • Converters
  • Security
  • Encoders & Decoders
  • UI Tools
  • Diagrams
  • Text & String
  • All categories

Technologies

  • JSON
  • YAML
  • CSV
  • XML
  • SQL
  • HTML
  • CSS
  • All technologies

Popular Tools

  • JSON Formatter
  • UUID Generator
  • JWT Decoder
  • Regex Tester
  • SQL Formatter
  • YAML Formatter

Platform

  • Home
  • All Tools
  • By Technology
  • Licenses
  • Contact

© 2026 Alpha DevTools — All rights reserved.

189+ tools · 14 categories · Free forever·Open-source licenses