WebP is a raster image format from Google that can replace JPEG, PNG and GIF on most websites. This guide covers what the format can do, what it costs in compatibility, and what to expect when you convert with ImageWand. For a side-by-side decision guide covering JPEG, PNG, WebP and AVIF, see which image format to use.
What WebP supports
According to MDN and Google's WebP documentation:
- Lossy compression based on the VP8 video codec. Good for photos.
- Lossless compression, a separate mode that keeps every pixel. Good for graphics and screenshots.
- Transparency (alpha). Google says lossless WebP supports transparency "at a cost of just 22% additional bytes."
- Animation. "Lossy, lossless and transparency are all supported in animated WebP images," and a single animation can mix lossy and lossless frames (WebP FAQ).
- Maximum size of 16383 x 16383 pixels (WebP FAQ). Very large panoramas need splitting or another format.
Google's headline compression figures: lossless WebP is "26% smaller in size compared to PNGs", and lossy WebP is "25-34% smaller than comparable JPEG images at equivalent SSIM quality index." These are Google's own averages over its test sets; your results depend on the image.
Browser support
MDN lists WebP support in all current versions of Chrome, Edge, Firefox, Opera and Safari. The caveat is older Macs: "You need Safari 14 or later as well as macOS Big Sur (11) or a more recent version." Google's FAQ lists animated WebP support from Chrome 32, Edge 18, Firefox 65, Opera 19 and Safari 14.
Outside web browsers, support varies by app and service. Before sending WebP files to an email list, print shop or marketplace, check that the recipient's software accepts them; JPEG and PNG remain the safer choices for files people download and reuse.
A reproducible WebP size test
These numbers were produced on 23 November 2026 with sharp 0.34.5 (libvips 8.17.3, libwebp 1.6.0). They use the synthetic test images described in the format guide, not real photos, and they are not output from ImageWand. PSNR compares each decoded file with the original pixels; higher means closer, and it is only a rough guide to what you will see.
Photo-like image (1600 x 1000)
| Encoding (sharp) | Bytes | PSNR |
|---|---|---|
| PNG, lossless | 1,950,426 | identical |
| WebP, lossless | 1,191,190 | identical |
| JPEG, quality 80 | 96,370 | 40.7 dB |
| WebP, quality 50 | 21,636 | 39.2 dB |
| WebP, quality 75 | 30,626 | 40.1 dB |
| WebP, quality 80 | 38,940 | 40.6 dB |
| WebP, quality 90 | 108,940 | 41.6 dB |
| WebP, quality 95 | 257,966 | 43.4 dB |
Graphic with transparency (1200 x 750)
| Encoding (sharp) | Bytes | PSNR |
|---|---|---|
| PNG, lossless | 15,909 | identical |
| WebP, lossless | 4,732 | identical |
| WebP, lossy quality 80 (alpha kept) | 7,990 | 38.2 dB |
| WebP, lossy quality 95 (alpha kept) | 12,178 | 38.6 dB |
Simple animation (480 x 270, 24 frames, a ball moving across a flat background)
| Encoding (sharp) | Bytes |
|---|---|
| GIF | 18,332 |
| Animated WebP, lossless | 17,248 |
| Animated WebP, lossy quality 80 | 18,896 |
Download the animated test file: animation-test.webp.
The settings were webp({ quality: q }), webp({ lossless: true }) and, for the animation, webp({ lossless: true, delay: 80, loop: 0 }) on a 24-frame joined input.

What the test shows:
- Quality has a steep cost at the top end. Going from quality 80 to 95 made the photo-like file about 6.6 times larger. At quality 95, WebP was larger than the JPEG at quality 80.
- Lossless WebP is a good PNG replacement for graphics. It was about 30% of the PNG size with identical pixels.
- Lossy WebP is not automatically smaller for flat graphics. Here lossless WebP beat lossy WebP, because flat colour compresses well without loss.
- Animated WebP is not always much smaller than GIF. For this very simple, flat-colour animation, the difference was small. Gains are more likely with photographic or many-colour animations, which GIF's 256-colour palette handles poorly.
For a larger test with four kinds of image (photo-like, logo, transparent and text), PSNR and SSIM scores, magnified crops and a script that regenerates every number, see our JPEG, WebP, AVIF and PNG compression benchmark.
When WebP is a good choice
- Photos and graphics on your own website, where you control the HTML.
- Replacing large PNG graphics with lossless WebP.
- Replacing GIF animations, after checking the result size.
When to keep another format
- Files other people will download and edit: JPEG or PNG open everywhere.
- Master copies you will edit again: a lossless format such as PNG, so you do not stack lossy re-encodes.
- Very large images over 16383 pixels on a side.
- Print workflows: ask the printer which formats they accept.
Converting to WebP with ImageWand
Use JPG to WebP, PNG to WebP or the general converter. The converter processes your image on your device; the image is not uploaded to ImageWand. What to expect:
- The output is static WebP, in browsers that can encode WebP (Chrome, Edge and Firefox). Safari has not offered WebP encoding to web pages, so there the converter stops with an error instead.
- Check the quality options shown in the tool before you export; the settings available there decide how small the file gets.
- Transparency is kept in WebP output.
- Check the format, dimensions and file size the tool reports.
At a high quality setting, the WebP you get can be larger than a well-compressed JPEG you started with, as the test above illustrates. Compare the before and after sizes the tool shows; if the WebP is bigger, keep the original.
To convert many files, the free batch tool can convert up to 100 images to JPG, PNG or WebP in your browser and download them as one ZIP. Check the output sizes there too.
Converting from WebP
- WebP to JPG: for apps or services that do not accept WebP. JPEG has no transparency, so choose JPG output when you want transparent areas on a white background, then check the edges.
- WebP to PNG: keeps transparency and stores the decoded pixels losslessly. It cannot recover detail lost in a lossy WebP, and the file will usually be larger.
Using cwebp for more control
Google's cwebp command-line encoder gives you direct control over quality, lossless mode and metadata (cwebp docs):
cwebp -q 80 input.jpg -o output.webp # lossy, quality 0-100 (default 75)
cwebp -lossless input.png -o output.webp # lossless
cwebp -q 80 -metadata all input.jpg -o output.webp # keep EXIF/ICC/XMP
By default cwebp copies no metadata (-metadata defaults to none), which is usually what you want for web images but not for archives.
Serving WebP with a fallback
<picture>
<source srcset="product.webp" type="image/webp">
<img src="product.jpg" alt="Blue ceramic mug on a white table" width="800" height="600">
</picture>
Browsers that support WebP use the source; others load the JPEG. Keeping width and height on the img lets the browser reserve space before the image arrives.
Troubleshooting
- The WebP is bigger than the original. The source was already well compressed, or the quality setting is high. Keep the original, or encode with a lower quality in cwebp.
- An animation became a still image. The ImageWand converter exports one frame only; use an encoder that supports animated WebP.
- Grain or texture looks smeared. Lossy WebP at low quality smooths fine detail first, as in the crop above. Use a higher quality or lossless mode.
- A server sends WebP with the wrong type. Configure the
image/webpMIME type.
Related reading
- JPG vs PNG vs WebP vs AVIF: which format to choose, with AVIF decoding vs encoding explained.
- Compress images without losing quality: lossless vs lossy compression, with a reproducible benchmark.
- Optimize images for SEO: responsive markup with measured byte sizes.
- Compression benchmark: bytes, PSNR and SSIM for four kinds of image.


