Video to GIF Converter

Turn an MP4 video into a looping GIF, right in your browser.

or drop files here

MP

MP4 Format

MPEG-4 Part 14

A container format that can hold video, audio, subtitles and metadata. H.264 video with AAC audio is the most common combination.

  • Online video and streaming
  • Phone and camera recordings
  • Plays on nearly every device
GI

GIF Format

Graphics Interchange Format

A raster image format from CompuServe. It uses a palette of at most 256 colors per frame and supports simple animation.

  • 256-color palette per frame
  • Simple looping animation
  • 1-bit transparency
  • Opens in any web browser

How to convert video to GIF

Follow these steps to convert MP4 to GIF online.

    1

    Choose your MP4 file, or several at once.

    2

    Wait while the converter turns each file into GIF.

    3

    Download each new GIF file. Your original file isn't changed.

What to know before converting video to GIF

  • The GIF keeps 15 frames a second, whatever the video's frame rate.
  • The longer side is at most 480 px, and a smaller video isn't scaled up.
  • Each GIF image uses a palette of at most 256 colors, so colors are reduced.
  • The GIF loops forever and has no sound.
  • FFmpeg runs in your browser, so the video isn't uploaded.

About video to GIF

What is an MP4 file?

The MPEG-4 Part 14 specification, ISO/IEC 14496-14, defines MP4 and dates from 2003. A typical MP4 holds H.264 video and AAC audio, yet containers of this kind take AV1, VP9, MP3 and Opus too. The ISO Base Media File Format underlies MP4, and QuickTime is where that format came from. An MP4 consists of nested boxes, which QuickTime calls atoms.

Video uses the endings .mp4 or .m4v, while MPEG-4 files with audio alone often end in .m4a. The registered media types are video/mp4 and audio/mp4, and every major browser plays MP4. It turns up in online video, recordings from phones and cameras, and shared clips. Its properties include subtitles and chapters, and the usual video codecs are H.264, H.265 and AV1.

Programs that open MP4 files

Mobile, Windows, Mac and Linux

  • VLC: plays MP4, MOV and 3GP among its input formats. On phones there are VLC for Android and VLC for iOS, and the container's contents decide what they can decode.

Linux, Mac and Windows

  • mpv: plays on the desktop and lets you select among its audio and subtitle streams.
  • ffplay: the FFmpeg project's own player, which comes with FFmpeg itself, alongside the ffmpeg tool.

Windows and Mac

  • Adobe Premiere: imports the container if a suitable decoder is installed.

Windows

  • Windows Media Player: opens MP4 files.

Mac

  • QuickTime Player: can play MP4 files.

Web

  • Firefox and Chrome: play supported MP4 directly. The codec inside still matters.

MP4 and GIF compared

  • Origin: CompuServe introduced GIF in 1987. GIF89a, from July 1990, introduced extensions covering transparency, timing between frames, comments and application data.
  • Color: palettes in a GIF image are capped at 256 colors. Transparency designates a single palette entry as fully clear, and nothing is partly transparent.
  • Compression: GIF uses lossless LZW coding for its images. Unisys started charging for LZW licenses in 1994. In the US the patent ran out in 2003; the European and Japanese ones followed in 2004.
  • Animation: many images can be stored in one GIF, each with its own delay set in hundredths of a second.
  • Sound: an MP4 can carry audio. The GIF made here holds pictures only.
  • Uses: short looping animations, simple graphics, icons, reaction images and stickers suit GIF.
  • Editors: GIMP can save a multi-layer image as an animated GIF that loops forever, cutting the colors to 256 at most.
  • Support: All major browsers display GIF; the media type is image/gif.

Process here: on your device, FFmpeg scans the clip once to build a palette and then writes the GIF with it in a second pass. It keeps 15 frames a second and limits the longer side to 480 px, rounding both sides down to an even number. A smaller video is not scaled up. The command also deinterlaces frames marked as interlaced, and sets the GIF to loop forever. FFmpeg runs as WebAssembly in a worker in your browser, so nothing is uploaded. The page has no size or time limit of its own, and a long file simply takes as long as your device needs.

Other ways to convert MP4 to GIF

  • Microsoft Clipchamp (Windows, web): put the video in a project, click Export at the top right and pick GIF. Clipchamp offers the GIF export only for videos up to 15 seconds long and accepts MP4 among its containers.
  • FFmpeg (any platform): the command ffmpeg -i input.mp4 output.gif writes a GIF. FFmpeg's GIF muxer loops forever by default, and a frame delay cannot be shorter than one hundredth of a second. This plain command skips the palette step this page uses.

Problems with MP4 files

  • A player can't show the video: opening MP4 files doesn't guarantee that a player can decode what is inside.
  • The GIF is too heavy to post: shorten the clip before converting. Every second adds 15 images, so the file grows with its length.
  • The GIF looks grainy: each GIF image is limited to 256 colors, which can alter smooth gradients.
  • Your file isn't an MP4: the file picker takes .mp4 only, so a clip in another container needs its own converter.
  • Your video is another type: try MOV to GIF, or the WebM, AVI and MKV pages.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert a video to a GIF?

How do I turn a video into a GIF online for free?

How do I make a GIF from just part of a video?

Which video formats can I use here?

Is the GIF high quality?

Can I change the GIF's size, speed or frame rate?

How long can the video be?

Does the GIF play on repeat?

What happens to the sound?

Does the converter work on a phone?