FormatSwap › Formats › WebP

The WebP format

A transition format whose transition has finished. What's left is a pile of images people can't easily use.

Full name
WebP
Appeared
2010
File extensions
.webp
Our verdict
Discontinue it See why

History

Why it was invented

Google's case for WebP was a measurement. In 2010, while building tools to speed up websites, its engineers kept noticing that “a single component of web pages is consistently responsible for the majority of the latency on pages across the web: images”.[1] Images made up about 65% of the bytes on a typical web page, and the common image formats had been set more than a decade earlier.[1]

Some Google engineers set out to compress lossy images like JPEG further without losing quality. They used the VP8 video codec, which Google had open-sourced in May 2010, applying its techniques for coding single video frames to still pictures. They put the result in a light RIFF container that adds only 20 bytes per image.[1] Google later summed up the aim as “creating smaller, better looking images that can help make the web faster”.[2]

What it was first used for

Google released a developer preview on 30 September 2010. In its own test, re-encoding about 1,000,000 images from the web, mostly JPEGs, gave an average 39% reduction in file size without perceptibly compromising quality.[1] No browser could show it yet, so Google was writing a WebKit patch for Chrome. The first version was lossy only, and transparency was promised for a later update.[1]

What happened next

In October 2011, Google added animation, ICC colour profiles, XMP metadata and tiling. A month later came a lossless mode and transparency, and lossless WebP files were on average 45% smaller than PNGs found on the web.[3] WebP was now pitched against PNG and GIF as well as JPEG.[3][4]

Apple took a decade to follow. Safari gained WebP support with version 14, in 2020.[5] The supporting library reached version 1.0 in April 2018, and WebP was formally specified as RFC 9649 in November 2024.[4]

Pros and cons

Pros

  • Clearly smaller than JPEG and PNG for web images.
  • Handles both lossy and lossless, plus transparency and animation.
  • Supported in all current browsers.
  • Royalty-free, and fast to encode.

Cons

  • Lossy WebP is limited to 8-bit colour with 4:2:0 chroma, which can blur reds and fine colour edges.
  • Beaten on compression by AVIF.
  • Annoyingly often unsupported outside browsers, particularly when you save an image from the web and open it elsewhere.

Use cases

  • Existing websites that already serve it.
  • Animated stickers and thumbnails.

Pitfalls

  • “I saved a picture from a website and my editor won't open it” is usually about WebP. Convert a copy to JPG or PNG.
  • Converting a JPEG to lossy WebP is a second generation of lossy compression, so quality will be lower than it looks at first.
  • Size savings depend on the image, and it's not always smaller than a well-made JPEG at high quality.

Should WebP be discontinued?

Discontinue it

Discontinue it for new work. WebP's one reason to exist is small files, and that reason has gone: if size is what you care about, AVIF makes smaller files and works in every modern browser. If reach is what you care about, JPEG opens everywhere and WebP doesn't. It's squeezed from both sides, and neither side has WebP's quirks.

The strongest counterargument is speed: WebP encodes much faster than AVIF. That matters for sites converting images on the fly, but encoders keep improving, and speed is a poor reason to spread another format that normal people can't open. Sites already serving it needn't panic, but no new workflow should begin with it.

This verdict is FormatSwap's opinion. “Discontinue” means stop creating new files, not stop reading old ones. How we decide.

WebP files in FormatSwap

Media Converter opens and creates WebP files.

Download Media Converter
Version 1.1 · Windows 10 & 11 (64-bit) · 64 MB · No installation needed

Related formats

Sources

Numbers in the history above link to these pages. They cover the history section only; the pros, cons and verdict are our own assessment.

  1. WebP, a new image format for the Web (30 September 2010), Chromium Blog
  2. WebP: Frequently Asked Questions, Google
  3. Lossless and Transparency Encoding in WebP (17 November 2011), Chromium Blog
  4. WebP, Wikipedia
  5. New WebKit Features in Safari 14 (16 November 2020), WebKit