Why GIF is a poor choice for still images
GIF survives because of animation and nostalgia, not because of compression. Its palette is capped at 256 colours per frame, its LZW encoder was designed for 1980s modems and it supports only binary transparency (a pixel is either fully opaque or fully transparent). Any still image saved as GIF can be reproduced in WebP with better colour fidelity and a far smaller file.
What about animated GIFs?
WebP supports animation and is typically 50–70% smaller than an equivalent animated GIF. However, the browser canvas API this tool relies on only decodes the first frame, so animated GIFs come out as still WebP images here. If you need animated WebP, use Google's gif2webp command-line tool(opens in new tab) or export directly from your animation software. For most websites, converting a short GIF to an MP4/WebM video is an even better option.
Quality settings for GIF sources
GIFs are usually graphics: icons, diagrams, memes and screen recordings. Use 85–95% quality so that hard edges and text remain sharp. File sizes will still be tiny compared with the original GIF.
| GIF | WebP | |
|---|---|---|
| Colours | 256 per frame | 16.7 million |
| Transparency | 1-bit (on/off) | 8-bit alpha |
| Animation | Yes | Yes (not via this browser tool) |
| Typical size (still 800 px graphic) | 180 KB | 28 KB |
| Browser support | 100% | 97%+ |