How to convert a GIF to WebP
- Load a GIF. Drop it on the box above, paste it, or pick a file, or try everything on the built-in sample first.
- Pick Lossy or Lossless. Lossless keeps the decoded pixels exact. Lossy aims smaller, at the quality you set. The readout above the button states the plan for your GIF: frames, duration per loop, and what will happen to the loop setting.
- Convert. The first conversion loads the encoder (about 320 KB, once; your browser caches it after that). Then each frame is encoded on your device, with the progress bar showing where it is up to. A big GIF takes real time; nothing is uploaded while you wait.
- Check and download. The finished WebP plays in the preview from the actual file, and the status line reports its real size next to the original GIF. The file has already been re-read and verified at this point: frame count, every duration and the loop count all match the GIF.
The settings, one by one
Lossy re-encodes each frame with the WebP lossy codec at your quality setting. It is the right choice for photographic or noisy GIFs, where it can cut the file down a lot. Its weakness is flat graphics: sharp edges and flat colour are exactly what the lossy codec is worst at, so edges can soften slightly and, as the worked example below shows, the file can even come out bigger than the lossless one. Lossless stores the decoded pixels exactly as they are, colours and alpha alike, using WebP's lossless compression. It is the right default for screen recordings, UI captures, logos, pixel art and anything with transparency, and on most GIFs it still beats the GIF's own size. The quality slider only applies to Lossy: higher keeps more detail and weighs more, lower goes the other way. 80 is a sane starting point; the real output size is always reported, so you can convert twice and keep the better result.
Timing and looping: carried across exactly
A GIF is not a frame rate. Each frame carries its own delay, stored in hundredths of a second, and real GIFs mix them freely: a 200 ms pause here, two quick 50 ms frames there. An animated WebP stores each frame's duration in milliseconds, so the mapping is exact: a 50 ms frame is a 50 ms frame, a 200 ms frame stays 200 ms. The loop setting is carried across too, in the file's animation header: a GIF that loops forever loops forever as a WebP, and a GIF set to play a fixed number of times plays that same number of times.
One rule applies, and it is the browsers' own, not ours: a stored delay of 0 or 10 ms is not honoured by players, which show such a frame for 100 ms instead. The WebP does the same, and the facts box above your settings counts any frames of yours the rule touches, so nothing about your animation's rhythm changes silently.
Transparency: a real alpha channel
A GIF's transparency is all-or-nothing: a pixel is fully see-through or fully solid. WebP has a proper alpha channel, and this conversion keeps the GIF's transparency as alpha, so a transparent background stays transparent in the WebP, with no coloured fringe and no forced background colour. (Contrast with converting to MP4, where transparency cannot survive at all and has to be flattened onto a colour.) In Lossless mode the match is exact, including the colour values stored under the transparent pixels themselves; our own tests decode the produced file with an independent decoder and compare every pixel, alpha included, against the GIF.
What the conversion costs: one download, and some time
Two honest costs, stated before you convert rather than discovered after. The encoder download: no browser ships an animated WebP encoder, so the first conversion fetches one from this site: libwebp compiled to WebAssembly, 319,926 bytes in total (about 320 KB), loaded once and then cached by your browser. A still-image conversion would not need it; an animated one does, and any tool that does not load something like it is almost certainly exporting a first-frame still. The encoding time: the encoder runs on one thread, on your device, frame by frame, so the wait grows with the frame count and the dimensions. The progress bar shows real progress per frame. A 12-frame sample converts in a blink; a 400-frame screen recording will take a while, and this page would rather say that than promise "instant".
One more trade-off worth knowing: each frame is stored as a complete picture. Encoders that store only the rectangle that changed between frames can squeeze a mostly still animation further. This tool stores whole frames because that is what makes the result exactly verifiable, frame by frame, and the sizes in the worked example are the real consequence of that choice.
A worked example, with real numbers
These figures are from converting an actual 12-frame test GIF we made for this page, through this tool, in a Chromium browser: 160 × 120 pixels, 4,407 bytes, delays between 50 and 200 ms, 1.20 seconds per loop, looping forever. It is the same scene as the built-in sample.
- Lossless: the WebP is 2,764 bytes, which is 1,643 bytes (37%) smaller than the GIF, with every pixel and every alpha value stored exactly.
- Lossy at quality 80: the WebP is 7,874 bytes, which is 3,467 bytes bigger than the GIF itself. Yes, bigger. The next paragraph explains why, because it is the honest headline for a GIF like this one.
- The timing, checked: pulled apart again, the converted file's 12 frames carry durations of 100, 50, 50, 100, 200, 100, 50, 50, 100, 100, 200 and 100 ms, the GIF's own delays, in the GIF's own order, and the loop is set to loop forever, like the GIF.
- Transparency, checked: a second test GIF with see-through regions (351 bytes, 3 frames) converts losslessly to a WebP of 264 bytes, and decoding it back gives exactly the GIF's pixels, transparency included.
Why did lossy lose here? Because this GIF is flat colour and sharp edges: a cartoon-style animation with a handful of colours. Lossless WebP is built for exactly that and crushes it. The lossy codec is built for photographs, and on flat graphics it spends bytes describing edges it then slightly softens, ending up heavier than both the lossless WebP and the original GIF. On a photographic GIF the ranking flips, and lossy wins easily. That is why this page offers both, reports both real sizes, and does not pretend one mode is always the smaller one.
Where an animated WebP plays, and where to keep the GIF
Modern browsers: animated WebP plays in Chrome, Edge, Firefox and Safari (Safari since version 14, reliable since iOS 16), so for use on web pages the format is safe. Discord: plays animated WebP in attachments and embeds, and Discord serves its own animated emojis as WebP, so converted emojis and reactions are at home there. Other chat apps: WhatsApp and Telegram support varies by app and version; test one file before converting a whole set for them. Email: keep the GIF. Most email clients still show an animated WebP as a still picture, or refuse it. And keep the GIF when the destination is an older app or a GIF-only upload form: WebP is the better file, but only where it is actually accepted.
If the animated encoder cannot run on your device
Very occasionally the WebAssembly encoder cannot load or run: a very old browser, WebAssembly switched off, or a device that runs out of memory on a huge GIF. If that happens here, you are told plainly, and the tool offers the honest fallback instead: a still WebP of the first frame, named with "-first-frame" in the file name and labelled a still in the result line, never passed off as the animation. A current Chrome, Edge, Firefox or Safari runs the full animated conversion.
How big a GIF can you convert?
There is no server limit, because there is no server. But your browser's memory and the encoder's speed are real limits, so the page states them plainly: files up to 50 MB, up to 600 frames, and up to 48 million decoded pixels in total (frames × width × height). The checks run on the file's structure before a single frame is decoded, so an oversized GIF is refused up front with the reason, not with a frozen tab halfway through an encode. If your GIF is too long, trim it first; if it is too large in pixels, resize it; and if it must stay a GIF but smaller, that is the GIF Compressor's job.
Frequently asked questions
Will my animation, frame timing and loop count survive the conversion?
Yes. Every frame of the GIF is converted, each frame's duration is written into the WebP in milliseconds taken from the GIF's own delays, and the loop setting is carried into the file's animation header, so a GIF that loops forever produces a WebP that loops forever. One rule applies, the same one browsers use when they play the GIF itself: a stored delay of 0 or 10 ms is shown as 100 ms, because players will not honour anything that fast. The facts box above counts any frames of yours that rule touches. Before the download appears, the tool re-reads the file it made and checks every duration and the loop count against the plan.
Does the WebP stay animated?
Yes, the result is a true animated WebP with all of the GIF's frames in it, not a still picture of the first frame. That distinction matters because many free converters quietly export only the first frame: no browser has a built-in animated WebP encoder, so a tool that only uses the browser's own image export cannot do better. This page loads a real encoder (libwebp, compiled to WebAssembly) and joins the encoded frames into one animated file, and the preview above plays from the actual file you will download, so what you see moving is what you get.
How much smaller will my WebP be than the original GIF?
Usually smaller, but the honest answer is: it depends on what is in the GIF. Google's published figures for its own gif2webp tool average about 64% smaller for lossy conversion and about 19% smaller for lossless, across a mixed test set. Flat, cartoon-style frames compress best losslessly; photographic GIFs gain the most from lossy. The worked example on this page shows a small test GIF where lossless came out 37% smaller and lossy, surprisingly, came out bigger than the GIF, and explains why. Whatever your GIF does, the tool reports the real output size next to the original before you download, so the saving is a measurement, not a promise.
Should I pick Lossy or Lossless WebP?
Pick Lossless when the pixels must stay exactly as the GIF decodes them: it stores the decoded frames without changing a single colour or alpha value, and it usually still comes out smaller than the GIF. Pick Lossy when the GIF is photographic or noisy and the smallest file matters most: the quality slider trades a little detail for size. On flat graphics with sharp edges, lossy can soften the edges and can even produce a bigger file than lossless, so if in doubt, convert both ways and compare the two real sizes the tool reports.
Does animated WebP work in Safari and on iPhone?
Playing it does: Safari has played animated WebP since Safari 14 and iOS 14, and it has been reliable since iOS 16. Converting on an iPhone works too, and the reason is worth knowing: this tool's encoder is WebAssembly, which Safari supports, rather than the browser's built-in image export, which in Safari cannot produce WebP at all (it silently hands back a PNG). So the conversion runs the same way in Safari as in Chrome, Edge and Firefox: on the device, with nothing uploaded.
Will Discord, Telegram or WhatsApp play animated WebP?
Discord will: it supports animated WebP in attachments and embeds, and it serves its own animated emojis as WebP. WhatsApp and Telegram support varies by app and by version, and changes often, so test with one file before you rely on it for a whole set. Email is the clear exception: most email clients still show an animated WebP as a still picture or reject it, so keep the GIF for anything that will be sent by email.
Is my GIF uploaded?
No. The decoding, the encoding and the file writing all happen in your browser, on your device. The one download involved is the encoder itself, about 320 KB of WebAssembly that this page fetches once, from this site, the first time you convert; after that it is cached. Your GIF is never sent anywhere, which you can check in your browser's network tools: converting produces no upload traffic.
Related tools
Converting is usually one step in a longer job. These MotionGIF tools cover the steps that tend to come before or after it:
GIF to MP4
Convert the same GIF to a real MP4 video instead, when the destination is a feed or an uploader that wants video rather than an image format.
Open the tool →GIF Compressor
Make a GIF file smaller in bytes while it stays a GIF, with a target file size mode: the right tool when the format cannot change but the bytes must come down.
Open the tool →Crop GIF
Cut away the edges of an animated GIF to exact pixels before you convert it, so the WebP does not carry the screen recording border or the empty space with it.
Open the tool →Resize GIF
Scale the whole picture up or down first, when the destination wants specific dimensions: the WebP inherits the GIF's size, so set it before you convert.
Open the tool →