GIF creation · 5 min read

How to convert an MP4 to a GIF

Quick answer

To convert an MP4 to a GIF, add the file to an MP4-to-GIF converter, select up to 30 seconds, choose a frame rate and width, then convert and download. GIF can’t keep every colour or the audio, but a High quality setting with per-frame palettes keeps the result looking close to the original.

Animated GIF of a paper plane crossing a purple sunset landscape, converted from an MP4 test clip.
Converted from our MP4 test clip: 3 seconds, 400 px wide, 12 fps, on the Smaller file setting.

Key takeaways

  • GIF can’t be truly lossless from MP4: it drops audio and reduces each frame to 256 colours.
  • Frame rate and width set your file size. Each can multiply it by about 2.5×.
  • Quality makes a big difference to size: High was 4× larger than Smaller file in our test.
  • If your destination accepts video, staying with MP4 keeps the most quality.

How do you convert an MP4 to a GIF?

  1. Add your MP4

    Open MP4 to GIF and drop in an MP4 or M4V file. The video is decoded by your browser, and it’s never uploaded.

  2. Select the part you want

    Enter Start and End times, or use “Start at playhead” and “End at playhead” while you play it. You can select up to 30 seconds.

  3. Set frame rate and width

    Try 15 fps and 480 px, which keeps motion smooth at a sensible size. The tool shows the frame count and output dimensions.

  4. Choose a quality level

    Use High for the closest match to your video. Step down to Medium or Smaller file if you’re aiming for a small file.

  5. Convert and download

    Press Convert to GIF. Check the preview and size, and use “Adjust settings” to try again without reloading the video.

The GifRush MP4 to GIF tool with a 16-second, 1280 by 720 clip loaded. It’s set to start at 0 and end at 5 seconds, 15 frames per second, 480 pixels wide and High quality, for 75 frames at 480 by 270.
The real MP4 to GIF converter, with a 5-second selection from our 720p test clip.
The conversion result: a sunset animation labelled dusk-flight.gif, 1.40 MB, 480 by 270, 75 frames, 15 fps, 5 seconds, with download and adjust settings buttons.
The result: a 5-second clip became a 1.40 MB GIF on High quality.

Can you convert MP4 to GIF without losing quality?

Not entirely, and any tool that promises otherwise is overselling. An MP4 can show millions of colours and carry audio. A GIF is limited to 256 colours per frame and has no sound. What you can do is keep the loss hard to see:

  • Start with the best source. A re-compressed copy brings its blockiness with it.
  • Use per-frame palettes. GifRush builds a separate palette for each frame, so colours can follow the scene.
  • Keep the width modest. Sharp detail at a smaller size looks better than a large, blurry GIF.
  • Choose clips that suit GIF. Clean graphics and steady shots survive better than grainy, shifting gradients.
The same frame at three quality settings: High at 1.16 MB, Medium at 554 KB and Smaller file at 299 KB. Differences are subtle at this size.
Actual output frames from each quality level. The file sizes differ far more than the pictures do.

How resolution, frame rate and compression affect the result

We measured each one on the same clip, changing one setting at a time:

Three size multipliers: going from 10 to 25 frames per second costs 2.4 times the size; going from 320 to 640 pixels wide costs 2.5 times; going from the Smaller file setting to High costs 4 times.
What each setting costs, measured with our MP4 to GIF converter.
Measured GIF size for a 5-second clip on High quality
Width10 fps15 fps25 fps
320 px574 KB859 KB1.34 MB
480 px978 KB1.40 MB2.29 MB
640 px1.40 MB2.08 MB3.33 MB
Measured GIF size by quality level, at 480 px and 12 fps for 5 seconds
QualitySizeHow it saves space
High1.16 MBUp to 256 colours, no pixel reuse
Medium554 KBUp to 192 colours, reuses near-identical pixels
Smaller file299 KBUp to 96 colours, reuses more pixels

One takeaway surprised us. Quality was the most powerful setting, with a 4× difference and only a modest change in how it looked. So if you’re over a size limit, try a lower quality level before shrinking the picture. These numbers come from one test clip, so yours will differ. For length, see how long a GIF can be.

Fixing common MP4 to GIF problems

Problems and fixes
ProblemLikely causeFix
The video won’t loadYour browser can’t decode that codecTry another browser, such as Safari for HEVC files
The GIF is too bigToo long, wide or fastDrop quality first, then frame rate and width, or compress it
Motion looks choppyFrame rate is too lowTry 12–15 fps and a shorter clip
Sky or skin looks stripedColour limitUse High quality, or choose a different moment
Clip is over 30 secondsThe tool’s length limitUse the Long GIF Maker, or split the clip

Have a video in another format? Video to GIF also takes WebM and MOV, and our guide to making GIFs from video has advice on choosing clips. If you meant to go the other way, this is how to convert a GIF to MP4.

Frequently asked questions

How do I convert an MP4 to a GIF?

Open an MP4 to GIF converter, add your file, select up to 30 seconds, set the frame rate, width and quality, then click Convert to GIF and download the result.

Can I convert MP4 to GIF without losing quality?

Not completely. GIF is limited to 256 colours per frame and has no audio. High quality settings and per-frame palettes keep the visible loss small, especially on short, clean clips.

How do I make my MP4 to GIF file smaller?

Shorten the clip, lower the quality setting, and reduce the frame rate and width. In our test, the Smaller file setting cut the GIF to a quarter of the High quality size.

Does an MP4 to GIF conversion keep the sound?

No. The GIF format can’t store audio, so the sound is dropped. If you need to keep it, stay with MP4.

What is the best frame rate when converting MP4 to GIF?

About 15 frames per second for most clips, or 10 to save space. Use 20 to 25 only for fast action, because going from 10 to 25 made our test GIF 2.4 times larger.

How do I convert a GIF back to MP4?

Use a GIF to MP4 converter. It usually gives a much smaller file, but it can’t restore colours lost when the GIF was created, so keep your original MP4 if you can.

Sources

  1. Graphics Interchange Format, Version 89a (W3C archive of the CompuServe specification)
  2. Replace animated GIFs with video for faster page loads (web.dev)