Convert GIF to WebP
Make a much smaller animated WebP from a GIF, with its timing and looping, on your own device.
- Nothing is uploaded
- Works offline after first use
- Open source
- No watermark · limit is your device’s memory; phones hold less
Convert an animated GIF to animated WebP in your browser. Keeps every frame’s delay and the loop count, lossy or lossless. It is free, needs no account and adds no watermark, and your files are not uploaded: everything runs in your browser on your device. The size limit is your device’s memory, and phones hold less; give the page a short while after your first run to save itself for offline use, and then it works offline.
Done
Free, no ads. Support StayPut
Open the network tab. Your files never appear in it.
Add files and run the tool to see every request this tab makes.
Your files are processed on this device and never sent to a server. Reload the page to clear everything from memory.
An animated WebP is a .webp file that plays several frames, like a GIF, but compresses far better and keeps full colour and soft transparency. A GIF is limited to 256 colours per frame and stores every frame in a 1987 compression scheme, so the same animation as WebP is often a quarter to a tenth of the size. Web page speed tools suggest this swap for exactly that reason.
Drop a GIF and every frame is decoded, composited the way browsers play it, and encoded as a WebP frame. Each frame keeps its own delay and the loop count from the GIF is kept (a GIF with no loop setting plays once). Choose lossy with a quality slider for the smallest file, or lossless to keep every pixel. Your browser does all of it, in Safari too; the GIF is not uploaded and there is no watermark.
Know what you are getting: animated WebP plays in current Chrome, Edge, Firefox and Safari, but some chat apps, social sites and upload forms still only accept GIF. Test it where you plan to use it.
How it works
- Drop one or more animated GIFs, or tap to pick them.
- Choose lossy and a quality, or lossless, then convert. Each one becomes an animated WebP in your browser.
- Download the .webp, or a zip when you converted several.
In your browser, not on a server
Stayput reads the GIF byte by byte in your tab with gifuct-js (MIT), decompresses each frame and composites it the way browsers play GIFs, honouring disposal rules and transparency. Every finished picture is encoded as a WebP frame by libwebp, compiled to WebAssembly by jSquash (Apache-2.0) and served from this site the first time you convert. The frames are then wrapped in an animated WebP container, with the GIF’s delays and loop count, by a small writer in the same tab. The file is assembled in memory.
Compared with upload-based tools: Online GIF to WebP converters upload the file to convert it on a server and may cap the size or keep a copy. Here the conversion runs on your device, so a private screen recording or a clip of your kids never leaves it.
Verify it yourself. Give the page a short while after your first run to save itself for offline use, then turn off Wi-Fi or switch to airplane mode and run the tool again. Or open your browser's developer tools (F12, or Cmd-Option-I on a Mac), pick the Network tab, and watch it while you convert. The panel above does the same count for you.
Questions
How much smaller will the WebP be?
Lossy WebP is usually a quarter to a tenth of the size of the GIF, and the list shows the real change for each file. Lossless is smaller less reliably and can be larger for flat-colour animations.
Does it keep the timing and the loop?
Yes. Each frame keeps its delay and the GIF’s loop count is written into the WebP. Frames with a delay of 0 or 1 hundredths of a second are shown for a tenth of a second, as browsers do with GIFs.
Does it work in Safari and on an iPhone?
Yes. Browsers cannot write animated WebP, so this page carries its own encoder, which is fetched from this site the first time you convert. The file never leaves your device.
Can I go the other way?
Yes. WebP to GIF turns an animated WebP back into a GIF, and GIF to APNG writes an animated PNG.
Is the file uploaded anywhere?
No. There is no server in this process. The page is a static file and the work is done by code running inside your browser tab. Give the page a short while after your first run to save itself for offline use; then you can turn off Wi-Fi and it still works.
More image tools
GIF to WebP
Turn animated GIFs into animated WebP files that are far smaller, with their timing and looping. Converted on this device, never uploaded.
Image to Base64
Get the data URI, the raw Base64 and ready-made HTML and CSS for any image, with the size it adds. Your image never leaves this tab.
RAW preview extractor
Extract the JPEG preview from a RAW file: the picture your camera already saved inside it, copied out unchanged. This is not a RAW develop, and the file never leaves this tab.
Favicon generator
Drop in your logo and get every icon a website needs, plus the HTML to paste. Unreleased logos stay on this device.