What WebM is good for
WebM with VP9 video is a small, open video format made for the web. It plays in every modern browser, and a GIF converted to WebM is usually far smaller than the GIF itself. Unlike MP4, WebM can keep transparency, which makes it the usual way to put a see-through animation on a website without a heavy GIF.
Keep transparency
If your GIF has a transparent background, leave the option to keep it turned on, shown as keep transparency. The video then has a see-through background where the GIF did. Because GIF transparency is on or off with no in-between, the edges will be as sharp as in the GIF; use the GIF background remover if you need to cut a subject out first. If you don’t need transparency, you can turn the option off, and the video may be smaller.
No sound, no built-in loop
A WebM made from a GIF is silent, because GIFs carry no audio. A video file also does not loop on its own when you open it in a player. For a short GIF, the tool lets you repeat the clip several times. On a web page, the video tag has a loop attribute, so it repeats like a GIF would; the guide how to use GIFs has the code.
Where it plays
WebM plays in all modern browsers. Support is less certain in some desktop apps, video editors and older versions of Safari on Apple devices. For maximum compatibility, offer an MP4 as a second source or use GIF to MP4 instead, and for iPhone and Final Cut, use GIF to Video with the MOV option. Our comparison GIF vs MP4 vs WebP explains more.
Size and quality
The video is usually many times smaller than the GIF. To make it even smaller, reduce the scale. If you want an animated image rather than a video, try GIF to WebP or GIF to APNG. The GIF size guide lists limits for common platforms, many of which prefer video anyway.
Using WebM on a page
On a web page, use a video element with muted, loop, autoplay and playsinline attributes, so it behaves like a GIF: it starts by itself, repeats and doesn’t ask for sound. Add a poster image so something shows before the video loads. Keep the clip short, because every second adds to the download. Also provide a text alternative near the video for people who can’t see it.