I converted 11 real GIFs to MP4. Nine got much smaller. Two got larger.
"Just convert it to MP4" is the usual advice when a short loop is too big to share. It is often right, and it is not always right. I wanted a number, not a slogan, so I ran 11 real GIFs β not synthetic test cards β throu
"Just convert it to MP4" is the usual advice when a short loop is too big to share. It is often right, and it is not always right. I wanted a number, not a slogan, so I ran 11 real GIFs β not synthetic test cards β through the same H.264 settings that TinyGIF's GIF to MP4 converter uses, and I kept every file, including the ones that got worse.
I'm Danny, and I built TinyGIF. The headline result: the median change was β83.3%. Nine files shrank, usually by half to 96%. Two files grew, and both were already tiny, emoji-sized loops. If you only remember one exception, remember that one.
What I actually ran
The live tool encodes in the browser with @ffmpeg/core 0.12.10 (ffmpeg.wasm). I did not treat a browser encode as a byte-for-byte lab instrument. For this test I used a local FFmpeg 7.1.5 (Debian) build, with the filter chain and encoder flags taken from the site's mp4EncodeArgs() β the same "General" preset the page uses by default (CRF 23, no extra width cap, no forced frame-rate cap, play once, white background behind any transparency).
In outline, that is libx264 High profile, yuv420p, veryfast, +faststart, audio and subtitles stripped, and odd dimensions rounded up to even pixels. I spot-checked the outputs: H.264 High, yuv420p, and the moov atom at the front of the file.
The encoder implementation is not identical to ffmpeg.wasm, so a file you convert in the tab may differ by a small amount. The direction and the size of the changes below should still be a fair picture of what that preset does.
All 11 sources are on Wikimedia Commons, so anyone can download the same GIFs and repeat the work. I did try one other Commons file (Open access meme.gif) and dropped it: it is a single still frame, not an animation, and it would have inflated the "shrunk" column for the wrong reason.
The 11 files
Sizes below are the ones I measured on 22 November 2026. Percentages are relative to the original GIF.
| # | What it is | Canvas / frames | GIF | MP4 | Change |
|---|---|---|---|---|---|
| 1 | Character / reaction loop (YukiClip2A) | 640Γ480, 58 frames, 5.8 s | 2.02 MiB | 153.2 KiB | β92.6% |
| 2 | Screen recording (VisualEditor auto-cite) | 1084Γ532, 114 frames, 11.4 s | 3.67 MiB | 185.6 KiB | β95.1% |
| 3 | Pixel-art timelapse (monster timelapse) | 64Γ64, 27 frames, 12.2 s | 22.9 KiB | 10.9 KiB | β52.2% |
| 4 | Small pixel animation (Retro Arcade Pixel Art) | 88Γ144, 4 frames, 0.2 s | 5.5 KiB | 2.7 KiB | β51.7% |
| 5 | Photographic sequence (Elephant walking, Muybridge) | 725Γ511 β 726Γ512, 24 frames, 1.2 s | 3.79 MiB | 646.6 KiB | β83.3% |
| 6 | Emoji-sized loop (LittleRunner) | 32Γ32, 6 frames, 0.72 s | 720 B | 2.2 KiB | +218.5% |
| 7 | Small animated logo (Cryptocat 2013) | 52Γ52, 7 frames, 0.28 s | 2.8 KiB | 3.6 KiB | +29.9% |
| 8 | Smooth 3D-ish motion (Newton's Balls) | 1000Γ562, 60 frames, 4.2 s | 7.94 MiB | 353.8 KiB | β95.6% |
| 9 | Pixel art with noisy motion (TV Noise) | 200Γ200, 12 frames, 0.72 s | 30.9 KiB | 15.3 KiB | β50.5% |
| 10 | Flat graphic, smooth motion (Newtons cradle) | 360Γ270, 72 frames, 0.72 s | 307.8 KiB | 17.0 KiB | β94.5% |
| 11 | Long screen recording (Vector 2022 skin) | 1438Γ761 β 1438Γ762, 982 frames, 40.9 s | 39.27 MiB | 3.30 MiB | β91.6% |
Summary: 11 samples. Median β83.3%. Range β95.6% to +218.5%. Smaller in 9 of 11. Larger in 2 of 11.
A previous run of six synthetic clips had a milder median (β69%). The real files were more extreme in both directions: screen recordings, photographic sequences and ordinary character loops usually landed in the β83% to β96% band. Mid-size pixel art and flat colour still shrank, but only by about half. They did not grow. The only growth was in files that were already a few kilobytes or less.
Why the large ones shrink
A GIF is a stack of paletted pictures. Each frame is at most 256 colours, compressed with LZW. Frame differencing can skip unchanged pixels, which helps a character blinking on a flat background and helps much less when the whole canvas is moving β a screen recording, a camera pan, film grain.
MP4, with this preset, is an H.264 video. It spends most of its budget describing what changed, with a modern inter-frame codec, and it is allowed far more than 256 colours. That is why a 39 MiB screen-recording GIF became a 3.3 MiB MP4, and why a 7.94 MiB motion study became 354 KiB. Those are not editor tricks. They are the format doing what it was designed to do.
Why the tiny ones grew
H.264 and the MP4 container are not free. There is a header, a table of samples, and a minimum of bitstream overhead even when the picture is 32 pixels across. LittleRunner is a 32Γ32, 6-frame loop that was already 720 bytes as a GIF. The MP4 was 2.2 KiB β more than three times as large. The Cryptocat logo, 52Γ52 and 2.8 KiB as a GIF, grew 30%.
This is the exception I had been describing too loosely. It is not "simple flat art gets larger." The 64Γ64 and 88Γ144 pixel animations in the table both shrank by about half. The files that grew were already in emoji or favicon territory, where the container costs more than the pictures.
If a converter tells you the MP4 is larger, believe the two file sizes in front of you. Keep the GIF, or run a GIF compressor on it instead of forcing the conversion.
When you should still keep a GIF on purpose
Size is not the only constraint. Some upload forms still ask for a GIF specifically: Discord custom emoji, many sticker and banner fields, and plenty of older chat or forum forms. An MP4 will not satisfy those, no matter how small it is. For a Discord emoji you are also aiming at a 256 KB cap and a 128Γ128 canvas, which is a GIF compression problem (or a Discord-preset one), not a container problem.
A short rule I use:
- If the destination accepts video, convert a copy and compare the two sizes. For anything that looks like a screen recording, a photo sequence, or a normal reaction loop, the MP4 will usually win by a lot.
- If the file is already a few kilobytes, or is meant to be an emoji-sized loop, convert only if you are curious β expect the MP4 to stay flat or get larger, and keep the GIF if it does.
- If the destination requires a GIF, skip the conversion and shrink the GIF itself.
The converter I use for the first case is the GIF to MP4 page, which runs the encode in the browser so the file is not uploaded. Whatever tool you use, look at both file sizes before you throw the original away.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.