One loop, three files

Homepage doorway · 4 seconds · 288 × 512
FormatSize
GIF 7.72 MB
MP4 140 kB
WebM 109 kB

The first four seconds of our homepage doorway, saved three ways at the same size. Soft light and gradients are hard work for a GIF, so the gap here is wide; flat graphics narrow it. Download the files to compare them.

Why is a GIF so much bigger?

GIF is a format from the late 1980s. It stores every frame more or less as a full picture and is limited to 256 colors, so smooth gradients turn into bands and every frame adds weight. Video only records what changes from frame to frame and keeps the full range of color, which is why it’s so much lighter for real footage.

Work from the original if you can

Converting a GIF to video will shrink it, but it can’t bring back the color and detail the GIF already threw away. If you have the original edit, start from that instead and the video will look noticeably better.

Common questions

Is MP4 smaller than GIF?
For photographic motion, almost always and by a lot. The same four-second clip in our test is 7.72 MB as a GIF and 140 kB as an MP4, about 55 times smaller, and the video looks better.
Can a video behave like a GIF?
Yes. A video that is muted, looping, set to play inline and to autoplay starts by itself and repeats, just like a GIF. Add a way to pause it and a still for visitors who prefer reduced motion.
When should I keep the GIF?
In email, where video rarely plays, in places that only accept images, and for tiny flat graphics with a few colors, where a GIF can already be small.

Put the loop on your page

Upload the original clip to Speedy Clip and copy the embed. It plays muted, inline and on a loop, just like the GIF did, with a lighter version for phones and a matching still for each screen. For more background, see web.dev’s guide to replacing GIFs with video.