Skip to content
ImageRuns in your browser

MP4 to GIF

Convert MP4 to GIF and turn an H.264 clip into a shareable loop that needs no player.

Upload
Single file · 100 MB max
Privacy
Nothing is uploaded
Cost
Free · no sign-up · no watermark

Loading tool…

The tool is loading its code on your device. This happens once and is cached for later visits.

Processed entirely on your device

Your file is read, transformed and re-encoded inside this browser tab using JavaScript. There is no upload endpoint — nothing leaves your machine, nothing is stored, and the result is created as a local object URL that disappears when you close the page.

Overview

About the MP4 to GIF

Convert MP4 video to GIF free online. H.264 MP4 plays in every modern browser, so frames are sampled locally — choose span, frame rate and size, then download.

MP4 is where video lives: phone cameras, screen recorders, exports from every editor. GIF is where short moments get shared: chat, comments, documentation, slides. An MP4 to GIF conversion is the bridge between the two, and this MP4 to GIF converter runs entirely in your browser.

Why MP4 to GIF converts more reliably than anything else

H.264 in an MP4 container is the baseline codec combination of the web — the one every browser, phone and smart TV ships. That means the decode step of an MP4 to GIF conversion never depends on optional codecs, and a file that plays in your media player will sample here too — which is why an MP4 to GIF converter is the most dependable video route on this site.

Settings that matter in an MP4 to GIF conversion

  • Span first. Isolate the moment with the start and stop fields before touching anything else; the cap is 20 seconds.
  • Width second. 480 px keeps UI and faces legible; 320 px for chat-sized loops.
  • Frame rate last. 10 fps for movement, 6–8 fps when little changes between frames.

An MP4 to GIF worked example

Take twelve seconds of screen capture, saved as 1920 × 1080 H.264, and ask for the default 10 fps at Medium. Twelve seconds at ten frames is 120, which is over the 90-frame budget, so the sample step widens from 100 ms to 12 ÷ 90 = 133 ms and the delay is written as 130 ms. You get 90 frames, each 480 × 270, playing back over about 11.7 seconds — the whole clip, slightly choppier than it was, still at the right speed.

Now trim it to the four seconds that actually matter. Four times ten is forty frames, comfortably inside the budget, so the rate you asked for is honoured exactly: 40 frames at 100 ms, four seconds of animation, and less than half the bytes of the version above. Trimming beats every other MP4 to GIF setting available, because it reduces the frame count and the total pixel count in one move.

If you need the twelve seconds and the smoothness both, the only remaining lever is width. At Small the same 90 frames are 320 × 180 instead of 480 × 270 — 57,600 pixels per frame rather than 129,600 — which is the difference between a file that fits a chat window and one that does not.

Container, codec, and how to tell them apart

The .mp4 extension says nothing at all about whether an MP4 to GIF conversion will succeed. Inside the wrapper sits a video codec, and browsers ship only some of them:

  • H.264 (AVC) — the baseline of the web. Every browser on every platform decodes it, so these files always work here.
  • HEVC (H.265) — what newer iPhones, iPads and many cameras write by default. Browser support is patchy and partly dependent on hardware decoding, so the same file may convert on one machine and be refused on another.
  • AV1 — increasingly common from modern encoders and screen recorders. Well supported on desktop, much less so on older phones.

There is a one-second test that settles it: drag the MP4 into an empty browser tab. If it plays, the MP4 to GIF conversion will work here, because the sampling uses exactly the same decoder your tab just used. If the browser offers a download instead of a picture, the codec is missing and the file needs re-exporting as H.264 first.

What an MP4 to GIF conversion will never do

No audio, because the format has nowhere to put one. No more than 256 colours per frame, and no transparency in the file this tool writes — anything transparent is flattened onto white before it is quantised. Gradients band, footage dithers, and files are large for what they show. Those are the format's 1987 constraints, they apply to every MP4 to GIF conversion equally, and they are the price of playback literally everywhere.

Private MP4 to GIF conversion

Every MP4 to GIF conversion on this page samples the clip locally: the video is seeked through the browser's H.264 decoder, painted frame by frame onto a canvas and encoded with gifenc, and the source file never leaves your machine. There is no upload endpoint, no queue and no account — which matters for product demos, bug reproductions and anything unreleased. An MP4 to GIF tool that works this way is as private as a media player, and considerably quicker than a website that wants the file first.

Step by step

How to use the MP4 to GIF

  1. Drop an .mp4 file onto the upload area; its duration and resolution appear immediately.

  2. Set the start and stop seconds around the moment you want to loop.

  3. Pick a frame rate and output width — 10 fps at 480 px is the usual sweet spot.

  4. Press Convert to GIF and download the result once sampling finishes.

Why use it

Benefits and common use cases

What this tool is good for, and what it deliberately does not try to do.

The most reliable source format

H.264 in an MP4 container is the one codec combination every browser ships, so MP4 sources decode everywhere — no codec roulette, no refused files.

Frame-accurate spans

Start and stop are entered in seconds against the video's own timeline, and the estimate recalculates as you type — so the loop begins where you asked, and you know its frame count and running time before sampling starts.

Private and queue-free

Sampling runs in your tab against a local object URL. There is no upload, no transcoding queue and no email address between you and the file.

Questions

Frequently asked questions

Short, honest answers about quality, limits and privacy.

My MP4 will not convert — why?

MP4 is a container, and some MP4 files carry codecs browsers do not ship — HEVC from newer phones and cameras, AV1 from recent encoders. If the browser cannot play the file then neither can this tool, and the conversion stops with that explanation rather than a spinner. Re-exporting as H.264 fixes it every time.

What settings keep the GIF under a platform's limit?

Chat platforms cap uploads anywhere between roughly 8 MB and 25 MB, so aim well under the smallest of those. For a five-second loop that means 320–480 px wide at 8–10 fps. Width is the strongest lever by a distance: halving it quarters the pixel count, so the same clip at 320 px is about a quarter of its size at 640 px. Trimming the span comes second, because it cuts frames and pixels at once.

Does the audio carry over?

No. GIF has no audio track at all — it is a silent image sequence by definition. If the sound matters, the clip should stay a video.