Optimize a GIF Online

Cut a GIF down to size in your browser with three controls that each say what they cost: fewer colours, fewer pixels, fewer frames. Nothing is uploaded.

  • حر
  • لا تسجيل
  • لا علامة مائية
  • يعمل في المتصفح الخاص بك

Optimize GIF

المحول هو ffmpeg تم تجميعه إلى WebAssembly. يتم تنزيله مرة واحدة (30 MB) عند اختيار ملفك الأول ، ثم يبقى في ذاكرة التخزين المؤقت للمتصفح.

تعد الألوان الأقل هي أكبر رافعة ، وعادة ما يكون 128 غير مرئي أثناء الحركة. يتم قطع المقياس ومعدل الإطارات بشكل أكبر عندما تحتاج إلى المزيد.

تتم معالجة ملفك بواسطة متصفحك الخاص ولا يتم تحميله مطلقًا. المحرك نفسه عبارة عن تنزيل 30 MB لمرة واحدة في المرة الأولى التي تستخدمه فيها ، وبعد ذلك يخرج من ذاكرة التخزين المؤقت للمتصفح.

كيفية استخدام Optimize GIF

  1. 1Drop your .gif onto the box above, or click it to browse.
  2. 2Lower the colour count first, then the scale, then the frame rate, and press apply after each change.
  3. 3Compare the saving printed on the row, then download the version you are happy with.

Three levers, and what each of them costs

A gif optimizer has less to work with than you might think, and a GIF is heavy for one reason: it stores a sequence of full indexed images with a compression scheme designed in the 1980s. There is no motion prediction, so a frame that differs slightly from the last still costs nearly as much as a fresh one. That leaves exactly three things to trade.

Colours come first. Each frame draws from a palette of at most 256 entries, and cutting that to 128 or 64 shrinks the file while barely showing on flat graphics, screen recordings and line art. Scale comes second and is more predictable: halving the width quarters the pixel count. Frame rate comes last, because it is the one people notice, changing how the motion feels rather than how any single frame looks.

When to stop optimising and change format

If the source is video footage, no amount of GIF optimisation will win. Every frame of a photographic scene differs from the previous one almost everywhere, which is precisely the case GIF has no answer for and modern video codecs were built around. The same clip as an MP4 is routinely a quarter of the size and looks better, and there is a GIF to MP4 page here for exactly that.

Stay with GIF when the destination needs it: an ordinary image tag that autoplays, a chat client or forum that does not handle video inline, an email template, or software old enough that a video element is not an option.

Reading the result

The saving is printed on the row after each run, so the comparison is a number rather than an impression. Change one control at a time and press apply; the point of separate levers is that you can see which one bought the reduction and which one only cost you quality.

To optimize GIF files well, change one thing at a time and keep the version that bought the most for the least. Everything runs in your browser. Files up to 500 MB are accepted, nothing reaches a server, and the engine is fetched once and cached afterwards.

الأسئلة المتداولة

Which control should I turn down first?
Colours. Most GIFs come from screen recordings or flat graphics, and those rarely need all 256; dropping to 128 is often invisible and takes a useful bite out of the file. Scale is the next strongest lever, and frame rate the one most likely to be noticed, because it changes how the motion feels rather than how it looks.
Why did my GIF barely shrink?
Because it was already optimised, or because its content works against the format. A GIF of photographic footage or heavy gradients is expensive no matter what, since every frame differs from the last in nearly every pixel. If yours is a video clip, converting it to MP4 will beat any amount of GIF optimisation.
Does optimising remove the animation?
No. Every frame is processed and written back as one looping GIF, and the frame timing is preserved unless you deliberately cap the frame rate. Capping is a real trade, not a free saving, so it is a separate control rather than something applied automatically.
How is this different from the GIF resizer?
The resizer does one thing, sets an exact output width, and is the right page when you know the pixel size you need. This one is about file size, and gives you the three levers that affect it so you can decide which quality to spend.
Is the file sent to a server?
No. It is decoded and re-encoded by your own browser. The only thing that crosses the network is the engine itself, about 30 MB, fetched the first time you use it and cached after that.

المزيد من الأدوات المجانية