CSS to LESS Converter

This online tool will convert your CSS code into LESS code. LESS which stands for 'Leaner Style Sheets' is a CSS Preprocessors. Simply enter your CSS code into the textbox below and click on convert, your LESS code will then be available for download or you can copy to the clipboard.

If you need to compile LESS to CSS, please use our LESS to CSS Compiler

CSS Code

About CSS to LESS Converter

A CSS to Less converter is a program that helps convert CSS code into Less code. CSS is the standard language used for styling web pages, while Less is a preprocessor scripting language that extends CSS with features like variables, nesting, and functions to make CSS code more maintainable and reusable.

The main purpose of a CSS to Less converter is to make it easier for developers to transition from using traditional CSS to Less. By converting CSS to Less, developers can take advantage of Less features to write more efficient and organized stylesheets. This can help streamline the development process and improve code maintainability.

Here's a simplified example of CSS and its equivalent in Less:


.button {
  background-color: #3498db;
  color: #fff;
  padding: 10px 20px;


@color_1: #fff;
@background_color_1: #3498db;

.button {
	background-color: @background_color_1;
	color: @color_1;
	padding: 10px 20px;

In this example, the Less code uses a variable (@background_color_1) to store the background color, which can be reused throughout the stylesheet. This can make it easier to make global style changes by updating the variable value.