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.
Convert MP4 to GIF and turn an H.264 clip into a shareable loop that needs no player.
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
Overview
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.
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.
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.
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:
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.
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.
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
Drop an .mp4 file onto the upload area; its duration and resolution appear immediately.
Set the start and stop seconds around the moment you want to loop.
Pick a frame rate and output width — 10 fps at 480 px is the usual sweet spot.
Press Convert to GIF and download the result once sampling finishes.
Why use it
What this tool is good for, and what it deliberately does not try to do.
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.
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.
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
Short, honest answers about quality, limits and privacy.