How Long Can a GIF Be? The Real Limits in Seconds (Discord, X, GitHub, Slack)

“How long can a GIF be?” has two answers. The file format itself has no real limit. The places you post GIFs do, but their limits are in megabytes and frames, not seconds. So the useful answer is how many seconds fit, and that depends on the GIF’s width and how much of the picture moves.

The GIF format has no time limit

A GIF is a series of frames, each with its own display time. The format doesn’t cap the number of frames, and a single frame can stay on screen for up to 655.35 seconds (the delay is stored in hundredths of a second as a 16-bit number). On paper, a GIF can run for hours.

What stops you is file size. GIF compresses each frame more or less on its own, with only simple tricks for the parts that don’t change, so the file grows with every second you add. The same clip as a GIF is usually many times bigger than as an MP4. In practice, anything over 10 seconds is a long GIF.

How many MB does one second take?

For How to reduce GIF file size, I made the same 4.5-second clip again and again with different settings. At 10 frames per second and quality 100, it came out like this:

Width Size at 4.5s Per second (rough)
900px 13.98MB about 3.1MB
720px 9.12MB about 2.0MB
540px 5.20MB about 1.2MB
400px 2.96MB about 0.66MB

The clip is syrup being poured over a dessert in a café, where the whole frame moves a little. A screen recording, where most of the screen stays still, takes much less per second. Handheld footage where everything shakes takes more. Read the numbers below as a typical camera clip.

How long a GIF can be on each platform

Dividing each upload limit by those per-second sizes gives this. The limits are the ones I checked in November 2026; the linked posts have the details and where each number comes from.

Where Limit 900px 540px 400px
Discord chat (free) 20MB about 6s about 17s about 30s
X (Twitter) 15MB, 350 frames about 4.8s about 12s about 22s
GitHub issues and READMEs 10MB about 3s about 8s about 15s

X has a second limit: 350 frames. At 10 frames per second that’s 35 seconds, so at these widths you run into 15MB first. At a smooth 25 frames per second, though, the frame limit stops you at 14 seconds.

Chat windows and timelines shrink GIFs to fit anyway, so I think 540 pixels is plenty for all three. That’s the column to look at if you’re not sure.

Emoji are a different scale

Animated emoji are measured in kilobytes, so the answer drops to a couple of seconds. I made these at 128×128 pixels:

Where Limit What fit
Slack emoji Under 128KB recommended, up to 50 frames 2s · 10 fps · quality 70 (116KB)
Discord emoji 256KB (most sources) 2s · 10 fps · quality 90 (164KB)

To fit 4.5 seconds into Discord’s 256KB, I had to drop to 5 frames per second and quality 70 (190KB). For Slack, even that was too big.

How long can a GIF be on Discord?

This is the version of the question I see most, so here’s the short answer. Since August 14, 2026, free accounts can send attachments up to 20MB. At 540 pixels wide, a typical clip fits about 17 seconds; at 400 pixels, about 30 seconds. A screen recording fits longer. Discord doesn’t limit the length itself, only the file size.

How long should a GIF be?

Fitting the limit isn’t the same as looking good. The GIFs that work best are 3–10 seconds: a reaction, one step of a tutorial, one bug reproduced. Past that:

  • They load slowly, especially on phones
  • Every extra second costs the same amount of space, so you start trading away width or quality to fit
  • Some platforms turn GIFs into video for playback anyway (X is known to)

If your clip needs 30 seconds or more, a video is usually the better choice. GIF or video? covers how I decide.

Making a longer GIF fit

If a GIF comes out over the limit, cut in this order:

  1. Length. Keep only the part that matters with Trim GIF. The size drops in proportion, and nothing else gets worse.
  2. Width. In the converter, move the quality slider one step toward Low-spec. Width and frame rate go down together.
  3. Quality. In Custom settings, lower quality to 80–70.

The converter has no time limit of its own. It runs in your browser, so a very long video is limited by your device’s memory instead: it lowers the frame rate first, then the width, and tells you when it does.

Summary

  • The GIF format has no length limit; file size is what stops you
  • A typical camera clip takes about 1.2MB per second at 540px (10 fps)
  • At 540px: Discord (20MB) about 17s · X (15MB) about 12s · GitHub (10MB) about 8s
  • Emoji: around 2 seconds at 128×128
  • For most GIFs, 3–10 seconds works best

These limits change from time to time. When they do, I’ll update the numbers here along with the platform posts.

If this helped, sharing the link would mean a lot.
I run this site on my own.

💬 Comments

Questions or feedback are always welcome. (Sign in with GitHub to comment.)