Optimizing GIF file sizes for web & social media
GIF stores every frame as a palette image of up to 256 colors, so size grows quickly with dimensions, frame count and color detail. Keep most web GIFs under 2–5 MB; many platforms reject or re-compress larger files.
To shrink a GIF: reduce its width (480 px is plenty for chats), lower the frame rate, shorten the loop, and reduce the palette. Flat graphics compress far better than photographic scenes with gradients and noise.