videotogif.ai

Format page

MP4 to GIF

An MP4 becomes a GIF the moment you drop it here, with the audio discarded, the frame rate dropped to something GIF can actually time, and the palette rebuilt from your own footage. Nothing is uploaded, so there is no one minute cap and no 200MB ceiling.

Starting the converter

One moment. The engine downloads only when you pick a file.

What actually changes when an MP4 becomes a GIF

MP4 is a container, usually holding H.264 video and AAC audio, with motion compensation doing most of the compression work. GIF has none of that. It stores indexed frames with a palette of at most 256 colours, a per-frame delay in centiseconds, and no audio track at all. Three things are therefore lost every single time, and no converter avoids them: the sound, the colour depth, and the smooth frame timing.

Knowing that up front changes the settings you pick. You are not trying to preserve the MP4. You are choosing which 256 colours, which frame rate and which pixel width give the best picture inside a much smaller box.

H.264, HEVC and which of them your browser will preview

Because the conversion runs in the tab, the MP4 is decoded here rather than on a server somewhere. That is the entire reason there is no size limit. The decoder doing it is ffmpeg compiled to WebAssembly, shipped with the page, so the codec support below is about one thing only: whether the preview pane can show you the clip while you set up the conversion. All of these convert.

  • H.264 (AVC). Previews in every browser on every platform. The vast majority of MP4 files in circulation, including anything exported by a phone editor, a screen recorder or a video tool.
  • HEVC (H.265). What an iPhone records by default in High Efficiency mode. Previews in Safari on Apple hardware, in Chrome and Edge on Macs, and on Windows only when the HEVC Video Extension is installed. Elsewhere you get a placeholder instead of a preview and the conversion runs as normal.
  • AV1 and VP9 in an MP4 container. Rare but increasingly common from newer exporters. Both preview in current Chrome, Edge and Firefox.

If a file will not preview, press convert anyway. You lose the ability to scrub through the clip while choosing a trim, and that is the whole cost. The trim handles still work, because the length comes from the file rather than from the video element.

The right defaults for 4K and 60fps footage

Most MP4 files people convert are far bigger than the GIF needs. A 4K 60fps phone clip carries roughly sixteen times the pixels and four times the frames of a 480px 15fps GIF, and every one of those extras costs bytes without adding anything you can see in a chat window.

Start at 480px wide and 15fps. Raise the width to 640 if the GIF is going in a README or a blog post where it will be viewed large. Raise the frame rate to 20 or 25 only if the subject moves fast enough that 15 looks like a slideshow. Downscaling from 4K is not a compromise here, it is an improvement: it averages sensor noise away before the palette has to find colours for it.

The size math, roughly. A 30 second 1080p MP4 is around 60MB. At 480px and 15fps it lands near 6MB as a GIF. Cut it to eight seconds and it is near 1.6MB. Run that through the compressor at 96 colours and it is under 1MB. Length is doing most of the work in that chain, not the quality settings.

Settings by where the GIF is going

DestinationSettings that workThe limit you are working around
Slack480px, 15fps, 128 colours1 GB per file, but the inline preview is small so width buys you nothing
Discord480px, 15fps, 128 colours10 MB on a free account, 500 MB on Nitro
X (Twitter)480px, 15fps, 128 colours15 MB on mobile, 5 MB on the web, 1280x1080 maximum
Email signature320px, 10fps, 64 coloursKeep it near 1 MB or clients start stripping it
GitHub README640px, 12fps, 128 colours10 MB per file, and readers are usually on a wide screen
Website heroUse WebP insteadA seventh to a quarter of the size, supported everywhere since 2020

GIF still too big? A long MP4 at 640px will overshoot every one of those limits. Drop the finished file into the GIF compressor and pull it under a Discord, Slack or email limit without re-encoding from the source.

How this compares to the MP4 converters you have used

CloudConvert ranks near the top of this search with a page that has one drop box, a short paragraph describing what MP4 and GIF are, and no FAQ, no export settings and no explanation of what its defaults do. Zamzar delivers the finished GIF by email, which is an odd way to receive a three second clip. Adobe Express refuses inputs longer than a minute and asks for an account before it lets you download. Movavi's page is an article selling desktop software.

None of them shows the output size before conversion, which is why the usual workflow is convert, discover it is 14MB, then go and find a compressor. That loop is what the estimate above the convert button removes.

MP4 to GIF questions

How do I convert MP4 to GIF without losing quality?

You will lose some, because GIF holds 256 colours per frame and MP4 holds millions. What you control is where the loss lands. Build the palette from your own clip in a first pass rather than using a fixed palette, output at 480 to 640 pixels wide instead of full resolution, and pick Sierra2 4a dithering for gradients or none for flat graphics. That combination is the closest an MP4 gets to looking the same as a GIF.

Is there a limit on the MP4 size or length?

None from us, because the file is never uploaded. Adobe Express caps the input at one minute, ezgif at 200MB with a duration ceiling that shrinks as you raise the frame rate, and FreeConvert at 1GB before the paid tier. Here the ceiling is your own memory, and trimming before you convert keeps you far away from it.

Will an HEVC MP4 work?

It depends on the machine, not on us. Browsers decode H.264 everywhere. HEVC, also called H.265, decodes on Apple hardware and on Windows machines that have the HEVC extension installed. If the preview stays black or the file refuses to load, that is a decoder gap. Re-export it as H.264 or convert on a Mac or iPhone.

Does the GIF keep the sound from my MP4?

No. GIF has no audio track, so the audio in your MP4 is discarded and there is no setting that changes it. This surprises people more than any other part of the job. If sound matters, export a muted MP4 or a WebM instead, which most chat apps autoplay like a GIF anyway.

My MP4 is 30fps. Should the GIF be 30fps?

No. GIF stores a delay per frame in hundredths of a second, and 30fps needs 3.33 of them, which is not a whole number. You end up at 33.3 or 25fps depending on the encoder. Pick 15 for talking and screen capture, 20 or 25 for fast motion. The frame rate page has the full table.

What settings should I use for a 4K MP4?

480px wide at 15fps. A 4K MP4 downscaled to 480px produces a cleaner GIF than one exported at 1080px, because the palette has four times fewer pixels to cover. Downscaling also averages away sensor noise, which is one of the worst things you can hand a palette.

How big will the GIF be?

The estimate above the convert button tells you before you commit, and it refits itself to your clip after the first render. As a rule of thumb, a 30 second 1080p MP4 of about 60MB lands near 6MB as a 480px 15fps GIF, and near 2.5MB after compression. Length drives that number more than anything else.

Can I convert several MP4s at once?

Not in one action. The encoder is single threaded in the browser and running several at once would make all of them slower, so files are converted one at a time. In practice you drop the next one as soon as the last download starts.

Related

The same engine handles every other format. Start from the video to gif converter if your source is not an MP4, read the GIF frame rate reference before you pick a frame rate, or go straight to the high quality GIF settings if the last one you made looked muddy.

Other formats

AVI, MKV, AVCHD, MPEG, 3GP and anything else ffmpeg can decode work on the video to gif converter as well. These pages exist because the advice differs by format, not because the tool does.