DevKits

image/*

image/webp

File extensions: .webp

Modern raster format — smaller than JPEG and PNG with transparency.

What is image/webp?

image/webp is Google's modern replacement for JPEG and PNG. It offers ~30% smaller files at similar quality for photos, supports transparency and animation, and is now available in every major browser.

Typical usage

Any image on the modern web — photos, graphics, animated stickers.

Common gotchas

For maximum browser support, serve WebP alongside a JPEG/PNG fallback via <picture> element and Accept negotiation.

HTTP header example

Response header

Content-Type: image/webp

Reference

developers.google.com/speed/webp

Frequently asked questions

What is the image/webp MIME type?

image/webp is Google's modern replacement for JPEG and PNG. It offers ~30% smaller files at similar quality for photos, supports transparency and animation, and is now available in every major browser.

What file extension does image/webp use?

Files served as image/webp typically use the extension .webp. The most common is .webp.

How do I set the Content-Type for image/webp?

Send the HTTP response header Content-Type: image/webp. Any image on the modern web — photos, graphics, animated stickers.

Is image/webp an official MIME type?

Yes. image/webp is officially registered with IANA (developers.google.com/speed/webp), so standards-conformant clients recognize it.

What are common mistakes with image/webp?

For maximum browser support, serve WebP alongside a JPEG/PNG fallback via <picture> element and Accept negotiation.

Related MIME types

Handle image/webp with these tools