Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GIF animations instead of video: how to find and replace them

PRF-084Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A GIF is an image format from 1987 that can hold several frames, so it can play as a short animation. It stores each frame with limited compression and only 256 colours. Modern video formats (MP4 with H.264, and WebM with VP9 or AV1) compress motion between frames, so they are much smaller for the same clip.

Why it costs you leads or sales

A heavy GIF competes with everything else on the page for bandwidth. On a mobile connection, the page can take longer to show its main content and become usable. Slow pages tend to lose more visitors before they reach your form or buy button. The business impact is usually low for one small GIF, but it grows when GIFs sit above the fold or you have several on a landing page.

Same clip, different formatExample numbers
Same clip, different format (example)GIF: 8 MB; MP4 (H.264): 0.8 MB; WebM: 0.5 MB03680.80.5GIFMP4 (H.264)WebMMB

Example: a 6-second product demo exported three ways. Real sizes vary by clip, but video is typically much smaller than GIF.

How to check if your site has it

Find animated GIFs on a page
  1. Open browser dev tools

    In Chrome, press F12 (or Cmd+Option+I on Mac) and open the Network tab. Reload the page.

  2. Filter by image type

    Click the Img filter, or type .gif in the filter box. Sort by Size to see the largest first.

  3. Note file sizes

    Any GIF over a few hundred KB is a candidate for replacement. Check whether it is animated by opening it in a new tab.

  4. Run a page speed test

    Google PageSpeed Insights and Lighthouse include an audit called 'Use video formats for animated content' that lists GIFs that should be videos.

  5. Search your source

    Search your theme, page builder or HTML for '.gif' to catch GIFs that load lower down or on other pages.

How to fix it

The fix has two parts: convert the GIF to video, then replace the <img> with a <video> tag that behaves like a GIF (autoplay, loop, muted, no controls).

Replace a GIF with video
  1. Get the original source

    If you still have the screen recording or video the GIF came from, use that. It gives the best quality.

  2. Convert to MP4 and WebM

    Use a video editor, an online converter or the free ffmpeg tool. Export MP4 as the main file and WebM as an optional smaller one.

  3. Embed with a video tag

    Use autoplay, muted, loop and playsinline. Browsers only autoplay video when it is muted. Add a poster image so something shows while it loads.

  4. Set width and height

    Give the video fixed dimensions or an aspect ratio so the layout does not jump while it loads.

  5. Delete or stop loading the GIF

    Remove the old GIF from the page so it is not downloaded as well.

Convert a GIF to MP4 and WebM with ffmpegbash
ffmpeg -i demo.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" demo.mp4
ffmpeg -i demo.gif -c:v libvpx-vp9 -b:v 0 -crf 33 demo.webm
GIF-style video embedhtml
<video autoplay muted loop playsinline width="640" height="360" poster="demo-poster.jpg" preload="metadata">
  <source src="demo.webm" type="video/webm">
  <source src="demo.mp4" type="video/mp4">
</video>
Where to make the change
  1. Upload the MP4

    Add it in Media > Add New. In the block editor, use the Video block and turn on Autoplay, Loop and Muted, and Playback controls off. Plays inline should be on.

  2. Remove the GIF block

    Delete the Image block that holds the GIF. Check page builders and theme sliders for other GIFs.

GIF versus video

Animated GIF

  • Large file for a short clip
  • 256 colours, visible banding
  • No controls, no pause
  • Delays other content on slow connections

Muted looping video

  • Much smaller file
  • Full colour and smoother motion
  • Can add poster image and controls
  • Lighter on bandwidth

How to confirm it's fixed

After the change
  • The Network tab no longer shows the .gif file loading on that page
  • The video plays and loops automatically on desktop and on a phone (including iPhone Safari)
  • The video does not make the layout jump while loading
  • PageSpeed Insights no longer lists 'Use video formats for animated content'
  • Total page weight is lower than before

How to prevent it happening again

Habits that keep GIFs out
  • Ask designers and writers to export animations as MP4 or WebM, not GIF
  • Add a size check to your publishing process: no animated asset over a set limit
  • Re-run PageSpeed Insights after adding new landing page sections
  • Check pages after theme or plugin updates, which can bring in new GIFs

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs your real customer journeys, such as forms and checkouts, and checks steps, tracking hits and lead delivery. It does not audit file formats or page weight. For GIFs, use a page speed and performance testing tool such as Lighthouse, PageSpeed Insights or WebPageTest, or the Network tab in your browser.

Questions people ask

Why is my animated GIF so large?

GIF stores each frame with weak compression and does not efficiently encode motion between frames. A short clip can reach several MB, while the same clip as MP4 or WebM is often a fraction of that size.

How do I replace a GIF with a video on my website?

Convert the GIF to MP4 (and optionally WebM), then embed it with a video tag using autoplay, muted, loop and playsinline. Add a poster image and set width and height, then remove the old GIF from the page.

Will a video autoplay like a GIF?

Yes, if it is muted and has the playsinline attribute. Browsers block autoplay with sound, but muted looping video autoplays on desktop and mobile in current browsers.

Should I use MP4 or WebM instead of GIF?

MP4 with H.264 works almost everywhere, so use it as the main file. WebM is often smaller, so list it first and keep the MP4 as a fallback.

How do I find GIFs slowing down my page?

Open the Network tab in Chrome dev tools, reload the page, and filter for .gif sorted by size. You can also run PageSpeed Insights and look for the audit 'Use video formats for animated content'.

Does FunnelGuard detect GIFs on my pages?

No. This is outside what FunnelGuard checks. Use a page speed tool such as Lighthouse, PageSpeed Insights or WebPageTest to find GIFs and measure page weight.

Can I still use GIFs in emails?

Yes. Many email clients do not play video, so GIFs are still common in email. Keep them small, and use video on your web pages.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.