MP4 to GIF
Pick an MP4, set the part you want and get a GIF. The file is read on this device and never sent.
https://flxcode.com/mp4-to-gif/
or drop it here
Your browser has to be able to play the file. MP4 (H.264) and WebM work in most.
New GIF
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.
Problem or idea? Email us
Quick start
- Choose an MP4 file. A phone video or a screen recording both work.
- Set Start and End so only the moment you need is left.
- Leave the width at 480 px for chat and email, or raise it for a larger GIF.
- Press Make GIF and download the result.
Why an MP4 and a GIF are so different
An MP4 usually holds H.264 video. It stores one full picture now and then, and for the frames between them only the changes. That is why an hour of video fits on a phone.
A GIF has no such trick. Every frame is a picture of its own, drawn with at most 256 colors. So the same clip as a GIF is much bigger, and it is worth cutting hard before you convert.
Size and delay by width and frame rate
For a 1920 x 1080 MP4, how wide the GIF is, what it costs in memory, and what delay each frame gets. Made by the tool's own code.
| GIF width | Height | Memory, 5 s at 10 fps (50 frames) | Memory, 10 s at 10 fps (100 frames) |
|---|---|---|---|
| 320 px | 180 px | 11.5 MB | 23.0 MB |
| 480 px | 270 px | 25.9 MB | 51.8 MB |
| 640 px | 360 px | 46.1 MB | 92.2 MB |
| 960 px | 540 px | 103.7 MB | 207.4 MB |
| Frame rate | First six delays | Average per frame |
|---|---|---|
| 8 fps | 130, 120, 130, 120, 130, 120 ms | 125.0 ms |
| 10 fps | 100, 100, 100, 100, 100, 100 ms | 100.0 ms |
| 12 fps | 80, 90, 80, 80, 90, 80 ms | 83.3 ms |
| 15 fps | 70, 60, 70, 70, 60, 70 ms | 66.7 ms |
| 20 fps | 50, 50, 50, 50, 50, 50 ms | 50.0 ms |
How it works
The tool plays the MP4 inside a hidden player in your browser, jumps to each time step and draws the frame on a canvas. The browser does the H.264 decoding, so only MP4 files your browser can play will work here.
The frames are then written as a GIF with a palette per frame, or one shared palette if you tick Smaller file. The player and the frames live in memory only until you leave the page.
Numbers this uses
- Default 10 frames per second and 480 px wide, the usual choice for chat and email.
- Frames per second 5 to 20, at most 300 frames, width up to 1200 px and never wider than the video.
- GIF delays are in 10 ms steps. Frame rates that do not divide 100, like 12 or 15, get delays that alternate so the speed stays right.
- Memory while making: frames x width x height x 4 bytes, stopped before 800 MB.
Limits
- Files up to 2 GB, but the part you convert is capped at 300 frames.
- HEVC (H.265) MP4 files, common from recent iPhones, play in Safari but not in every other browser.
- MOV and WebM files also work when your browser can play them. There is no sound in a GIF.
Privacy
Nothing you choose is uploaded or stored. The code that reads and writes GIFs comes from this site and runs in your browser. We count events without cookies, such as "GIF saved" (details).
FAQ
How do I convert an MP4 to a GIF?
Choose the MP4, move the Start and End sliders to the part you need, keep 10 frames per second and press Make GIF. Then download the file.
Is it free, with no watermark?
Yes. There is no sign-up, no watermark and no limit on how many you make. The work is done by your own device.
Why does my MP4 not play here?
MP4 is a container, and what is inside can differ. Browsers play H.264 almost everywhere. HEVC (H.265) plays in Safari and in some other browsers. If yours cannot play it, try Safari or convert the video to H.264 first.
How can I make the GIF smaller?
Cut the clip shorter, use 8 to 10 frames per second, lower the width and tick Smaller file. The GIF compressor on this site can trim it further.
Can I convert a long MP4?
You can open a long file, but only 300 frames are converted: 30 seconds at 10 frames per second. Pick the part you want with the sliders.
Can I convert on my phone?
Yes. The same page works in a phone browser. Keep the clip short and the width at 480 px or less, because a phone has less memory than a computer.
Will the GIF keep the audio?
No. GIF has no sound track. If you need sound, share the MP4 itself.
Is my file uploaded?
No. The file is opened, changed and saved by your browser on this device. It is not sent, stored or put in the address bar. To check, load the page, turn on airplane mode and make a GIF.
More from FLXCode
Video to GIFNew
Turn part of a video into an animated GIF. Trim, pick the frame rate and width. Runs in your browser, no upload.
GIF CompressorNew
Make a GIF smaller with fewer colors, dropped frames and a smaller size. Shows before and after. In your browser.
GIF ResizerNew
Resize an animated GIF to a new width and height, keeping timing and repeat. Runs in your browser, no upload.
GIF MakerNew
Make an animated GIF from pictures. Reorder frames, set delays, repeat and size. Runs in your browser, no upload.