Stax

…

Tools

GIF Compressor: Under 15 MB for X, Free, No Upload

Shrink a GIF for X: 15 MB on the web, 5 MB on mobile or a size you choose. Also turns a short video into a size-capped GIF. Your file is not uploaded.

Last updated:

Drop a GIF or a short video here, or click to browseGIF, MP4, MOV, WebM — a video is turned into a GIF of the size you pick🔒 Processed on your device — never uploaded

The GIF will be at or under this size. Counted in megabytes of 1,048,576 bytes.

It is made narrower than this if it has to be, never wider than the original.

Seconds or MM:SS

A shorter GIF is the surest way to get under a small limit.

What X's own pages say (rules last read 2026-10-15)

X's help page on GIFs and pictures says an animated GIF can be up to 5 MB on mobile and up to 15 MB on the web. Read it on X

X's Media Studio has its own list of limits for GIFs (a file of up to 15 MB and a picture up to 2048 × 2048 pixels, as we read it): it is a separate upload path from the normal composer. Media Studio FAQ

Not made by, affiliated with or endorsed by X. Passing the size limit does not promise X will accept the file.

Was this tool useful?

Use the tool above and you can rate it here.

Shrink a GIF to fit X's size limit

A GIF from a screen recording can easily be bigger than the limit X puts on animated GIFs. This tool shrinks a GIF to a size you choose, with X's web limit (15 MB) and X's mobile limit (5 MB) ready to pick. You can also give it a short video and it makes a GIF that fits. It makes up to 4 attempts, using smaller settings each time, until the file is under your limit, shows what it used, and says plainly if it could not get there. It runs in your browser, so your file is not uploaded to us, and it is not made by or connected to X.

What X's own pages say (read 15 October 2026)

X's help page on posting GIFs and pictures says an animated GIF can be up to 5 MB on mobile and up to 15 MB on the web. The same page gives 5 MB for photos. X's Media Studio is a separate upload path with its own list of limits for GIFs, including a largest picture size, so its limits can differ from the normal composer's. Platforms change these pages, and this tool cannot promise that X will accept a file that is under the size: the date in the heading is when the numbers were last read, so check X's page if it matters.

Which limit to choose

If you post from the X website, 15 MB is the figure to use. If you post from the phone app, use 5 MB. A GIF under 5 MB is under both, so choose that one when you do not know where it will be posted or when you want to be safe. The tool counts a megabyte as 1,048,576 bytes, and when a GIF has to be made smaller, each attempt aims about 10% below your limit, because the size of the result does not follow the settings exactly. For any other site with a size limit, choose Another size and type it in.

How it makes the GIF smaller

Each attempt builds a fresh colour palette from the clip and redraws every frame with it, which is the way FFmpeg's palettegen and paletteuse filters are used to make a GIF. Then it works out how far over the limit the result was and lowers three things: the frame rate, the width (it never enlarges the picture) and the number of colours, and it switches to a plainer dither pattern as the colours come down. For a GIF the frame rate never goes above the original's; for a video the tool does not read the frame rate and starts at 15 frames per second or less. The first attempt is planned from an estimate (the size of a GIF, or the picture size and length of a video), and each later one from the real size of the one before. It makes at most 4 attempts and stops as soon as one is under your limit. It will not go below 96 pixels wide, 5 frames per second or 16 colours, and treats those as its lowest settings. A GIF has no sound, so any sound in a video is dropped.

Turning a video into a GIF that fits

Give it a video file (the box names MP4, MOV and WebM) and it makes a looping GIF from it; if the engine cannot read the file's codec, it says so. For a video the default is the first 5 seconds at no more than 480 pixels wide, and you can change where the clip starts, how long it runs and how wide it may be. A GIF's size grows with its width, height, frame rate and length, so for a small limit a few seconds at a modest width is usually what fits. To pick the exact moment visually, cut the clip first with the video trimmer, or make a GIF with the settings you choose yourself with Video to GIF. To go the other way, the GIF to video converter turns a GIF into an MP4.

When it cannot reach the size

Some clips cannot be made small enough: a long clip, a large picture with motion everywhere, or photographs and gradients all tend to make big GIFs. When that happens the tool does not pretend. It shows the smallest GIF it made, how far over the limit that is, the settings of every attempt, and what to change: a shorter Length is the surest fix, then a smaller width. You can still download the smallest one. Another route is to post the clip as a video instead, because a video file is usually much smaller than the same clip as a GIF; the video compressor and the compress video to a size tool shrink one.

What this tool does not do

It does not edit the picture: no text, stickers, speed change or cropping, and no frame-by-frame editor. The GIF it makes always loops forever. Very long GIFs and very large videos take a while, because the work is done by your own device and not by a server, and a phone may run out of memory on a large file. It makes a plain GIF, not an animated WebP or APNG.

Sources and checks

  • X Help: posting GIFs and pictures: the page the GIF limits come from: up to 5 MB on mobile and 15 MB on the web, as read in the research of 15 October 2026.
  • FFmpeg documentation: palettegen and paletteuse: the filters that build the colour palette (max_colors, and a mode that counts only the part that changes) and draw each frame with it (dither, and a mode that redraws only the changing rectangle).

Frequently asked questions

How do I compress a GIF for X?
Drop your GIF in the box, choose X on the web or X on mobile, and press Compress GIF. The tool makes up to 4 attempts, with smaller settings each time, until the file is under the limit, and then you download it. If it cannot get there it tells you and suggests what to change.
What is X's size limit for GIFs?
X's help page on GIFs and pictures says up to 5 MB on mobile and up to 15 MB on the web (read 15 October 2026). X's Media Studio is a separate upload path with its own limits. X changes its pages from time to time, so check X's help page if the exact number matters to you.
Should I choose the web or the mobile size?
Choose the one that matches where you will post. If you are not sure, choose X on mobile: a GIF under 5 MB is also under the 15 MB web limit, so it fits both, though it may be smaller and less sharp.
Can I turn a video into a GIF for X?
Yes. Drop a video file (the box names MP4, MOV and WebM), choose the limit, and the tool makes a looping GIF from the start of the video, 5 seconds by default, no wider than 480 pixels. You can change the start, the length and the widest it may be. The sound is dropped, because a GIF has none.
Why did it say it could not reach the size?
The tool never goes below a smallest width, frame rate and colour count, and it makes at most ${MAX_ROUNDS} attempts, then keeps the smallest result. A long clip or a large moving picture can still be over the limit. Make the Length shorter, choose a smaller width, or post the clip as a video, which is usually much smaller than a GIF.
Will the GIF look worse?
Yes, a smaller file means giving something up: it may play with fewer frames per second, be narrower and use fewer colours. Each attempt lowers the frame rate and the width, and the colours are stepped down when a large cut is needed or the earlier attempts were not enough. It shows the settings it used so you can see what changed. If a GIF is already under the limit and you have not shortened or narrowed it, the tool says there is nothing to compress.
Does a GIF under the limit always upload to X?
No. The tool checks the size against the figure X publishes, but it cannot promise how X will treat a file, and X can change its rules. If the upload is refused, try a smaller size, a shorter clip, or the mobile limit, and check X's help page.
Is my file uploaded, and is it free?
Your file is not uploaded. The work happens in your browser using a WebAssembly build of FFmpeg, and only the engine itself (about 31 MB) is downloaded the first time. It is free, with no watermark and no account. This site is not affiliated with X.

Related tools