Animated WebP vs GIF

Full colour instead of 256, proper transparency instead of jagged edges, and often a tenth of the file size. The only thing GIF still wins is email.

Head to head

Colours
GIF 256 per frame; WebP 16.7 million.
Transparency
GIF binary only; WebP full 8-bit alpha.
File size
Animated WebP is commonly 3–10× smaller for the same clip.
Compression
GIF has no motion prediction; WebP predicts between frames.
Browser support
Both universal among current browsers.
Email clients
GIF wins. WebP support in email is unreliable.
Better than both
MP4 or WebM video, for anything longer than a few seconds.

Comparing them

Why the size difference is so large

GIF stores each frame more or less independently, subject to a 256-colour palette. There is some optimisation — storing only the changed rectangle between frames — but nothing resembling motion prediction.

Animated WebP applies the same techniques its still images use: each frame is predicted from what came before, and only the difference is stored. Since consecutive frames of an animation are usually very similar, those differences are small.

The result is commonly a file three to ten times smaller, in full colour rather than 256. It is not a marginal improvement.

Quality, not just size

The colour limit is what makes old GIFs look the way they do. Any animation involving a photograph, a gradient or a video clip must be quantised to 256 colours per frame, producing banding and — once dithering is applied to hide it — a characteristic speckle that also inflates the file.

WebP has no such limit. And its full alpha channel means an animated overlay can have genuinely soft edges rather than the stair-stepped outline binary transparency forces.

Where GIF still wins

Email. This is the real one. Animated GIF is supported by email clients far more reliably than WebP, which many still do not render at all. For a newsletter, GIF remains the pragmatic choice.

Platforms that expect it. Some services accept GIF uploads specifically, whatever they convert them to afterwards.

Universality outside browsers. Desktop software, chat clients and older systems handle GIF without question.

Note that most "GIFs" on social platforms are already MP4 or WebM behind the scenes — the platforms converted them and kept the label.

And where video beats both

For anything beyond a few seconds, a muted autoplaying video is better than either. An MP4 or WebM clip is typically smaller again than animated WebP, decodes with hardware acceleration, and can be paused — which matters for accessibility, since indefinitely looping animation is a genuine problem for some people.

<video autoplay loop muted playsinline>
  <source src="clip.webm" type="video/webm">
  <source src="clip.mp4" type="video/mp4">
</video>

The rule of thumb: under two seconds and simple, animated WebP; longer or complex, video.

Converting an existing library

This has to be done with real tooling, not a browser. ffmpeg and gifsicle both handle frames, palettes and timing correctly.

A browser canvas decodes only the first frame of an animated GIF, which is why there is no GIF tool on this site — one built that way would silently return a still image and call it compression. That is not a limitation worth papering over.

Try it yourself

Everything below runs in your browser, so you can test any of this on your own files without uploading them.

  • Compress WebP

    Re-encode existing WebP files, or convert JPEG and PNG into WebP.

    Open the tool
  • Compress PNG

    Lossless by default, with transparency carried through untouched.

    Open the tool
  • Compress JPEG

    Shrink JPG and JPEG photographs with a quality slider or an exact target size.

    Open the tool

Questions

Frequently asked questions

Every answer below is present in the page source, expanded, so it can be read without opening anything.

Is animated WebP better than GIF?

In almost every measurable way — full colour instead of 256, proper alpha transparency, and commonly three to ten times smaller. The one place GIF still wins is email, where WebP support remains unreliable.

Do all browsers support animated WebP?

Yes, every current browser including Safari. Support has not been a reason to avoid it for several years.

How much smaller is animated WebP?

Typically three to ten times, depending on the content. The gap is widest on photographic or video-derived animation, where GIF's 256-colour limit forces dithering that inflates the file further.

Should I use video instead?

For anything beyond a few seconds, yes. A muted autoplaying MP4 or WebM is smaller again, decodes with hardware acceleration, and can be paused — which matters for people who find looping animation difficult.

Why do GIFs still exist if they are so inefficient?

Cultural inertia and universal support. The word means something to people, and the format opens everywhere. Most social platforms now convert uploads to MP4 while keeping the name.

Can I convert a GIF to WebP here?

No. A browser canvas only decodes the first frame of an animated GIF, so any tool built that way would silently discard the animation. Use ffmpeg or gifsicle, which handle frames and timing properly.

From the blog

Related reading

Longer, more practical guides from the blog.

  • Image Formats

    WebP vs JPEG: Which Should You Use, and When JPEG Still Wins

    WebP produced a 27.0 KB file against MozJPEG's 41.1 KB on the same photograph at slightly higher measured fidelity — 34% smaller. It also produced a larger file than JPEG on random noise. The advantage is real and content-dependent.

    9 min read

  • Practical Guides

    How to Compress Images for a Website Without Wrecking Them

    Resize before you compress. Measured on one photograph: half the width at quality 80 produced a 16.4 KB file, while full width at quality 40 produced 20.6 KB and looked far worse. The order of operations matters more than the settings.

    8 min read

  • Image Formats

    PNG vs JPEG: When to Use Each, With the File Sizes to Prove It

    PNG stored the same photograph in 1274.1 KB where JPEG needed 67.5 KB — nineteen times larger. On a flat graphic PNG won. On a smooth gradient PNG lost to JPEG by a factor of two, which surprises most people.

    9 min read