Skip to main content

GIF Size Limits for Discord, Slack, X, and Gmail

Compare GIF size limits for Discord attachments, Slack emoji, X posts, and Gmail. The table lists each platform's guidance and official source. Check your account and upload method too: attachment limits, emoji requirements, and mobile limits can differ.

CompressGIF team · Published:

Prepare a GIF for your platform

Platform limits and recommended compression targets are different. Check the limit shown in your account before uploading.

Discord

Message attachment limits depend on your subscription and may vary during experiments.

  • Discord lists 20MB for free accounts, 50MB for Nitro Basic, and up to 500MB for Nitro attachments. Check the limit displayed in your account.
  • These are message attachment limits. Custom emoji and other server assets have separate requirements.
  • The Discord compressor starts with a 1MB target for a smaller sharing file; Discord's upload limit is separate.
Slack

Custom emoji need a small file and a short animation; file size alone is not enough.

  • Slack recommends square images with transparent backgrounds and files under 128KB for custom emoji.
  • Animated GIF emoji can have up to 50 frames. CompressGIF preserves frames, so a GIF over that count needs editing in another tool.
  • Your workspace may restrict who can add custom emoji. A smaller file will not change your permissions.
X / Twitter

The GIF upload allowance differs between mobile and the website.

  • X lists an animated GIF limit of 5MB on mobile and 15MB on the web.
  • These figures describe posting through X. Upload integrations have their own API requirements; do not assume one universal API limit from the mobile allowance.
  • A successful upload does not guarantee autoplay for every viewer. Playback settings and the viewing client can affect how a GIF appears.
Gmail

For personal Gmail accounts, the attachment allowance applies to the total attached to a message.

  • Personal Gmail accounts allow up to 25MB of attachments in one email. Add the sizes of all attached files, not just the GIF.
  • When attachments exceed the limit, Gmail uses a Google Drive link. Work and school accounts can have limits set by their administrator.
  • An attached GIF and an image placed in the message body are different presentation choices. Test the message in the email clients your recipients use.

Last verified:

Identify what the limit measures

Before comparing numbers, identify the object being limited. A per-file allowance tells you how large one upload may be. An email attachment allowance can apply to several files together. A custom emoji requirement can combine byte size with a frame-count rule.

Next, identify your account and client. A paid attachment allowance does not apply to every account, and a website can accept a larger GIF than a mobile posting flow. Advice that omits those conditions can be wrong for your particular upload even when the quoted number appears in official documentation.

If the size is within the limit but the upload fails, check image dimensions, frame count, and permissions. Use the linked official guidance to confirm the requirements for that upload.

Discord: check the attachment tier and upload context

Discord distinguishes attachment allowances by subscription, and individual accounts can see experimental differences. Check your current tier and the allowance shown when you attach a file. Do not assume an old number from a forum describes every free or paid account today.

A GIF shared as a message attachment is not the same thing as a server emoji or another profile or server asset. Use the rules for the actual upload control you are using. If you only want a compact reaction in chat, a smaller target can be useful even when your account permits a much larger file.

Use the Discord compressor's 1MB preset for a compact chat reaction. Free compression accepts source GIFs up to 10MB each, even if your Discord account permits larger attachments.

Slack emoji: check the animation as well as the bytes

Slack's custom emoji guidance includes recommendations for file size, a square shape, and a transparent background, plus a maximum frame count for GIFs. A smaller file does not necessarily have fewer frames. Treat those checks separately.

CompressGIF can reduce the size of an existing GIF while preserving its frames and timing. If the source exceeds Slack's frame count, shorten or re-export it elsewhere first. The tool does not automatically turn a rectangular picture into a square or remove its background.

Also check whether your workspace allows you to add custom emoji. A missing permission cannot be solved by trying a smaller preset. These emoji-specific rules should not be treated as the allowance for every Slack message attachment.

X: match the allowance to mobile or web posting

X, formerly Twitter, documents different GIF allowances for mobile and web posting. Choose the one for the client you will actually use. A file accepted by the website can still be too large for a mobile upload.

If another service posts on your behalf, consult that integration's current requirements. The mobile posting allowance is not a universal rule for all API uploads. Likewise, file size alone does not establish how a post will autoplay for every viewer.

After compressing, inspect captions and the busiest moving details. A successful upload is only part of the task; the animation still needs to communicate its intended message.

Gmail: count the complete set of attachments

For a personal Gmail account, the attachment allowance applies to the files attached to one email together. Add the GIF to the sizes of documents, images, and other files you are including. Reducing one animation may not be enough if the combined total remains too high.

Work and school accounts can use administrator-defined limits. Gmail uses a Drive link when attachments exceed the applicable allowance, which changes how the recipient accesses the file. Check that access if you choose to send a link.

An inline animation and a file attachment also serve different purposes. Send a test message when playback or placement matters, and keep essential instructions in readable text rather than relying entirely on the moving image.

Compress a GIF