What this page preselects
Format is already set to WebM, so the button reads “Convert to WEBM”. The video is encoded with VP9, the codec WebM normally carries, and has no audio track. Repeat, Minimum length, Background and size work exactly as for MP4.
Where WebM fits
| Destination | WebM works | Notes |
|---|---|---|
| Chrome, Firefox, Edge, Android | Yes | Plays in the browser and in most Android galleries |
| Your own web page | Yes | Offer an MP4 copy as well for older Safari versions |
| Discord | Yes | Plays in the chat |
| Instagram, WhatsApp, iPhone apps | Use MP4 | Convert again with Format set to MP4 |
Here both formats receive the same bitrate, decided by the frame size, so a WebM is about as large as the MP4 of the same GIF. VP9 uses those bits more efficiently, which shows as slightly cleaner edges rather than a smaller file. The big saving comes from leaving GIF itself: a GIF that needs megabytes for a few seconds usually becomes a video of a few hundred kilobytes.
Replacing a GIF on a website
A video element can behave exactly like a GIF: it starts by itself, repeats and shows no controls. Give it the attributes autoplay, loop, muted and playsinline. Without muted, browsers block autoplay; without playsinline, iPhones may open the video full screen.
Convert the GIF twice, once as WebM and once as MP4, and list the WebM source first and the MP4 second inside the video element. Each browser plays the first format it supports.
Since the page loops the video itself, keep Repeat at 1 and Minimum length off for web use. Extra repeats only make the file larger.
Pitfalls
- Safari cannot always encode WebM. If “No supported video encoder in this browser” appears, run the conversion in Chrome or Edge.
- Transparency becomes a colour. Pick the Background that matches the page behind the animation, for example the exact colour of a dark theme, so no box shows around it.
- Tiny GIFs may not shrink. The bitrate has a floor, so a small, short or already optimised GIF can come out the same size or larger.
- Not a real GIF. Many sites deliver their “GIFs” as WebP or MP4 files with a
.gifname. Such files are rejected as invalid; if it is already a video, change its format with the video converter.
The GIF to MP4 guide covers frame timing, the length controls and settings for each destination.