How GIF Animation Works and How to Extract Every Frame Correctly
Why naive GIF splitting gives broken frames, how disposal and transparency compose an animation, and how to export frames, sprite sheets and timings.

How GIF Animation Works and How to Extract Every Frame Correctly
GIFs have been animating the web since the 1990s, and they are still everywhere: reactions, stickers, product demos and tutorials. Pulling a single frame out of a GIF sounds simple, yet many tools produce strange results: half-empty frames, ghost images or wrong colours. Understanding how GIF animation works explains why. The GIF Frame Extractor handles it properly.
A GIF is a canvas plus instructions
A GIF file defines a logical screen, the canvas, and then a series of image blocks. Each block can be smaller than the canvas and placed anywhere on it. To save space, many GIFs store only the part of the picture that changed since the previous frame. A frame of a talking head might contain just the mouth.
Graphic control extensions
Before each image block, a graphic control extension can specify three things:
- Delay: how long the frame stays on screen, in hundredths of a second.
- Transparency: one palette colour that is not drawn, letting the previous picture show through.
- Disposal method: what to do with this frame before drawing the next one. It can stay in place, be cleared to the background, or be restored to what was there before.
A correct decoder starts with an empty canvas, draws each block at its position, skips transparent pixels, records the full canvas as the visible frame and then applies the disposal method. Tools that just export the raw blocks skip those steps, which is why their frames look broken.
Colours and compression
Each frame uses a palette of up to 256 colours, either the global one for the whole file or a local one for that frame. Pixel data is compressed with LZW, a lossless dictionary method, and can be stored interlaced so a rough version appears first. The extractor implements all of this itself, so results are the same in every browser.
What you can export
- PNG frames: complete frames with transparency, ideal for editing.
- Sprite sheets: selected frames side by side, in a row, column or grid, for game engines and CSS animations.
- Timing list: a CSV of frame delays and start times, useful for rebuilding the animation precisely in video or game software.
Picking the perfect still
Reaction GIFs often contain one frame that captures the moment best. Click through the thumbnails, select it and save it as PNG for a thumbnail, a sticker or a slide.
Rebuilding after editing
Edit the frames in any image editor, then rebuild the animation. The animated WebP maker on this site can create both WebP and GIF animations, keeping the delays you set.
Timing quirks
GIF delays are stored in hundredths of a second. Many browsers treat very short delays, below 20 milliseconds, as 100 milliseconds, so some GIFs play slower in browsers than their files say. The timing list shows the stored values.
Quick answers
Can I extract frames from a video? Use a video frame grabber; this tool reads GIF files.
Why are colours slightly off? GIF frames have at most 256 colours, so gradients may show dithering or banding.
A worked example
A 480 x 270 GIF of 52 frames at 40 milliseconds each plays for just over two seconds. The extractor shows all 52 complete frames. Frame 31 is saved as a PNG thumbnail, and frames 10 to 30 become a grid sprite sheet for a web animation.
Frame-by-frame study is also a good way to learn animation: you can see exactly how many drawings an animator used for a blink or a step.
Limits
Huge GIFs use a lot of memory, and creators' rights still apply to the frames you extract. All decoding is local.


&c=%237c3aed&k=images)
