Convert a GIF to WebP
- Drop your .gif files into the box above. Static and animated files are both accepted, though the result differs - see below.
- Choose WebP as the output format. It encodes at quality 0.92 and keeps the alpha channel, so transparency survives this route.
- Look at the size comparison and then at the image itself. On flat graphics, check whether the edges held up better than they would have as PNG.
GIF is the least efficient image format still in daily use: 256 colours, one-bit transparency, and a compressor designed in 1987. WebP is the format that should have replaced it - smaller, full alpha, capable of animation. So converting sounds like a straightforward upgrade. Two details make it less straightforward than that.
The first is that the animation does not come along. This tool decodes the file the way a browser displays it, which means the first frame, and writes that frame as a still image. If the thing you are converting moves, the result will not. Keeping motion requires an animated WebP encoder, and the Canvas API - the only encoder a web page has - cannot write one.
The second is about static files, where the trade is subtler than it looks. WebP written by a browser is always lossy; PNG is not. On a logo, an icon or a chart - flat colour, hard edges, which is what GIF is mostly used for - PNG keeps every pixel and often compresses those flat areas as well as a lossy WebP does, without softening anything. WebP earns its place when the GIF is photographic: continuous tone, no hard edges, and a large size drop for a loss you will not notice.
GIF to WebP, GIF to PNG, or leave it alone
- Photographic still, headed for a website: WebP. Lossy compression is well suited to continuous tone, transparency is kept, and the file will be far smaller than the equivalent PNG.
- Logo, icon, chart, pixel art, anything with flat colour or text: PNG. Lossless, and it keeps transparency properly instead of relying on a one-bit mask.
- Animated GIF: none of these conversions. Keep the original, or re-encode to MP4 or WebM - the same clip is routinely an order of magnitude smaller as video than as GIF.
GIF vs WebP at a glance
| GIF | WebP | |
|---|---|---|
| Compression | Lossless | Lossy |
| Transparency | Supported | Supported |
| Best for | simple looping animations and low-colour graphics | any image that appears on a website, where a smaller file means a faster page and a better Core Web Vitals score |
| Main drawback | the 256-colour limit causes visible banding on photos and gradients | very old software and a few desktop editors still cannot open it |
Related tools
PNG to WebP
Convert PNG files to WebP instantly in your browser.
PNG to JPG
Convert PNG files to JPG instantly in your browser.
JPG to WebP
Convert JPG files to WebP instantly in your browser.
JPG to PNG
Convert JPG files to PNG instantly in your browser.
WebP to PNG
Convert WebP files to PNG instantly in your browser.
OG image (1200x630)
1200 x 630 - one canvas, six renderers, and a different crop in each of them.
LinkedIn post (1.91:1)
1200 x 627 - the link preview size, three pixels off Facebook and treated the same.