Convert GIF to WEBM
Shrink animated GIFs into WEBM videos for faster web pages, privately in your browser.
- Free
- No upload
- No watermark
- No sign-up
How to convert GIF to WEBM
- 1
Choose an animated GIF.
- 2
Choose how many times the loop should repeat inside the video.
- 3
Press Convert.
- 4
Download the WEBM.
Faster pages with WEBM instead of GIF
Large animated GIFs are one of the most common reasons a page loads slowly, and Google's PageSpeed Insights flags them with "Use video formats for animated content". A WEBM video usually takes a small fraction of the GIF's bytes with the same look, and with full color instead of 256.
To replace a GIF on a site, use a video tag that behaves like one: <video autoplay loop muted playsinline src="anim.webm">. Browsers only autoplay video when it is muted, which a GIF-turned-video always is.
Where WEBM works
Chrome, Firefox, Edge and Android play WEBM, as do Discord and many forums. Recent Safari versions play WEBM too, but older iPhones and Macs may not, so if your audience includes them, also keep an MP4 copy (our GIF to MP4 tool) as a fallback source.
Transparency in GIFs is not kept: transparent areas become a solid background.
What you get
The WEBM holds VP8 video, the WebM codec with the widest browser support, at high quality. GIF transparency isn't kept: transparent areas become black, so this suits animations with a full background. Odd pixel sizes are trimmed by one pixel to the even size video encoders need.
You can repeat the animation 1, 2, 3, 5 or 10 times in the file. On a website you usually don't need to: add the loop attribute to the video tag and it repeats forever.
Using it on a web page
Replace the GIF's img tag with a video tag that has autoplay, loop, muted and playsinline. Browsers only autoplay muted video, and the WEBM has no sound anyway. Keep an MP4 from the GIF to MP4 tool as a second source for older Safari.
Questions, answered.
Is WEBM better than GIF?
For the web, yes: much smaller files and full color. GIF still wins where video isn't allowed, such as email.
Does it keep GIF transparency?
No. Transparent pixels become a solid color in the WEBM.
Will the WEBM loop?
Looping is set by the player. On a website add the loop attribute; most chat apps loop short videos on their own.
Is it really free?
Yes. There is no sign-up, no watermark and no daily limit. The work runs on your own device, so it costs us nothing to let you use it as often as you like.
Is my video uploaded anywhere?
No. The video is processed inside your browser with a WebAssembly build of ffmpeg and never leaves your device. Once the page has loaded you can even go offline.
More free video tools
- GIF to MP4Turn an animated GIF into a small MP4 video you can post on Instagram, TikTok or WhatsApp.
- Video to GIFPick a moment from any video and turn it into a sharp, looping GIF, right in your browser.
- MP4 to WEBMTurn MP4 files into WEBM in seconds. Free, no watermark, and your files never leave your device.
- Compress VideoMake a video smaller, to an exact size in MB or a quality you choose, without uploading it.
- MOV to MP4Turn MOV files into MP4 in seconds. Free, no watermark, and your files never leave your device.
- MKV to MP4Turn MKV files into MP4 in seconds. Free, no watermark, and your files never leave your device.