ImageBinary
image/webp
WebP
Reference for image/webp, Google's modern image format offering superior compression for both lossy and lossless images.
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: .webp
HTTP Content-Type Header
HTTP Header
Content-Type: image/webpAssociated File Extensions
.webp
Quick Facts
| MIME Type | image/webp |
| Category | Image |
| Type | Binary |
| Extensions | .webp |
Common Usage
WebP provides smaller file sizes than JPEG and PNG while maintaining equivalent quality. It supports lossy and lossless compression, transparency, and animation.
Adopted by all major browsers, WebP is increasingly the default choice for web images to improve page load performance.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.webp" type="image/webp">
<!-- Or for script/media elements -->
<script type="image/webp" src="file.webp"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('image/webp');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'image/webp' });nginx
# nginx.conf — add to types block or use default
types {
image/webp webp;
}
# Or set for a specific location
location /api/ {
default_type image/webp;
}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.