GifWrench

Compress a GIF for X (Twitter): Size and Dimension Limits

For X, keep animated GIFs below 5 MB on mobile or 15 MB on web; resize and compress a copy, then confirm it loops before selecting it.

Updated

Why an X GIF can fail below the size limit

File size measures the encoded download, while dimensions and frame count describe the work needed to decode it. A long animation with little changing background may compress well yet still be difficult to process. A short, noisy clip can have the opposite problem: modest dimensions but too many bytes.

Official sources checked November 9, 2026: X's photo and GIF help gives 5 MB on mobile and 15 MB on web for animated GIFs. Its media upload best practices lists 15 MB for API animated GIFs, plus recommendations of no more than 1280 × 1080 pixels, 350 frames, and 300 million total pixels calculated as width × height × frames. These describe different upload paths; use the current composer or integration's error if it is stricter.

The help page also says X supports looping GIFs and may show a single-play animation as a still. That is a playback issue, not a reason to keep reducing the byte count. Inspect the loop setting separately from compression.

Step by step: prepare a GIF for the composer

  1. Choose mobile or web before exporting. If you will hand the file to someone posting from a phone, make the smaller mobile version rather than assuming they can use the web allowance.
  2. Inspect the source. Open Split GIF into Frames if you need to inspect individual moments. Check for long holds, accidental blank frames and details that become unreadable when reduced.
  3. Crop away distractions. Use Crop GIF to keep the action. Do not crop so tightly that a moving cursor, hand or label exits the canvas later in the loop.
  4. Set a reasonable canvas. In GIF Resizer, preserve the aspect ratio. A suggested starting width of 480 pixels is an editing choice, not an X minimum or guaranteed ideal size. Keep small text legible.
  5. Compress with headroom. Use Compress GIF. For mobile, its smaller target presets are useful starting points, but verify the saved bytes because its MB presets use binary units. Choose a lower preset if you are close to the platform's boundary.
  6. Check looping. In Reverse & Loop GIF, select Keep and Loop forever if the source only plays once. Save the result and reopen it before choosing it in the composer.

Use the preview to check acceptance without publishing. This guide does not require posting publicly. If an integration rejects a file that works in the native composer, consult that integration's own upload rules rather than treating the native result as proof that every API path works.

Common pitfalls

Applying a video specification to a GIF. A video duration allowance does not override the GIF requirements. Renaming a GIF to .mp4 is not conversion, and GifWrench's MP4 converter is not live yet. Use another video-capable editor if your workflow genuinely requires video output.

Shrinking dimensions without checking frames. A dimension change can reduce total pixel work, but it does not remove frames. The frame splitter exports PNGs; it does not automatically rebuild a shorter animated GIF. Trimming or rebuilding requires an animation editor.

Upscaling a blurry source. More output pixels cannot recover missing detail. Start from a clean original, use a tighter crop, or remove text that only works when viewed at full-screen size. Inspect faces and thin outlines before choosing stronger loss.

Assuming acceptance means unchanged quality. A platform preview can process the file differently from your browser. Keep the local original for future edits and compare the processed preview at the size readers will actually see.

Related tools and next steps

Pair Compress GIF with GIF Resizer, and use Reverse & Loop GIF only when playback needs fixing. For broader troubleshooting, read GIF too big to upload; for the distinction between real losslessness and visual similarity, read reduce GIF size without losing quality.

Frequently asked questions

Is the X GIF limit 5 MB or 15 MB?

Official pages checked November 9, 2026 distinguish mobile at 5 MB from web at 15 MB; API GIF documentation lists 15 MB. The current upload path may be stricter.

What dimensions should I check?

X API guidance checked November 9, 2026 recommends at most 1280 by 1080 pixels, 350 frames and 300 million total pixels. File size alone is not sufficient.

Why does a small GIF appear static on X?

Check whether it loops. X help says a GIF that plays only once can display as a still. Also compare the downloaded original with the composer preview before changing compression.

Free GIF tools

More guides