★ Every tool runs 100% in your browser. Nothing is uploaded, ever

Convert Formats

GIF to WebP Converter

This free GIF to WebP converter turns an animated GIF into a true animated WebP right in your browser, with nothing uploaded. Every frame is kept, each frame's own duration and the loop count are carried across, and transparency stays transparency. Because no browser can encode an animated WebP on its own, the page loads a real encoder (libwebp, the reference WebP encoder, compiled to WebAssembly, about 320 KB, once) and does the work on your device. Before the download appears, the finished file is re-read and checked against the GIF, frame by frame.

People convert a GIF to WebP because WebP stores the same animation in fewer bytes, with a proper alpha channel instead of the GIF's all-or-nothing transparency. One warning before you start: a lot of "in-browser" converters export only the first frame as a still WebP and call it a conversion, because that is all a browser's built-in export can do. This tool exists to do the real thing, and the preview below plays from the actual file you will download, so you can see the animation survived before you save it.

Drop a GIF here, or paste one from your clipboard

The built-in sample below is already loaded, so you can try the conversion first.

Your GIF & WebP settings

Lossless stores the decoded pixels exactly, transparency included. Lossy re-encodes at the quality below: usually smaller on photographic GIFs, not always on flat graphics. Both are explained honestly further down this page.

Higher quality keeps more detail and makes a heavier file. 80 is a good default for most GIFs.

Honest limits, checked before anything is decoded: files up to 50 MB · up to 600 frames · up to 48 million decoded pixels in total (frames × width × height). A GIF over a limit is refused with the reason, not with a frozen tab. Encoding happens in your browser, one frame at a time, and these caps are what a phone can hold.

The original, playing: then your WebP

The original GIF, playing.

After converting, the finished WebP plays here, from the actual file you will download.

How to convert a GIF to WebP

  1. Load a GIF. Drop it on the box above, paste it, or pick a file, or try everything on the built-in sample first.
  2. 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.
  3. 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.
  4. 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.

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:

Browse all MotionGIF tools →