Skip to content
Create more with Morphed(opens in a new tab)

Paid AI

Guides

WebP Format Guide: Lossy, Lossless, Animation and Conversion

How WebP works, when lossy or lossless WebP makes sense, how animation and transparency behave, and what to expect from ImageWand's WebP converter, with a reproducible size test.

Author
ImageWand Team
Published
Updated
Reading time
8 min read
Sources checked
November 23, 2026

morphed.app · Paid AI tools

Put this guide to work in a fresh creative project.

Reading "WebP Format Guide: Lossy, Lossless, Animation and Conversion"?

Explore AI photo editing in Morphed (opens in a new tab)

Paid AI tools. Separate account and upload in Morphed.

A watercolor portrait surrounded by flowers

A portrait with a painterly feel

Soft watercolor, delicate flowers, a pale backdrop.

AI-created concept image. Results vary.

See an example

One photo, two file formats

A PNG-to-JPG example. The converter shows which outputs your browser supports.

Product photograph saved as PNG

PNG input

Photo with no transparent pixels

Same product photograph saved as JPG

JPG copy

640 x 360 px - 43.2 KB

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)BytesPSNR
PNG, lossless1,950,426identical
WebP, lossless1,191,190identical
JPEG, quality 8096,37040.7 dB
WebP, quality 5021,63639.2 dB
WebP, quality 7530,62640.1 dB
WebP, quality 8038,94040.6 dB
WebP, quality 90108,94041.6 dB
WebP, quality 95257,96643.4 dB

Graphic with transparency (1200 x 750)

Encoding (sharp)BytesPSNR
PNG, lossless15,909identical
WebP, lossless4,732identical
WebP, lossy quality 80 (alpha kept)7,99038.2 dB
WebP, lossy quality 95 (alpha kept)12,17838.6 dB

Simple animation (480 x 270, 24 frames, a ball moving across a flat background)

Encoding (sharp)Bytes
GIF18,332
Animated WebP, lossless17,248
Animated WebP, lossy quality 8018,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.

Two zoomed crops of the same hillside from the synthetic test image. The left crop keeps fine grain in the sky and texture in the grass; the right crop looks smoother and slightly blotchy.
The same 300 x 200 crop at 2x zoom. Left: WebP quality 95 (257,966 bytes for the full image). Right: WebP quality 50 (21,636 bytes). Lower quality removes grain and fine texture first.

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:

  1. 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.
  2. Check the quality options shown in the tool before you export; the settings available there decide how small the file gets.
  3. Transparency is kept in WebP output.
  4. 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/webp MIME type.

Sources

Platform rules change. These are the official pages this guide was checked against on . Always confirm the current rule before you submit.

  1. An image format for the Web (WebP) · Google for Developers · accessed
  2. WebP frequently asked questions · Google for Developers · accessed
  3. cwebp encoder documentation · Google for Developers · accessed
  4. Image file type and format guide · MDN Web Docs · accessed
  5. HTMLCanvasElement: toBlob() method · MDN Web Docs · accessed

Frequently asked questions

Is WebP lossy or lossless?

Both. WebP has a lossy mode based on VP8 and a separate lossless mode. Transparency and animation are supported too.

Does ImageWand create lossless or animated WebP files?

ImageWand's converter exports static WebP: animated input becomes a single still frame. Check the quality options shown in the tool for what it currently offers. For animated WebP, or for full control over lossless encoding, use cwebp or another dedicated encoder.

Is WebP always smaller than JPEG?

No. At high quality settings a WebP file can be larger than a JPEG of the same image. In our sharp test, WebP at quality 95 was about 2.7 times the size of JPEG at quality 80. Check the output size before replacing your files.

Written by

ImageWand Team · Editorial Team

The ImageWand editorial team writes practical guides on image editing, file formats, compression, and platform-specific image requirements. Each guide lists the official sources we checked and when, and says plainly which steps ImageWand can and cannot do. About ImageWand