BF50 Black Friday · 50% off all plans
from $5/mo · Auto-applied ---:--:-- Claim 50% off →
Skip to content

Search Seonio

Type a keyword, domain, or paste a URL

Start free with $1 to see full results. Powered by Seonio
Web Development

WebP: The image format, its savings and its limits

WebP is an image format from Google that makes smaller files than JPEG and PNG at similar quality. Every major browser supports it today.

Monthly searches · webp
110.0k
Keyword research data
webp
WebP: The image format, its savings and its limits
Click the image to view it full size

Google announced WebP in 2010 as one image format that does what JPEG, PNG and GIF each do separately: lossy compression for photos, lossless compression for graphics, transparency and animation. The payoff is faster pages, because the files are smaller at about the same visual quality.

The format is documented by the IETF as RFC 9649 (2024), with the media type image/webp and the file extension .webp.

How much smaller WebP files are

Google publishes these measurements for WebP:

  • Lossy WebP files are 25–34% smaller than comparable JPEGs at the same quality score.
  • Lossless WebP files are 26% smaller than PNGs.
  • Transparency costs about 22% extra bytes in lossless mode. Lossy WebP with transparency is typically 3 times smaller than a PNG.
  • Animated WebP is smaller than GIF and APNG, and supports full color and smooth transparency, which GIF doesn't.

Your own savings depend on the images and settings. Test with a few typical images before converting everything.

How it works

Lossy WebP borrows from video compression. It splits the image into blocks, predicts each block from the pixels around it, and stores only the difference from the prediction. That's the method the VP8 video codec uses for key frames.

Lossless WebP rebuilds new pixels from parts of the image it has already seen, and falls back to a small local color palette when nothing matches.

Both kinds sit in a RIFF container, which can also hold metadata such as color profiles.

Browser support

All major browsers support WebP: Chrome, Edge, Firefox, Safari and Opera. Safari added it in version 14 on iOS 14 and macOS Big Sur. Older browsers, such as Internet Explorer, don't support it.

Google Search indexes WebP images like any other format. According to W3Techs, 23.0% of all websites used WebP as of October 23, 2026.

When to use WebP, and when not

Image Good choice
Photos Lossy WebP, or AVIF for even smaller files
Logos, icons, screenshots with sharp edges Lossless WebP, or SVG for logos and icons
Images with transparency WebP instead of PNG
Short animations Animated WebP instead of GIF, or a video file for longer clips
Print, archiving, editing masters Keep the original format; export WebP copies for the web

A few limits to know:

  • 8-bit color only. Lossy WebP stores color as 8-bit YUV 4:2:0, which keeps less color detail than the brightness detail. For higher bit depth, look at AVIF.
  • No progressive loading in the JPEG sense. WebP decodes incrementally instead.
  • Maximum size of 16,383 by 16,383 pixels.
  • AVIF usually compresses a little better, MDN notes, but has slightly less browser support and no progressive rendering. You can list AVIF first in a <picture> element, then WebP, then JPEG.

How to serve WebP with a fallback

The simplest safe way is the <picture> element. The browser uses the first format it supports and falls back to the <img>:

<picture>
  <source type="image/webp" srcset="sofa.webp">
  <img src="sofa.jpg" alt="Gray three-seat sofa with wooden legs" width="800" height="600">
</picture>

Keep the alt text, width and height on the <img>. See picture tag and responsive images.

Other options:

  • Content negotiation on the server or CDN. Browsers that support WebP say so in their Accept request header (image/webp), so the server can send WebP to them and JPEG to the rest from the same URL. If you do this, send Vary: Accept so caches don't mix the versions up.
  • Your CMS or image service. Many content management systems and image CDNs create and serve WebP automatically.
  • Command line. Google's free cwebp tool converts JPEG and PNG to WebP; dwebp converts back.

WebP and SEO

WebP doesn't rank pages by itself. Its value is speed. Images are often the heaviest part of a page, and the main image is often the element that decides Largest Contentful Paint, one of the Core Web Vitals. Smaller files load sooner, especially on mobile connections.

PageSpeed Insights and Lighthouse flag JPEG, PNG and BMP images that would be smaller in a modern format and estimate the savings, ignoring savings under 8 KiB. Since Lighthouse 13, this check is part of the "Improve image delivery" insight.

Format is one part of image compression. Sizing images to the space they fill and lazy loading images below the fold often save as much. See image SEO for the rest.

Keep image libraries updated

In September 2023 a serious security flaw, CVE-2023-4863, was found in libwebp, the reference WebP library used by browsers and many apps. Google rated it critical, and libwebp 1.3.2 fixed it. If your servers or apps process uploaded images, keep their image libraries up to date.

Seonio

Put it to work on your own site

Keyword research, traffic, backlinks and clustering in one place. Start with a free $1 to test, no card required.