GIF to WebM Converter
Re-encode a GIF animation as a silent VP8 WebM video, right in your browser.
or drop files here
GIF Format
Graphics Interchange Format
A raster image format introduced by CompuServe in 1987. It uses LZW compression, a palette of at most 256 colors per frame, and supports simple animation.
- 256-color palette per frame
- Lossless LZW compression
- Animation
- 1-bit transparency
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
- Vorbis or Opus audio
- Supported by major browsers
How to convert GIF to WEBM
Follow these steps to convert GIF to WEBM online.
Choose your GIF file, or several at once.
Wait while the converter turns each file into WEBM.
Download each new WEBM file. Your original file isn't changed.
Related Tools
WebM to GIF
Convert WebM files to GIF format
GIF to BMP
Convert GIF images to BMP format
GIF to JFIF
Convert GIF to JFIF format
GIF to JIF
Convert GIF to JIF format
GIF to JPEG
Convert GIF images to JPEG format
GIF to JPG
Extract first frame as JPG
GIF to KTX
Convert GIF to KTX format
GIF to MOV
Convert GIF files to MOV format
GIF to PGM
Convert GIF to PGM format
GIF to SWF
Convert GIF files to SWF format
GIF to TGA
Convert GIF images to TGA format
GIF to TIF
Convert GIF images to TIF format
GIF to WebP
Convert animated GIFs to WebP
AVCHD to WEBM
Convert AVCHD files to WEBM format
M2TS to WEBM
Convert M2TS files to WEBM format
MJPEG to WEBM
Convert MJPEG files to WEBM format
MP4 to WebM
Convert MP4 video files to WebM format
MPEG to WEBM
Convert MPEG files to WEBM format
MPEG2 to WEBM
Convert MPEG2 files to WEBM format
MPG to WEBM
Convert MPG files to WEBM format
RM to WEBM
Convert RM files to WEBM format
RMVB to WEBM
Convert RMVB files to WEBM format
SWF to WEBM
Convert SWF files to WEBM format
VOB to WEBM
Convert VOB files to WEBM format
What to know before converting GIF to WebM
- The GIF's pictures are re-encoded as VP8 video, so the WebM is not a pixel-for-pixel copy.
- The WebM has no audio track, because a GIF has none.
- Frame rate tops out at 30 fps and the longer side at 1920 px, and an odd width or height loses a single pixel.
- Transparency is dropped: the video has no alpha channel.
- Looping is not set in the file. Set it in the player or the video tag.
About GIF and WebM
What is a GIF file?
GIF stands for Graphics Interchange Format. CompuServe introduced it in 1987. Every picture in a GIF is LZW-compressed and drawn from a palette limited to 256 colors. The GIF89a version added extensions for frame delays and for marking one palette color as transparent, which is what made short animations possible. Transparency is all or nothing: one palette color is declared transparent, and nothing can be partly see-through. The delay between pictures is set in hundredths of a second. Unisys' LZW licensing, which started in 1994, faded as patents lapsed, in the US in 2003 and a year later in Europe and Japan.
You meet GIFs as reaction clips, looping demos, stickers and small icons. The format stores pictures and timing, not sound. A GIF made from a movie clip lost its audio when it was made, and no converter can bring it back.
Programs that open GIF files
- Windows: Photos opens GIFs.
- Mac: Preview opens GIFs.
- Windows, Mac and Linux: GIMP can export layered animations and still pictures, and an exported animated GIF can be set to loop forever. ImageMagick reads GIF.
- Web and mobile: every major browser displays GIFs; the ones named here are Chrome and Firefox on desktops and Safari and Chrome on phones.
GIF and WebM compared
- Extensions and types: .gif is image/gif; .webm is video/webm.
- What it is: GIF is an image format that can animate. WebM is a video container based on Matroska, and it can hold VP8, VP9 or AV1 video.
- Compression: GIF compresses without loss, but only inside its 256-color palette. The WebM this page writes uses VP8 video.
- Color: the GIF palette limit is gone in the video, but colors that were already reduced in the GIF stay reduced.
- Transparency: GIF allows one fully transparent color. The WebM here is yuv420p, which has no alpha.
- Sound: GIF has none. The WebM from this page has none either, because the conversion switches audio off.
- Looping: the WebM from this page carries no loop setting, so a video repeats only if the page or player is told to.
FFmpeg decodes the GIF and passes its frames to the VP8 encoder (libvpx) at a fixed quality of CRF 40. The WebM follows the GIF's size and rate, but never exceeds 1920 px on its long side or 30 fps. Dimensions are rounded down to even values, which matters when a GIF is, say, 481 px wide. Interlaced frames, if a file has any, are deinterlaced first.
The file you get is a video, not an image. It opens in a player or sits in a video tag, and it has a play bar. To check it, play it in Chrome, Edge, Firefox or VLC media player; on a phone, try VLC for Android or VLC for iOS. Keep the GIF when the destination only accepts images.
Other ways to convert GIF to WebM
- FFmpeg (command line): type
ffmpeg -i reaction.gif -c:v libvpx -pix_fmt yuv420p -an reaction.webm. The command writes opaque VP8 video. - GStreamer (command line): run
gst-launch-1.0 filesrc location=reaction.gif ! gifdec loop=force-no ! videoconvert ! vp8enc ! webmmux ! filesink location=reaction.webm. It needs the gif, vpx and Matroska plug-ins.
Problems with GIF files
- The clip plays once and stops: the converted file has no loop setting, so switch on repeat in your player or on the page's video tag.
- Colors look speckled: the GIF's 256-color palette causes dithering that no conversion removes. Go back to the original video if you still have it.
- A site only accepts image uploads: a form that wants .gif or an image type can reject video/webm. Keep the GIF there.
- The picture has no transparent background: a GIF marks one palette color as transparent, and the video here can't hold that. Place the clip on a matching background.
- The GIF has no sound: the format has no audio, so the WebM stays silent.
- A very large GIF gets smaller: a GIF wider or taller than 1920 px is shrunk to fit, and a smaller one is never scaled up.
- A long GIF takes a while: nothing on the page limits file size or running time, so a long GIF takes as long as your device needs.
Frequently Asked Questions
Everything you need to know about our converter
How do I convert a GIF to WebM?
Will the WebM loop like my GIF did?
Will the WebM be smaller than the GIF?
Does the WebM have sound?
What happens to a transparent GIF background?
Why is my WebM one pixel narrower than the GIF?
What frame rate does the WebM have?
Why does the WebM still look dithered or banded?
Which programs play the WebM?
Can I combine several GIFs into one WebM?
Browse All Tools
Browse by category instead of one giant mixed list.
Convert Tools
Convert image, audio, video, document, and data files directly in your browser.