How to Convert a Video to a GIF (and a GIF Back to Video)
You have a three-second clip — a reaction, a product demo loop, a bit of screen capture — and you want it to play automatically everywhere without anyone tapping a play button. That is exactly what a GIF is for. The catch is that GIFs are a 1987 image format pretending to be video, so converting a clip well means making smart trade-offs about length, frame rate, size, and dimensions. Do it carelessly and you end up with a 40 MB "GIF" that lags in chat apps. Do it deliberately and you get a crisp, lightweight loop that plays in Slack, Discord, GitHub comments, and email.
This guide walks through both directions. First, turning a short MP4 or MOV into a clean GIF you can actually share. Then the reverse — taking a heavy GIF someone sent you and converting it back to MP4 to slash the file size, which is what every modern platform secretly does behind the scenes anyway. We will cover doing it free in your browser with FileChange (nothing uploads), plus the honest pros and cons of the built-in tools on Windows and Mac, and dedicated apps.
No account, no watermark, no 30-second-clip paywall. Let's get into it.
Why a GIF, and why GIFs get so big
A GIF loops forever, plays inline without controls, and works literally everywhere — that universal compatibility is its superpower. But the format pays for that with size. GIF stores each frame as a separate image limited to a 256-color palette, with no real inter-frame video compression. A modern video codec like H.264 only stores what changed between frames; GIF essentially re-describes the whole picture over and over. That is why a five-second clip that weighs 600 KB as an MP4 can balloon to 8 MB or more as a GIF.
The practical consequence: you control GIF size with three levers. Length (keep it under about 5–6 seconds), dimensions (480 pixels wide is plenty for chat and social), and frame rate (10–15 fps reads as smooth motion for most clips while halving or thirding the frames you'd capture at 30 fps). Nail those three and your GIF stays shareable. Ignore them and you get the dreaded multi-megabyte file that platforms quietly refuse to autoplay.
One honest caveat before you start: GIFs cannot do partial transparency or sound, and gradients can look banded because of the 256-color ceiling. If your clip is a smooth sky, a fade, or anything with subtle color, expect some posterization. That is a limitation of the format itself, not of any particular converter.
Convert a video to a GIF free in your browser (FileChange)
FileChange runs the conversion entirely on your own machine. It loads FFmpeg compiled to WebAssembly (FFmpeg.wasm) directly in the browser tab, so your video is decoded and re-encoded locally — the file is never uploaded to a server. It is free, needs no signup, adds no watermark, and there is no hard file-size cap (you'll just see a gentle warning around very large files).
Here is the flow. Open the MP4 to GIF converter (or the MOV to GIF page if your clip came from an iPhone or QuickTime). Drag your clip onto the drop zone. The first time you run a video job, the page fetches the FFmpeg engine — about 30 MB — so give it a moment on that first conversion; subsequent ones are quick. When it finishes, download your GIF. That's the whole thing.
Under the hood, FileChange targets sensible defaults for sharing: it scales the output to roughly 480 pixels wide using the high-quality Lanczos filter and samples around 10 frames per second, which keeps the file lean while preserving smooth-enough motion. The single biggest quality decision is still yours, though, and you make it before you upload: trim your clip down to just the moment you want. A tight 3-second loop will always beat a 12-second clip you hoped to shorten later. Trim first in any video app, then convert.
Because everything happens on-device, this is also the safe choice for anything sensitive — a screen recording with account details, a private moment, internal footage. It physically cannot leave your computer through FileChange, which is something most "free online GIF maker" sites cannot claim.
Convert a GIF back to MP4 to shrink it
This is the trick most people don't know: the fastest way to make a heavy GIF light is to stop using GIF. Convert it to MP4 and you'll routinely cut the file size by 80–95%, because H.264 actually compresses motion. This is the exact reason Twitter/X, Reddit, and Discord transparently convert uploaded GIFs to video — what you think is a GIF on those platforms is almost always an MP4 or WebM playing on a loop.
To do it in FileChange, open the GIF to MP4 converter, drop in your bloated GIF, and download the result. As with the forward direction, it runs locally through FFmpeg.wasm — re-encoding the frames with the libx264 codec at a balanced quality level. If you specifically need a web-native format with an alpha channel option, the WebM route is available too; MP4 wins on raw compatibility across phones, messengers, and old devices.
The one thing you lose is autoplay-anywhere and the no-controls inline look in a few contexts that only accept image files (some email clients, certain wiki uploaders). If your destination accepts video — and most modern ones do — converting GIF to MP4 is almost always the right call. Smaller, sharper, and it'll actually play.
The built-in and free-app options (honest pros and cons)
Windows Photos and the Clipchamp editor that ships with Windows 11 are great at trimming and exporting video, but neither exports a GIF directly — you'll trim there and then convert the MP4 elsewhere. On a Mac, Preview and QuickTime are the same story: excellent for trimming and basic edits, no native MP4-to-GIF export. So on stock operating-system tools, the realistic workflow is "trim natively, convert in the browser."
For dedicated control, two names come up constantly. ScreenToGif (free, open-source, Windows) is fantastic if you're capturing screen activity and want frame-by-frame editing and palette control before exporting. The desktop FFmpeg command-line tool gives you total power — you can generate a custom palette for noticeably better color than a one-pass conversion — but it's a developer tool with a learning curve and an install step. FileChange essentially gives you FFmpeg's engine without the terminal.
Then there are the countless "online GIF maker" sites. They work, but read the fine print: many upload your video to their servers, impose clip-length limits on a free tier, stamp on a watermark, or push you toward a paid plan. The trade-off you're making there is privacy and friction for a slightly more guided UI. If your clip is at all private, prefer a tool that processes on-device.
Getting the best-looking GIF: practical tips
Trim ruthlessly. Length is the number-one driver of file size and quality. Every extra second is dozens more full frames. Cut to the exact loop point before converting and your GIF gets both smaller and punchier.
Right-size the dimensions. A GIF destined for a chat message or a README does not need to be 1080p. Something in the 360–480 px wide range looks great inline and keeps the file tiny. If your source is huge, downscaling is your friend — it's the cheapest size win you have.
Pick clips that suit the format. GIF loves high-contrast motion, text, UI, and cartoons. It struggles with subtle gradients, film grain, and rich photographic color because of the 256-color palette. If your clip is gradient-heavy and looks banded, that's the format talking — converting it to MP4 instead will preserve the color far better.
Loop intentionally. A GIF that ends where it began feels seamless; one with a hard cut feels broken. Trim so the last frame flows into the first, and your three-second loop will look intentional rather than clipped.
Frequently Asked Questions
What's the maximum length of video I can turn into a GIF?
There's no technical hard limit in FileChange — but there's a practical one. Because GIF stores every frame as a full image, anything beyond roughly 5–6 seconds tends to produce an unwieldy file that chat apps and social platforms won't autoplay. If you want a longer clip to stay shareable, keep it as MP4 instead of forcing it into GIF. Trim to the key moment first; that single step does more for quality than any setting.
Will my video be uploaded to a server?
No. FileChange converts entirely in your browser using FFmpeg compiled to WebAssembly. Your clip is decoded and re-encoded on your own machine and never leaves it. That makes it safe for screen recordings, private footage, or anything you wouldn't want sitting on a stranger's server. The only network activity is a one-time ~30 MB download of the conversion engine on your first video job.
Why is my GIF so much bigger than the original video?
Because GIF doesn't compress motion the way video codecs do. H.264 (MP4) only stores what changes between frames, while GIF re-describes essentially the whole frame each time and is capped at 256 colors. A clip that's under a megabyte as MP4 can easily be 8–10 MB as a GIF. Shrink it by trimming the length, reducing the width to ~480 px, and lowering the frame rate — or skip GIF and convert to MP4.
How do I make a GIF smaller without losing too much quality?
Three levers, in order of impact: cut the length, reduce the dimensions (480 px wide is plenty for sharing), and lower the frame rate to around 10–15 fps. If after all that it's still too heavy, the real answer is to convert the GIF to MP4 — you'll typically cut the size by 80–95% while keeping it crisp, which is exactly what platforms like X and Discord do automatically.
Can I convert a GIF to MP4 and keep it looping?
Yes. The loop is a playback behavior, not part of the file, so set your player or platform to loop the MP4. Most modern destinations — social feeds, messengers, web pages with the loop attribute — autoplay short MP4s on a loop by default, which is precisely why they convert your uploaded GIFs to video behind the scenes. You get the looping look at a fraction of the size.
Does converting to GIF keep the audio?
No — the GIF format has no concept of sound, so any audio in your video is dropped during conversion. If the audio matters, keep the clip as a video format like MP4 instead. If you only need the visuals to loop silently (most GIF use cases), this isn't a problem at all.
Related converters & guides