A GIF that is too big to post is a common problem: Discord, Slack, email and most forums cap the file size, and a few seconds of video can easily reach 20 MB as a GIF. This page opens the YUIgif editor with its size controls ready, so you can bring a heavy GIF under a limit without sending it to a server.
The editor reads your GIF, rebuilds it from its frames and runs a size-aware encode. If the first result is still too large it lowers the width, frame rate and number of colors step by step, up to six attempts, until the file fits.
Add the GIF
Drop your GIF on the page, paste it, or select Choose files. YUIgif reads its frame count and timing locally so the length estimate is accurate.
Choose the target
Open Size limit and pick the cap you need: 256 KB for a Discord emoji, 2 MB for Slack-friendly loops, or 8–10 MB for Discord and X. The presets set width, frame rate and colors to match.
Trim what you do not need
Every second you remove is the most effective saving. Use Start and End to cut slow intros and repeated frames before touching quality.
Compress and compare
Select Make my GIF. The result shows the new size next to the download button and notes any automatic adjustments, so you can see exactly what changed.
A good rule of thumb is to work from the biggest saving to the smallest: trim first, then width, then frame rate, and only then colors. That order keeps the motion and the look of the original as intact as possible while the file shrinks. If you compress the same GIF more than once, start again from the original rather than the compressed copy, so quality losses do not stack up.
Tips
- Fewer colors help most on flat artwork and screen captures; photos and skin tones usually need 128 or 256.
- Dithering adds grain that costs bytes. Try None for UI recordings and Smooth for video.
- If the destination accepts video, MP4 or animated WebP export is often five to ten times smaller than a GIF of the same clip.
Frequently asked questions
How much smaller will my GIF get?
It depends on the content. Reducing width from 640 to 480 px roughly halves the pixels per frame, and dropping from 24 to 12 fps halves the frame count, so combined savings of 70–80% are common.
Will compression change the colors?
GIFs always use a palette of up to 256 colors. YUIgif builds a new palette from your frames, so colors stay close; at 32–64 colors you may see banding, which dithering can soften.
Is there a file size limit for the input?
You can load up to 128 MiB of source files. The finished GIF is capped at 10 MiB, the largest size most chat apps accept.
Are my GIFs stored?
No. Files are processed in this browser tab and disappear when you close it. YUIgif has no accounts and no upload endpoint.
Related
More tools: Convert an MP4 to a GIF · Crop an animated GIF · Put text on a GIF · Make a GIF meme · GIF maker home