ImageBinary
image/x-icon
ICO (Legacy)
Reference for image/x-icon, the legacy MIME type for ICO favicon files used in web browsers.
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: .ico
HTTP Content-Type Header
HTTP Header
Content-Type: image/x-iconAssociated File Extensions
.ico
Quick Facts
| MIME Type | image/x-icon |
| Category | Image |
| Type | Binary |
| Extensions | .ico |
Common Usage
ICO files contain one or more icons at different sizes and color depths. They are the traditional favicon format for websites, displayed in browser tabs, bookmarks, and address bars.
While PNG favicons are now supported, ICO remains the most compatible favicon format.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.ico" type="image/x-icon">
<!-- Or for script/media elements -->
<script type="image/x-icon" src="file.ico"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('image/x-icon');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'image/x-icon' });nginx
# nginx.conf — add to types block or use default
types {
image/x-icon ico;
}
# Or set for a specific location
location /api/ {
default_type image/x-icon;
}Related MIME Types
More Image MIME Types
Other image types in the Image family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.