GIF to MP4
Turn an animated GIF into a muted, looping MP4, usually a fraction of the size, then copy a <video> embed that plays just like the GIF. It runs in your browser; nothing is uploaded unless you ask for a link.
Why swap a GIF for a looping video
GIF dates from 1987: 256 colours per frame and every frame stored whole. Google's web.dev guide shows a 3.7 MB GIF becoming a 551 KB MP4, and Lighthouse flags large GIFs for exactly this reason. A looping MP4 loads faster, looks sharper and costs less bandwidth, while the visitor sees the same silent loop.
Put it on your site in three steps
- Convert the GIF above. The preview plays exactly as it will on the page.
- Get a link, then Save to my account (free) to host the MP4 on PixelVault's CDN (up to 25 MB). Or download it and host it yourself.
- Copy loop embed and paste it where the GIF was:
<video src="https://img.pixelvault.dev/…/vid_….mp4"
autoplay loop muted playsinline></video> - Webflow: add an Embed element and paste the tag. It also gets around Webflow's background-video size cap.
- Framer: use an Embed component set to HTML.
- Shopify: add a Custom Liquid section.
- WordPress: use a Custom HTML block.
- README or docs: GitHub doesn't autoplay video hosted elsewhere, so keep a GIF there, or link to the MP4.
Save the video before you copy the embed: temporary links expire within 24 hours and only play on pixelvault.dev, so an unsaved embed shows a placeholder on your site. Going the other way? Use Video to GIF. Need a clip under an upload limit instead? Try the Video compressor. Hosting a GIF as it is? Use GIF to URL.
GIF to MP4 — FAQ
Is my GIF uploaded to convert it?
No. The GIF is decoded frame by frame and encoded to H.264 MP4 in your browser. Only the finished MP4 is uploaded, and only if you click 'Get a link'.
Why is the MP4 so much smaller than the GIF?
GIF stores every frame as its own 256-colour image. H.264 video stores the changes between frames, so an animation that looks the same usually ends up several times smaller, and screen recordings and UI loops shrink the most.
Will it autoplay and loop like a GIF?
Yes, with the embed this page gives you: autoplay, loop, muted and playsinline. Browsers only autoplay video that is muted, and iPhones need playsinline to play it in the page instead of full screen. The MP4 file itself doesn't loop; the loop attribute does.
What happens to transparent parts of the GIF?
MP4 has no transparency, so transparent pixels are filled with white or black. Pick the one that matches the background where the video will sit.
Can I convert a WebM, MOV or MP4 clip too?
Yes. Any short clip works: the audio is removed so it can autoplay, H.264 video is copied without re-encoding when you keep the original size, and anything else is re-encoded to H.264.
Why doesn't the embed play on my site?
The link from 'Get a link' is temporary, and temporary links only play on pixelvault.dev; embedded on another site they show a placeholder. Click 'Save to my account' (free), then copy the loop embed again: the saved link plays anywhere and doesn't expire after 24 hours.