Back to blog
GIF compression2026-07-095 min read

How to compress a GIF so you can upload it to X, Discord, Gmail, and Outlook

Start with the platform limit, then use the matching target size. X, Discord, Gmail, and Outlook do not need the same settings, but most GIFs only need one quick pass plus a width or frame-drop adjustment.

GIF Compressor

Set the target size for the platform first, compress once, then adjust width or frame dropping only when needed.

Open GIF Compressor

Step 1

Start by checking where you want to upload the GIF. X allows up to 15 MB on web and 5 MB on mobile, Discord is usually 10 MB, and Gmail or Outlook attachments are usually planned around a 25 MB ceiling.

Step 2

Match the target size to the platform: 5 MB for X mobile, 15 MB for X web, 10 MB for Discord, and usually 10 to 15 MB for Gmail or Outlook before you fall back to 25 MB.

Step 3

In most cases, just click compress once. If the GIF is still too large, then keep adjusting width and frame dropping.

Step 4

If you have several GIFs for the same platform, open Batch GIF Compressor.

This guide uses GIF Master's GIF Compressor

Use it to shrink oversized GIFs so they are easier to upload to X, Discord, Gmail, and Outlook.

Open GIF Compressor

Check the platform limit before choosing the target size

Start with the platform you plan to upload to. X allows animated GIFs up to 15 MB on web and 5 MB on mobile, Discord is usually 10 MB, and Gmail or Outlook attachments are usually treated as a 25 MB ceiling.

You can turn that into settings right away: use 5 MB for X mobile, 15 MB for X web, 10 MB for Discord, and usually 10 to 15 MB for Gmail or Outlook. Leave the original dimensions alone first and only change width if the first pass is still too large.

Set the target size for the platform

Current GIF

Preview

Replace GIF
GIF
File
campaign-demo.gif
Size
18.6 MB
Dimensions
1280 x 720
Frames
96

Compression settings

Tune size, dimensions, and frame dropping before starting compression.

Target size

The tool tries to get under the target size, but some GIFs may stop shrinking first.

No target size
1 MB
2 MB
3 MB
5 MB
10 MB
Custom target

Resize mode

Original size
Resize by width
Resize by height

Drop frames

Keep all frames
10%
20%
30%
40%
50%
60%
Compress GIF

Already know the upload destination?

Open the compressor and set the target size before the first pass.

Open GIF Compressor

Start with one compression pass using the platform settings

If you are uploading to X mobile, start at 5 MB. If it is for X web, enter 15 MB. If it is for Discord, start at 10 MB. If it is for Gmail or Outlook, try 10 to 15 MB first.

Most of the time you do not need to touch width or frame dropping immediately. Just click Compress GIF once, then check the first result before changing anything else.

Compress right after setting the size

Current GIF

Preview

Replace GIF
GIF
File
campaign-demo.gif
Size
18.6 MB
Dimensions
1280 x 720
Frames
96

Compression settings

Tune size, dimensions, and frame dropping before starting compression.

Target size

The tool tries to get under the target size, but some GIFs may stop shrinking first.

No target size
1 MB
2 MB
3 MB
5 MB
10 MB
Custom target
15
MB

Resize mode

Original size
Resize by width
Resize by height

Drop frames

Keep all frames
10%
20%
30%
40%
50%
60%
Compress GIF

If it is still too large, adjust width and frame dropping

Try width settings by platform: 480px is a good first move for X mobile, 600px works well for X web plus Gmail or Outlook, and 720px is a reasonable first try for Discord before dropping to 600px. Let the height scale automatically so the GIF keeps its original ratio.

If width alone is not enough, increase frame dropping next. Starting around 20% or 30% is usually a clean first step. Change one major setting at a time so you can see what actually pushes the GIF closer to the size you need.

Width and frame dropping settings

Current GIF

Preview

Replace GIF
GIF
File
campaign-demo.gif
Size
18.6 MB
Dimensions
1280 x 720
Frames
96

Compression settings

Tune size, dimensions, and frame dropping before starting compression.

Target size

The tool tries to get under the target size, but some GIFs may stop shrinking first.

No target size
1 MB
2 MB
3 MB
5 MB
10 MB
Custom target

Resize mode

Original size
Resize by width
Resize by height

Target width

240px
360px
450px
480px
750px
Custom
600
px

Drop frames

Keep all frames
10%
20%
30%
40%
50%
60%
Compress GIF

If several GIFs are going to the same platform, switch to batch compression

If you have several GIFs that all need to go to X, Discord, or email, do not repeat the same settings one file at a time.

Open Batch GIF Compressor and reuse one set of target size and width settings across the whole group.

Batch compression entry

Need to compress multiple GIFs?

Open the batch GIF compressor to apply one compression workflow across multiple GIF files and download the finished results together.

Open batch GIF compressor

Need to process several GIFs?

Jump straight to Batch GIF Compressor when several GIFs need the same platform settings.

Open Batch GIF Compressor

Start compressing a GIF

Set the target size for the platform, compress once, then adjust width or frame dropping only if the file still needs more work.

Open GIF Compressor

Related guides

This article is designed to support the core tool pages below. After reading the workflow, jump directly into the matching tool.

Optimize GIFs

GIF Compressor

Compress animated GIFs toward a target size with resizing, frame dropping, and browser-side optimization settings.

GIF Compressor

Batch optimizer

Batch GIF compressor

Compress multiple GIF files in one workflow for uploads, documentation, and shared asset cleanup.

Batch GIF compressor

Transparent GIF

Remove GIF background

Remove solid-color GIF backgrounds in your browser, manually clean up tricky frames, and export a transparent GIF without uploads.

Remove GIF background

Create GIFs

Video to GIF

Turn videos into GIFs, then add text, images, arrows, emoji, shapes, and mosaic in the same browser editor.

Video to GIF