Skip to content

MP4 to GIF Converter

Turn an MP4 into a looping GIF that autoplays in Slack, Discord, GitHub READMEs, emails and docs. Trim to the moment you want, choose a width and frame rate, and convert in your browser: the video is never uploaded and the GIF has no watermark.

  • No upload — 100% private
  • Free forever
  • No watermark
  • No sign-up

100% private — files are processed on your device and never uploaded.

Advertisement

How to convert MP4 to GIF

  1. 1

    Drop your MP4 file into the converter above, or click to browse. Nothing is uploaded — the file stays on your device.

  2. 2

    Adjust the settings (width, frame rate, and trim). Tip: Start with the defaults (480 px, 12 fps) and trim to just the moment you need. GIF size grows with width × height × frames, so a shorter clip is the cheapest way to a smaller file.

  3. 3

    Click “Convert to GIF”. The conversion runs locally in your browser — larger files take longer, and a progress bar keeps you posted.

  4. 4

    Preview the result and hit Download to save your GIF file.

Settings at a glance

SettingOptionsDefaultEffect on GIF size
WidthOriginal, 800, 640, 480, 320 px480 pxPixels per frame scale with width squared: 480 px has 36% of the pixels of 800 px. Height follows the aspect ratio; smaller videos are never upscaled.
Frame rate8, 10, 12, 15, 20, 24 fps12 fpsFrames stored per second: 24 fps stores twice as many frames as 12 fps.
TrimStart and end time (seconds or m:ss)Whole videoFrame count grows in direct proportion to the clip's length.
ColorsAutomaticCustom palette, up to 256 colorsBuilt from your clip, applied with Bayer dithering.
Looping and soundAutomaticLoops forever, no audioGIF has no audio track, so the sound is dropped.

Why convert MP4 to GIF?

Video files need a player; GIFs just play. That's why GIFs still rule chat apps, documentation, pull requests, and marketing emails: they autoplay silently, loop forever, and need no click. Converting MP4 to GIF makes any clip embeddable almost anywhere.

Color is where most GIFs fall apart, because GIF allows at most 256 colors. Instead of a generic palette, this converter first builds a palette of up to 256 colors from your own clip (FFmpeg's palettegen, weighted toward the parts that move) and then maps every frame to it with ordered Bayer dithering. Gradients and skin tones band far less than with a one-size-fits-all palette.

MP4 vs GIF at a glance

MP4GIF
TypeVideo container (H.264 + AAC)Animated image
CompressionLossy, very efficientMax 256 colors per palette (lossy for video), then lossless LZW
Transparency—Yes (1-bit)
AudioYes (AAC)No
CompatibilityUniversal — every device, browser, and editorUniversal — autoplays in chats, docs, emails
Best forSharing, social media, editing, playback anywhereShort loops, reactions, tutorials, README demos

About the formats

MP4 MPEG-4 Part 14

MP4 is the most widely supported video format in the world. Built on the H.264 codec with AAC audio, it plays on every phone, browser, TV, and editing app, and offers an excellent balance of quality and file size. When in doubt, MP4 is the safe choice for sharing video.

GIF Graphics Interchange Format

GIF is the internet's animation workhorse: it autoplays silently everywhere — chat apps, docs, README files, emails — with no video player needed. The trade-offs are a 256-color palette, no audio, and file sizes that grow quickly with resolution and frame rate.

Frequently asked questions

How do I convert MP4 to GIF?

Open the ANFX MP4 to GIF converter, drop in your MP4, optionally enter a trim start and end time, choose a width (320, 480, 640 or 800 px, or Original) and a frame rate (8 to 24 fps), then click Convert to GIF and download the result. The conversion runs in your browser with FFmpeg compiled to WebAssembly, so the video is not uploaded and the GIF carries no watermark.

How do I make a high-quality GIF from an MP4?

Choose Original or 800 px width and 20 or 24 fps, and trim the clip to only the seconds you need so the file stays manageable. The ANFX converter always builds a custom palette of up to 256 colors from your own footage and applies it with Bayer dithering, which keeps colors closer to the video than a generic palette. A frame rate higher than the source video's own adds no extra smoothness, and the converter never upscales, so Original is the sharpest width available.

Can I convert MP4 to GIF losslessly?

No converter can turn a typical MP4 into a truly lossless GIF, because a GIF frame holds at most 256 colors while video uses millions, so reducing the colors always discards some information. GIF's own LZW compression is lossless, so nothing further is lost once the colors are mapped. The closest you can get with the ANFX converter is Original width at 24 fps; if you need every color preserved, keep the clip as a video.

What is the maximum video length or file size for MP4 to GIF?

The ANFX MP4 to GIF converter sets no limit on video length or file size. The MP4 is loaded into your browser tab's memory and converted on your device, so the practical limit is your device's memory and patience. In practice the GIF itself is the constraint: every second adds frames, so long clips produce very large GIFs. Use the trim start and end fields to convert only the part you need.

Why is my GIF bigger than the MP4 it came from?

MP4 (H.264) stores most frames as the changes from the previous frame, while GIF stores each frame as a palette image with only simple compression. The same clip as a GIF is therefore often much larger than the MP4. To shrink a GIF, trim it shorter, lower the width (480 px has about a third of the pixels of 800 px) or lower the frame rate (12 fps stores half the frames of 24 fps).

What settings work best for Discord and Slack?

Start with the defaults of 480 px width and 12 fps, and trim to the few seconds that matter. After converting, the ANFX tool shows the GIF's file size next to the original's, so you can compare it with the upload limit of your Discord or Slack plan; if it is too big, shorten the trim, pick 320 px, or drop to 8 or 10 fps and convert again.

Does the GIF loop, and does it keep the sound?

The GIF is set to loop forever, which is how GIFs behave in chat apps, browsers and docs. It has no sound, because the GIF format cannot store audio; the MP4's audio track is dropped during conversion. If you need the audio too, share the MP4 instead or extract the sound with the MP4 to MP3 converter.

Is this MP4 to GIF converter really free?

Yes. The ANFX MP4 to GIF converter is free to use with no sign-up, no watermark added to the output, and no cap on how many files you convert. It is paid for by the ads on the page, not by you.

Are my files uploaded to a server?

No. The ANFX MP4 to GIF converter runs FFmpeg compiled to WebAssembly inside your browser tab, so your MP4 file is read and converted on your own device and is never sent to ANFX or anyone else. The only thing downloaded is the conversion engine itself, which makes the tool suitable for private or confidential files.

Is there a file size limit?

The tool sets no file-size or length limit of its own. The whole MP4 file is loaded into your browser tab's memory and converted there, so the practical ceiling is your device's available memory: large files take longer, and very large ones can fail on phones or low-memory computers. Trimming does not reduce the memory needed to load the file, but it does shorten the conversion and shrink the output.

Why does the first conversion take a moment to start?

On the first conversion your browser downloads the conversion engine (FFmpeg compiled to WebAssembly, about 31 MB) from a public CDN. The browser caches it, so later conversions start much faster. The engine runs on a single CPU thread, so conversion speed depends on your device and on the length and resolution of the file.

Related converters

See all converters on the free online tools page.

MP4 and GIF explained

Not sure which format you actually want? These guides cover the trade-offs.

Making videos? Grab free assets too

ANFX offers a library of free 4K motion graphics, overlays, and stock video — no attribution required.

Browse free stock video

Advertisement