TextText-based
text/x-less
Less
Reference for text/x-less, the MIME type for Less CSS preprocessor stylesheet files.
MIME Type Detector
Drop a file to detect its MIME type — no upload, runs in your browser
📄
Drop any file here or click to choose
Expected extensions: .less
HTTP Content-Type Header
HTTP Header
Content-Type: text/x-less; charset=utf-8Associated File Extensions
.less
Quick Facts
| MIME Type | text/x-less |
| Category | Text |
| Type | Text-based (human-readable) |
| Extensions | .less |
Common Usage
Less is a CSS preprocessor that extends CSS with variables, mixins, functions, and nesting. It was originally used by Bootstrap and remains popular in enterprise projects.
Less can be compiled server-side or client-side in the browser.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.less" type="text/x-less">
<!-- Or for script/media elements -->
<script type="text/x-less" src="file.less"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('text/x-less');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'text/x-less' });nginx
# nginx.conf — add to types block or use default
types {
text/x-less less;
}
# Or set for a specific location
location /api/ {
default_type text/x-less;
}Related MIME Types
More Text MIME Types
Other text types in the Text family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.