Category: Image

image/webp

image/webp is Google's modern web image format providing both lossy and lossless compression with alpha transparency. WebP files are typically 25–34% smaller than comparable JPEGs and PNGs.

MIME / CONTENT-TYPE

image/webp

ASSOCIATED EXTENSIONS

.webp

PRIMARY CATEGORY

Image

HTTP Headers & Web Server Configurations

Standard HTTP Response Header
Content-Type: image/webp

Send this exact header in HTTP responses to instruct browsers how to decode and render the payload.

Node.js / Express / Web API
<picture> <source srcset="photo.webp" type="image/webp"> <img src="photo.jpg" alt="Optimized Photo"> </picture>
NGINX Configuration (mime.types)
types { image/webp webp; }
Apache (.htaccess / httpd.conf)
AddType image/webp .webp

Security Advisory & Hardening

Ensure your web server caches WebP aggressively (`Cache-Control: public, max-age=31536000, immutable`).

Frequently Asked Questions

image/webp Questions & Answers

Common questions regarding MIME types, Content-Type headers, and web server configurations.

The standard HTTP response header is: "Content-Type: image/webp".