FreePrivateConvert

Convert MP4 to GIF

To turn an MP4 clip into a GIF, add it below: ffmpeg in your browser converts it to a looping GIF at 12 frames per second and 480px wide. The video is never uploaded.

About converting MP4 to GIF

MP4 (.mp4) files can be converted to GIF entirely in your browser — no software to install, no file upload, and no account required. The conversion runs on a WebAssembly build of ffmpeg directly on your device.

What to expect

GIF is an old format: it can only show 256 colours and has no sound, and its files grow quickly with length. The settings here (12 fps, 480px wide, Lanczos scaling, loops forever) keep files reasonable for short clips.

  • Best for: reaction clips, short product or UI demos, loops in docs and READMEs
  • Keep it short: a few seconds works best; long clips make very large GIFs
  • Colour gradients and skies can show banding because of the 256-colour limit

Making smaller GIFs

This tool converts the whole clip, so trim the MP4 to just the part you need first. For animations on your own website, a looping MP4 or WebM is usually far smaller than a GIF at the same quality.

Technical comparison

MP4GIF
Categoryvideoimage
Compression typeLossy (H.264/H.265 video, AAC audio)Lossless (LZW, 256-color palette)
Typical file sizeModerate — a few MB per minute of 1080p video, varying with CRF/bitrateLarge for its content — no inter-frame prediction, so short clips can outweigh MP4/WebM
Transparency supportNoYes (binary only — no partial alpha)

How to convert MP4 to GIF privately

Every step below runs on a WebAssembly build of ffmpeg inside this browser tab. Your .mp4 file is never uploaded to a server — there's no network request carrying it anywhere.

  1. Add your MP4 file

    Drag and drop, or click to select, a file (.mp4). It's read straight from disk into browser memory — no upload step exists.

  2. Convert locally

    FreePrivateConvert converts it to GIF using a WebAssembly build of ffmpeg, entirely within this browser tab.

  3. Download the result

    Save your converted .gif file. It only ever existed in this tab's memory — closing the tab without downloading discards it completely.

Troubleshooting

The GIF is huge
GIF size scales with duration. Shorten the clip; halving its length roughly halves the GIF.
The GIF looks grainy
That's GIF's 256-colour limit, not a conversion error. Footage with flat colours (screen recordings, cartoons) converts more cleanly than camera footage.

Convert MP4 to GIF with ffmpeg (command line)

Prefer the terminal? This is the exact ffmpeg command this page runs for you:

ffmpeg -i input.mp4 -vf "fps=12,scale=480:-1:flags=lanczos" -loop 0 output.gif
-i input.mp4
Your MP4 file.
-vf "fps=12,scale=480:-1:flags=lanczos"
Video filter: 12 frames per second, 480 px wide with the height scaled to match, using sharp Lanczos resizing (keeps the GIF small).
-loop 0
Make the GIF loop forever.
output.gif
The GIF file to create. ffmpeg picks the container from this extension.

Don't have ffmpeg installed? You don't need it: use the converter at the top of this page. It runs the same conversion on your own device, and your file is never uploaded.

FAQ

Is my file uploaded anywhere?
No. Your file is read and processed inside this browser tab and never leaves your device. You can confirm it in your browser's developer tools: the Network tab shows no upload.
Does converting MP4 to GIF reduce quality?
Yes, noticeably: the GIF runs at 12 frames per second, 480px wide, and GIF can only show 256 colours, so gradients can band. There is no sound. Keep clips short, because GIF files grow quickly with length.
Is there a file size limit?
Yes: 500MB per file. There's no account and no limit on how many files you convert.
What's the difference between MP4 and GIF?
MP4 (MPEG-4 Part 14) and GIF (Graphics Interchange Format) store data differently. MP4: lossy (H.264/H.265 video, AAC audio). GIF: lossless (LZW, 256-color palette). GIF is a palette-limited (256 colors) image format best known for simple looping animations, supported everywhere since the early web.
Why convert MP4 to GIF?
Common uses for GIF: Short looping reaction clips; Product demo loops in READMEs/docs; Messaging and social sharing where video isn't auto-playable. Plays with zero JavaScript or <video> element — any <img> tag or messaging app renders it automatically.
What MIME type does a .gif file use?
image/gif, the standard type for Graphics Interchange Format.
What is the ffmpeg command to convert MP4 to GIF?
Run: ffmpeg -i input.mp4 -vf "fps=12,scale=480:-1:flags=lanczos" -loop 0 output.gif. This is the exact command FreePrivateConvert runs for this conversion, so you can use this page instead of installing ffmpeg: it runs the same conversion inside your browser.

Last updated

Looking for something else? Browse all conversion tools.

Related conversion tools