aimakegif Free forever
← Blog

How-to

How to Convert MP4 to GIF

To convert an MP4 to a GIF, choose a short moment from the video, pick a width and a frame rate, and let a converter turn those frames into a looping picture. In our video to GIF maker this takes four steps and happens inside your browser, so the video is not uploaded anywhere.

The settings you choose matter more than the converter you use, because a GIF grows fast. In our test, a 3 second clip became a 1.4 MB GIF, and the same moment as a small MP4 was about 28 KB. The numbers below show how each setting changes that.

Convert an MP4 to a GIF in four steps

  1. Open the tool and choose your video. Open the video to GIF maker, make sure the Video tab is selected, then click the box and pick your MP4, or drop the file on it.
  2. Choose the moment. A preview and a timeline appear. Drag the handles to set where the GIF starts and ends, or type the numbers in the Start and Length boxes. The GIF can run for up to 10 seconds.
  3. Pick the size and speed. Choose a width of 320, 480 or 640 px and a frame rate of 8, 10, 12 or 15. You can add one line of caption if you want it.
  4. Press Make GIF. Check the preview, then use Download GIF to save the file.

Only the picture is kept. A GIF cannot carry sound, so the audio of your MP4 is left out.

What we measured

We loaded one 1280×720 MP4 (H.264, 34 seconds long) into the tool in desktop Chrome, set the start to 2 seconds and made a GIF with each setting below. The sizes are the real files the tool produced.

Width Frame rate Length Frames GIF size
480 px 10 fps 3 s 30 1.4 MB
320 px 10 fps 3 s 30 799 KB
640 px 10 fps 3 s 30 2.3 MB
480 px 8 fps 3 s 24 1.1 MB
480 px 15 fps 3 s 45 2.1 MB
480 px 10 fps 1 s 10 485 KB
480 px 10 fps 6 s 60 2.8 MB
320 px 8 fps 2 s 16 430 KB

Compared with the 480 px, 10 fps, 3 second GIF (1.4 MB):

  • Width. 320 px was about 45% smaller, and 640 px was about 60% larger.
  • Frame rate. 8 fps was about 20% smaller, and 15 fps was about 50% larger.
  • Length. One second was about a third of the size, and six seconds was about twice the size.

This is one clip. A busier video, such as confetti or running water, will give bigger files, and a calm one will give smaller files. Treat the table as a guide to the direction of each change, not as a promise for your video.

Why the GIF is so much bigger than the MP4

An MP4 stores a few full pictures and then only the differences between frames. A GIF has no such shortcut: every frame is its own picture, limited to 256 colours. To get a rough comparison we cut the same 3 seconds from the same video with ffmpeg and encoded a 480 px MP4 without sound. It was about 28 KB, against 1.4 MB for the GIF. That test used our own ffmpeg settings, so it shows the size of the gap rather than a rule.

If the place you are posting to accepts video, an MP4 or WebM is almost always the lighter choice. Use a GIF when you need a picture that loops and plays on its own everywhere.

Which settings to start with

  • For a chat message or a forum post: 480 px, 10 fps and 2 to 3 seconds is a good place to begin.
  • For the smallest file: 320 px, 8 fps and as short a clip as you can. Our test GIF at these settings with 2 seconds was 430 KB.
  • For smooth, sharp motion: 640 px or 15 fps, and keep the clip short. Both make the file much larger.

Once you have a GIF, you can shrink it further. Our guide on how to reduce GIF file size explains the order to try things in, and the GIF compressor does it in the browser.

If your MP4 will not load

The tool uses your browser to read the video, so what works depends on the browser. MP4 files that use H.264 and WebM files open in most current browsers. If you see a message that the video cannot be read, convert it to MP4 (H.264) and try again. MOV files work in some browsers and not in others.

Frequently asked questions

Is my MP4 uploaded to a server?

No. The video is read by your own browser and the GIF is built on your device.

How long can the GIF be?

Up to 10 seconds. Your MP4 can be longer: choose which 10 seconds to use with the timeline or the Start and Length boxes.

Does the GIF keep the sound?

No. GIF files cannot carry sound, so only the picture is converted.

Can I add text to the GIF?

Yes. You can add one line of caption. It is drawn at the bottom of every frame.

Which width and frame rate can I choose?

Width is 320, 480 or 640 px, and the height follows the shape of your video. Frame rate is 8, 10, 12 or 15 frames per second.

Can I make a GIF from several pictures instead?

Yes. Use the image to GIF maker to join several pictures into one looping GIF.