A GIF paints with a box of at most 256 crayons.
Every GIF frame carries a palette, a list of up to 256 colours, and each pixel is just a number pointing into that list. It's why GIFs look posterised, why flat cartoons stay crisp, and why photo GIFs are huge. Shrink the palette and watch.
A GIF can only skip pixels that stayed exactly the same, and it has no motion prediction at all. So a 5-second clip is dozens of near-complete images. Video formats describe movement instead. Pick a length to compare.
GIF dates from 1987. Newer formats beat it on size and quality, but GIF is the one animation that loops automatically in every email app, forum, and document.
This page walks every block, decompresses every frame’s LZW data itself, and composites the frames with their disposal methods, so you see each frame as stored and as shown. It also checks delays against the rule browsers apply to very short ones. The sample is a real three-frame GIF built in your browser.
Identification, limits and capabilities, from the GIF89a specification.
Each block begins with a one-byte introducer. The looping behaviour everyone relies on isn't in the original standard at all: it comes from a Netscape extension. Click a block.
47 49 46 38 39 61 "GIF89a"
Each converter page explains what's kept and what changes.