DevTools Logo

GIF Frame Extractor

GIF Frame Extractor

Inspect every GIF frame with its delay and disposal, then export selected PNGs, a sprite sheet or a timing manifest.

Runs in your browser

GIF and selection

no file

Frame PNGs are decoded locally by self-hosted FFmpeg (~31 MB once). The metadata parser reads delay, disposal and NETSCAPE loop data directly from the file.

Filmstrip

not decoded

No GIF loaded

Choose a GIF to inspect its frames.

Examples

Sprite sheet

Input
8 selected frames, columns 4
Output
4-column PNG sheet plus a JSON manifest

The manifest's x/y values match the emitted sheet layout.

Disposal debug

Input
Frame with disposal 2
Output
Frame cleared to background before the next draw

Wrong backgrounds are usually disposal issues, not decode failures.

Loop info

Input
NETSCAPE2.0 count 5
Output
loop 5 in the file chip

Application extensions are read rather than skipped.

About this tool

GIF Frame Extractor decomposes an animated GIF into its component frames for inspection and reuse. The metadata parser reads the GIF header, logical screen descriptor, graphic control extensions and the NETSCAPE loop block directly from the bytes, reporting each frame's delay, disposal method, rectangle and transparency flag.

Frames are decoded locally by a self-hosted FFmpeg engine with frame-by-frame PNG output, then presented as a filmstrip with selection checkboxes. Export selected frames as a PNG ZIP, assemble a sprite sheet with a configurable column count, or download a timing manifest that records the original delays and sprite positions.

Everything stays in the browser tab. The parser tolerates truncated files and unknown extensions, surfaces warnings rather than hiding them, and treats very short delays honestly: the metadata table shows the source value while the manifest applies the browser-enforced floor.

What this tool does not do

  • Very long GIFs should be decoded in batches; the filmstrip is capped for responsiveness.
  • APNG and animated WebP are not supported inputs.
  • FFmpeg is downloaded once and cached; first decode has a one-time cost.

How to use this tool

  1. Choose a GIF

    Pick a GIF file. The tool immediately reads its dimensions, frame count, loop count and per-frame timing.

  2. Review the filmstrip

    Press Extract frames to decode PNG stills, then select the frames you want to keep.

  3. Export

    Download the selected frames as a PNG ZIP, build a sprite sheet, or download the timing JSON manifest.

  4. Debug disposal

    Compare delay and disposal values in the table when a frame looks wrong — disposal 2 clears to background and disposal 3 restores the previous frame.

Use cases

Game sprites

Extract animation frames into PNGs or a packed sprite sheet.

Documentation stills

Reuse individual frames from a product animation.

QA debugging

Inspect delays, disposal and transparency when a GIF renders incorrectly.

Metadata fields

FieldMeaning
DelayGraphic control extension value in 1/100 s, shown in milliseconds
Disposal0/1 leave, 2 restore background, 3 restore previous; 4–7 degrade to leave
TransparencyWhether a transparent palette index is declared
RectFrame left/top and width/height in the logical screen
Loop countNETSCAPE2.0 iteration count; null means not declared

Delays of 0 are shown as 0 ms in metadata; the exported manifest uses a 20 ms floor for browser-safe playback.

Common mistakes

Mistake:Assuming every short delay plays at its source value.

Fix:Browsers floor very short delays; the manifest applies a floor while the table keeps the true value.

Mistake:Blaming the decoder for a broken-looking frame.

Fix:Check disposal 2/3 behavior and the frame rectangle first.

Mistake:Expecting to bake a checkerboard into a sprite PNG.

Fix:The exported sheet keeps transparency; a checkerboard is a preview aid only.

Mistake:Thinking APNG is supported.

Fix:This tool handles GIF89a/GIF87a files only.

Frequently asked questions

Why do some frames look broken?

GIF frames are not always full images. Disposal method 2 clears the frame rectangle to the background and method 3 restores the previous frame; a mismatch between the encoder's intent and the player's background leaves visible artifacts. The metadata table shows the disposal value for each frame.

What is a disposal method?

It tells a decoder what to do with the canvas after drawing a frame: 0/1 leave it, 2 restore the background, 3 restore the saved previous image. Values 4–7 are reserved and browsers generally treat them as leave.

How do I export a sprite sheet?

Decode the GIF, select the frames you want, set the column count and press Download sprite sheet. The PNG keeps transparency and the companion JSON manifest gives each frame's x/y/w/h plus its original delay.

Are original delays preserved in the JSON?

Yes. The table shows the exact source delay in GIF 1/100 s units converted to milliseconds; the manifest applies a 20 ms floor for browser-safe playback. Loop count and disposal are recorded too.

Is my GIF uploaded?

No. The metadata parser reads bytes in the tab, and PNG decoding uses a self-hosted FFmpeg engine that runs locally. The only network cost is downloading that engine once; files are never sent anywhere.

Can it read GIF87a files?

Yes. Without graphic control extensions a GCE is absent, so frames are treated as full redraws with zero delay. The parser also skips comment and application extensions and reports unknown blocks as warnings.

References & standards