If you have ever dropped a GIF into Discord and watched it bounce off the 10MB limit, the fix is almost never "compress harder". It is picking the right numbers before you export.

Why GIFs get huge

GIF has no inter-frame compression. A video codec stores the difference between frames; GIF stores a full indexed image for every single frame. So the file size is roughly:

frames x width x height x (palette cost) 

Which means three levers, in order of impact.

1. Length

This is the big one. Going from 10 seconds to 4 seconds cuts the frame count by 60% at the same frame rate. Trim to the moment that actually matters. Almost every GIF that is too big is also too long.

2. Frame rate

Most people leave it at 30 FPS because that is what the source video was. You rarely need it.

  • Below 12 FPS: visibly choppy
  • 15-20 FPS: the sweet spot for reaction clips and UI demos
  • 24+ FPS: smooth, but you pay for every extra frame

Dropping 30 to 15 halves the file.

3. Dimensions

GIF pays for every pixel in every frame, so resolution is expensive in a way it is not for MP4.

  • 480px wide: good default
  • 320px wide: fine for chat, still readable text
  • 720px+: only if someone will actually look at detail

What else helps

  • Avoid grain and slow gradients. A 256-colour palette handles flat colour well and noise badly. A fade to black can cost more than the action before it.
  • Crop before you scale. Cutting dead space at the edges is free quality.
  • Do not re-encode a finished GIF twice. Each pass stacks dithering artefacts. Go back to the source clip.

A concrete recipe

For a Discord-safe GIF from a phone video:

Setting Value
Length under 5 seconds
Frame rate 15 FPS
Width 480px
Palette 128-256 colours

That typically lands between 2 and 5 MB.

Doing it on Android

On desktop, Ezgif or ffmpeg with a palette filter will do all of the above.

On a phone most apps either hide these settings or stamp a watermark on the output, which is the reason I ended up building my own: GIF Maker. It exposes trim, frame rate, speed and a compression pass before export, and it does not watermark.

Whatever tool you use, the order is the same: trim first, then frame rate, then dimensions. Compression settings are the last 10%, not the first.