1. Home
  2. Convert
  3. GIF to WebM

GIF to WebM Converter

Turn a GIF into a compact WebM video that plays in every modern browser and can keep a transparent background.

Loading the tool…
Rate this tool
No votes yet

How to use it

  1. Step 1

    Open your GIF

    Drop a GIF onto the page, choose a file from your device or send one from the catalog.

  2. Step 2

    Set size and options

    Pick a scale for the video. Keep transparency on if your GIF has a see-through background.

  3. Step 3

    Repeat if needed

    Videos do not loop by themselves, so a short clip can be repeated a few times for a longer playing time.

  4. Step 4

    Convert and save

    Convert to WebM and download the file. Check the size estimate against the original GIF first.

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.

Frequently asked questions

Can a WebM from a GIF keep transparency?

Yes. Leave keep transparency on, and the transparent parts of the GIF stay see-through in the video.

Does the WebM have sound or loop?

No sound, since GIFs have none. Videos don’t loop in every player, so you can repeat the clip when you convert it, and set a loop on a web page.

Why not just use MP4?

MP4 plays almost everywhere but has no transparency. Use WebM when you need a see-through background on a website.

Is my GIF uploaded?

No. The conversion runs in your browser.

Does WebM work on iPhone?

Support depends on the version of the system and the app. If you must reach iPhone users, add an MP4 version too, or use GIF to MP4.

More GIF tools