Make Lightweight Looping GIFs for Discord & Blogs

Video & GIF - 6 min read - Updated Dec 2, 2026

Animated GIFs are still the easiest way to show a quick UI interaction, a product feature, or a reaction inside a chat app or documentation page. They autoplay, loop, and require no player controls. The catch is file size: a careless export can turn a four-second clip into a 30 MB file that fails every upload limit.

The good news is that GIF size is predictable. Once you understand which levers matter, you can bring almost any short clip under a few megabytes without making it look bad.

Why GIFs get so large

Unlike modern video codecs, GIF stores every frame as a separate image with a palette of at most 256 colours. There is no motion compensation and no inter-frame prediction. That means file size grows roughly with:

Doubling the width and height quadruples the pixel count. Doubling the frame rate doubles the frame count. Those two changes together can multiply the file size by eight. This is why small adjustments have a large effect.

The six levers that control GIF size

1. Duration

Keep clips between 2 and 5 seconds. Going from 10 seconds to 4 seconds removes more than half the frames. If your source is long, trim it first with the Online Video Trimmer.

2. Frame rate

Most interface demos and reaction GIFs look fine at 10–12 FPS. Dropping from 30 FPS to 10 FPS cuts the frame count by two thirds. For slow pans or subtle motion, 8 FPS can still look acceptable.

3. Dimensions

You rarely need a 1920 px wide GIF. Useful targets:

Use caseSuggested width
Discord / Slack reaction320 px
Blog post or documentation480–640 px
Retina product demo720 px maximum

4. Colour count and dithering

Reducing the palette from 256 to 128 or 64 colours can shrink the file noticeably, especially for flat UI recordings. Dithering improves gradients but adds noise that compresses poorly, so disable it for screenshots and simple graphics.

5. Cropping

Cut away empty space around the subject. A tight crop of the relevant UI panel is easier to read and smaller than a full-screen capture with large dead areas.

6. Loop length

A perfect loop lets you use fewer frames. If the last frame matches the first, the viewer does not notice the restart, and you can often shorten the clip by 10–20%.

What the levers are worth: a measured test

To see how much each lever matters, I encoded the same four-second clip with ffmpeg 9.1 at different settings. The source was a detailed 640 x 360 test pattern at 30 fps, so the numbers reflect real motion and colour detail rather than a flat colour background. Every GIF used the same palette method (palettegen with stats_mode=diff) and the same paletteuse settings; only the listed variable changed.

ExportSettingsFile sizeChange vs baseline
640 px wide12 fps, 256 colours, dither, 4 s961.7 KB+32%
480 px wide (baseline)12 fps, 256 colours, dither, 4 s728.5 KB-
128 colours, no dither480 px, 12 fps, 4 s522.8 KB-28%
320 px wide, 64 colours10 fps, no dither, 4 s172.2 KB-76%
24 fps480 px, 256 colours, dither, 4 s1,369.6 KB+88%
2 seconds480 px, 12 fps, 256 colours, dither334.7 KB-54%
MP4 (H.264)480 px, 12 fps, 4 s151.1 KB-79%
WebM (VP9)480 px, 12 fps, 4 s93.0 KB-87%

The baseline GIF was 728.5 KB. The same clip as a WebM was 93.0 KB, about one eighth the size, and the MP4 was 151.1 KB. That gap is the strongest argument for using video whenever the platform accepts it.

Video to GIF Converter showing a converted looping GIF preview and download button
Converting a short clip to an adaptive-palette looping GIF right in the browser, with instant preview and file size readout.

Two results are worth calling out. Doubling the frame rate from 12 to 24 fps increased the file by 88%, which is close to the "double the frames, double the size" rule. Halving the duration almost halved the size. The palette change was smaller than either, but still saved 28% with no crop and no change to the frame rate.

These are single-clip results, not universal constants. A flat UI recording will compress better than a noisy gradient, and a different encoder will produce different numbers. The direction of each lever is what matters.

The browser converter on this site uses a fixed, fast palette rather than a per-clip optimized one. It is built for local, no-upload conversion, so a desktop encoder with palette optimization can still produce a smaller GIF at the same visual quality. Use the table above to decide which setting to change first, not as a promise of exact sizes.

Platform limits worth knowing

PlatformPractical limitNotes
Discord (free)~8 MBLarger files need Nitro
Slack~5–10 MBWorkspace settings vary
WordPressSite upload limitOften 2–10 MB unless configured
EmailUnder 1 MB idealMany clients block GIFs
X / Twitter~15 MBGIFs are converted to video

Always test the actual upload rather than trusting a blog post, because limits change. A good default target is under 5 MB for chat and under 2 MB for web pages.

GIF or video? Choose the right format

GIF is convenient but inefficient. For anything longer than about six seconds or larger than 720 px, a short MP4 or WebM will be dramatically smaller and higher quality. Modern browsers autoplay muted, looping video as well as they autoplay GIFs.

A repeatable export workflow

  1. Trim the source to the shortest clip that tells the story.
  2. Export a frame at 10–12 FPS.
  3. Resize to 480 px wide (or 320 px for chat).
  4. Reduce the palette to 128 colours and disable dithering for UI content.
  5. Check the loop point and trim any duplicate frames at the end.
  6. Verify the file size against the target platform.

You can do the conversion locally with the Video to GIF Converter. The video stays on your device; nothing is uploaded. If you need to cut the clip first, use the Video Trimmer.

Common mistakes

Fast ruleIf the GIF is longer than six seconds or wider than 720 px, make it a video instead.

Sources

Frequently asked questions

Why are GIF files so large?

GIF stores every frame as a separate image with a 256-colour palette and no motion prediction, so size grows quickly with frame count, dimensions, and colours.

What frame rate should I use for a GIF?

10-12 FPS is enough for most UI demos and reaction GIFs. Our test showed 24 fps was 88% larger than 12 fps on the same clip, so the trade-off is expensive.

What width should a GIF be?

320 px for chat reactions, 480-640 px for blogs and documentation, and no more than 720 px for retina demos. In our test, 640 px was 32% larger than 480 px.

Should I use GIF or video?

Use GIF for short reactions and small loops. Use MP4 or WebM for anything longer than about six seconds or wider than 720 px. In our 4-second test, the GIF was 8x larger than the WebM at the same dimensions.

How much does duration affect file size?

Directly. Our 4-second GIF at 12 fps was 728.5 KB and the 2-second version was 334.7 KB (54% smaller). Keep clips as short as the content allows.

Are my videos uploaded when making a GIF?

No. The converter runs in your browser and keeps the video on your device.

How this guide was made ZedClip guides are written and maintained by Ayoub Zeidaf. Dimensions, file limits, and platform behaviour are checked against official documentation, and articles are updated when those details change. Read our editorial policy, or contact us if something needs updating.
Try Video to GIF Converter Convert short video clips into looping animated GIFs right in your browser.
Open Tool →

More Creator Articles