GIF files: 256 colours, no sound, and still unavoidable
Why GIF files are so large, what the 256-colour limit does to a video, and when to use MP4 instead. Convert GIF in your browser, no upload.
At a glance
- Type
- Image
- Compression
- Lossless
- Extensions
- .gif
- MIME type
- image/gif
- Also known as
- Graphics Interchange Format
GIF dates from 1987 and its two defining limits come straight from that era: at most 256 colours per frame, and no audio track at all. The colour limit is why a photograph saved as GIF looks banded and dithered — the format has to pick 256 shades and approximate everything else by mixing them, which is visible as a fine speckle on skin, sky and gradients.
Read more
The size problem is separate and worse. GIF has no motion compensation — the technique every video codec uses to store only what changed between frames — so its size scales with duration and detail almost linearly. A thirty-second clip can be ten times larger than the MP4 it came from, which is a thirty-year gap in compression technology showing itself in a single file.
Making a good GIF from video is therefore mostly about the palette. Mapping onto a fixed web palette is what produces the muddy results you have seen; building a palette from the specific clip in a first pass and rendering against it with dithering in a second is what this site does, and it is the whole difference between a GIF that looks like the video and one that looks like a fax of it.
The honest advice is to use GIF only where nothing else is accepted — issue trackers, some chat clients, email, older forums. Most platforms that once demanded GIF now take video uploads, and an MP4 of the same clip is smaller, sharper and can carry sound. Where you do need GIF, keep it to a few seconds at twelve frames a second and a few hundred pixels wide.
Convert GIF to other formats
Convert other formats to GIF
FAQ
Why is my GIF larger than the video it came from?
Because GIF stores frames almost independently while modern video codecs store the differences between them. That is thirty years of compression research separating the two formats.
How long a clip can I convert to GIF?
Practically, a few seconds. A minute of footage produces a file most browsers struggle to display. For anything longer, keep it as video.
Why does the colour look speckled?
That is dithering — mixing available colours to approximate ones the 256-colour palette does not contain. At normal viewing size it is a far better trade than the visible banding you would get without it.
Does GIF have sound?
No, the format has no audio track at all. Converting a video to GIF discards the sound entirely. Use MP4 or WebM if you need it.
GIF or MP4 for a short clip?
MP4 wherever it is accepted — smaller, sharper, and it can carry audio. GIF only where nothing else is allowed, which still includes some issue trackers, chat clients and email.
What happens when I convert a GIF to PNG or JPG?
Only the first frame is written, because those formats hold a single image. The 256-colour banding is preserved rather than repaired, since it is part of the pixels now.
What frame rate and width should I choose?
12 frames a second and 480 pixels wide are the defaults and suit most content. Drop to 8 or 10 fps for screen recordings and slow pans, where the size saving outweighs the visible cost.
Does GIF support transparency?
Only one fully transparent colour index — no partial transparency, so no soft edges. PNG and WebP have real alpha channels, which is why a logo belongs in those instead.