WebM to GIF Converter

Turn a WebM clip into a looping GIF at 15 frames a second, in your browser.

or drop files here

WE

WEBM Format

WebM video

An open media format designed for the web, based on a subset of Matroska. It carries VP8, VP9 or AV1 video with Vorbis or Opus audio.

  • Royalty-free
  • VP8, VP9 or AV1 video
  • Supported by major browsers
GI

GIF Format

Graphics Interchange Format

A raster image format. It uses LZW compression, a palette of at most 256 colors per frame, and supports simple animation.

  • 256-color palette per frame
  • Animation
  • 1-bit transparency

How to convert WebM to GIF

Follow these steps to convert WEBM to GIF online.

    1

    Choose your WEBM file, or several at once.

    2

    Wait while the converter turns each file into GIF.

    3

    Download each new GIF file. Your original file isn't changed.

What to know before converting WebM to GIF

  • The GIF runs at 15 frames a second, whatever the frame rate of the WebM.
  • The longer side is at most 480 px; a smaller video keeps its size, with odd sizes rounded down to even.
  • A GIF has no sound, so the audio track is left out.
  • Each frame is limited to 256 colors, taken from a palette built from your video.
  • The GIF loops without end, and a batch gives one GIF per WebM.

About WebM files

What is a WebM file?

WebM is an open media format that the WebM Project promotes for delivery over the web. The container is based on Matroska, and the streams inside are VP8, VP9 or AV1 video with Vorbis or Opus audio. The project offers its technology on royalty-free terms, and the major browsers support the format.

Video files carry the media type video/webm. A WebM holding nothing but sound is labeled audio/webm, so a .webm file is not always a video.

Typical sources are web video, the recordings that browser-based screen recorders save, and short animated clips.

Programs that open WebM files

Windows, Mac and Linux

  • The VLC media player reads Matroska-family media, though its codec support has to match the streams inside the WebM.
  • FFplay ships with FFmpeg and plays WebM through FFmpeg's decoders, so which codecs work depends on how that copy was built.

Web

  • Chrome, Firefox and Edge open WebM files directly.
  • Safari 14.1 is where macOS gained WebM playback; the picture has to be VP8 or VP9 and the audio Vorbis.

Mobile

  • Android and iPhone owners can use VLC for Android or VLC for iOS, which play local WebM files with VLC's own player rather than the system player.

WebM and GIF compared

  • Names: .webm goes with video/webm, and .gif with image/gif.
  • Kind of file: WebM wraps video. CompuServe brought out GIF in 1987 as an image format that can store several images one after another.
  • Animation: the GIF89a revision from July 1990 added the extensions for timing, comments, application data and transparency. Delays are counted in hundredths of a second, and a disposal setting decides how a later image sits on top of an earlier one.
  • Colors: every GIF image picks its colors from a palette that tops out at 256 entries. WebM video has no such ceiling.
  • Compression: GIF squeezes its images with LZW, which loses nothing. WebM depends on its video codecs.
  • Sound: a WebM can carry Vorbis or Opus audio. The GIF this page writes holds one picture stream and no audio.
  • Transparency: a single palette entry can be flagged as clear, and there is no partial opacity.
  • Repeat count: a GIF keeps its repeat count in an application extension, and the file this page writes has it set to repeat forever.
  • Patents: Unisys started asking for LZW license fees in 1994, and the last of those patents lapsed in 2004.
  • Support: every major browser displays GIF.

For this pair the page writes 15 frames a second, shrinks anything above 480 px on its longer side, and sets the GIF to repeat. Frames flagged as interlaced are deinterlaced before they are scaled.

Other ways to convert WebM to GIF

  • FFmpeg: run ffmpeg -i input.webm output.gif. FFmpeg takes the output format from the .gif ending, the same pattern its documentation shows with ffmpeg -i input.avi output.mp4. A plain command like this skips the frame-rate, size and palette steps this page applies.
  • Gifski with FFmpeg: run ffmpeg -i input.webm frame%04d.png to write one PNG per frame, then gifski -o anim.gif frame*.png to build the GIF. Gifski's documentation names --width and --height as the biggest levers for a smaller file, and --quality for lowering quality. Its site also shows gifski --fps 10 --width 320 -o anim.gif video.mp4 for an MP4 source, where --fps sets the frame rate and a lower value gives a smaller file. On Windows, the frame pattern may need %%04d.

Problems with WebM files

  • It plays in a browser but not in an editor: playback depends on the video and audio codecs actually used, not on the .webm ending. Check which codecs the file really uses before blaming the container, then convert it here or open it in VLC.
  • Seeking is slow or jumpy: without a cue index, a player gets less direct location information, so jumping to a point is less efficient. Re-saving the file in a video editor rebuilds it.
  • Safari won't play it: releases before 14.1 predate WebM playback in Safari on macOS, so update the browser or use another one.
  • It holds only sound: an audio-only WebM is labeled audio/webm and has no picture to show, so play it in VLC to check what is inside.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert WebM to GIF?

How big and how smooth is the GIF?

Does the GIF loop?

What happens to the sound in my WebM?

Why does my GIF look grainy or banded?

Why can the GIF be larger than the WebM?

Can I turn a browser screen recording into a GIF?

Can I convert several WebM files at once?

Is there a limit on the length of the clip?

Can I change the speed of the GIF?