Start from the space it has to fill
Look up the width of the place the GIF will sit in and enter that, with the proportions locked. A GIF shown at 480 px gains nothing from being 1280 px wide; it only loads slower. For custom emoji and stickers, check the app's own rules first: Slack custom emoji must be under 128 KB with at most 50 frames, Discord's under 256 KB, and iMessage stickers come in 300, 408 and 618 px squares. The sources are in our GIF size limits table.
Change the shape without stretching
Unlock the ratio when the new box has a different shape, then choose how the picture fits. Fit inside keeps everything visible and leaves the rest transparent, which is right for a wide GIF in a square emoji slot. Fill covers the whole box and crops from the center, so check that nothing important sits near the edges. Stretch uses the full picture but changes its proportions, which is noticeable on faces, circles and text.
Use pixel art mode for sprites
Smooth scaling blends neighboring pixels. That looks natural for photos and video, but it turns a sharp sprite into a blurry one. Pixel art mode copies pixels without blending, so edges stay hard. It looks best at whole multiples: 200% is an even doubling, while 150% has to repeat some pixels and not others. Keep the original file and resize from it each time, because scaling a resized copy again loses detail.
Smaller dimensions, smaller file
Halving both sides leaves a quarter of the pixels. In our test a 960 × 960 px sticker of 488 KB became 169 KB at 480 px and 32 KB at 128 px. Enlarging goes the other way: the file grows and no detail is added. If the dimensions are already right and only the file is too big, the GIF compressor lowers colors and frame rate instead.