OfflaneAI

GIF to WebM —
the same loop at a fraction of the size

Drop a GIF, keep or loop it to a minimum length, pick a background for transparent parts, download a WebM that stays well under Discord's upload limit.

  • 📉 Far smaller than the GIF
  • 🔁 Loop to any length
  • 🔒 Nothing is uploaded
  • 💸 Free

Loading the tool… (JavaScript required)

Why WebM and not MP4?

Here WebM comes out about as large as MP4, with slightly cleaner edges from VP9; it is the native format for Discord, Telegram stickers and HTML5 pages. Choose MP4 when the destination is Instagram, iPhone or WhatsApp.

Does it keep the GIF's speed?

Yes — each frame's delay is reproduced exactly, including variable frame timing, so the animation looks identical.

Is transparency kept?

Video has no alpha channel here, so transparent pixels are filled with the colour you choose (white, black or custom).

Why convert a GIF to MP4?

GIF is a 1989 format with 256 colours and no real compression; a 5-second clip can be 20 MB. The same animation as MP4 is often under 500 KB, looks smoother and is required by Instagram, TikTok and most messengers, which do not accept GIF uploads.

Why does Instagram reject my converted video?

Instagram needs at least 3 seconds. Set “Minimum length” to 3 s (or 5 s for Reels) and the GIF is looped until it reaches that length. The output also uses an even width and height and H.264, which every platform accepts.

Will transparent GIFs work?

Video has no transparency, so transparent areas are filled with the background colour you pick — white by default, or black, or your brand colour.

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

DestinationWebM worksNotes
Chrome, Firefox, Edge, AndroidYesPlays in the browser and in most Android galleries
Your own web pageYesOffer an MP4 copy as well for older Safari versions
DiscordYesPlays in the chat
Instagram, WhatsApp, iPhone appsUse MP4Convert 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 .gif name. 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.