Free online tool

Upload a file

Drop your file hereTap to choose a file

or click to browse, or paste from the clipboard

← Back to Blog

How to Turn an Animated GIF into a Timed Sprite Sheet

A PNG sprite sheet tells a game which pixels to draw. It cannot tell the game how long to hold each pose. The GIF to Sprite Sheet tool exports both a PNG atlas and a JSON file containing each frame rectangle and its delay. Keep the two downloads together, especially for animations with an uneven rhythm.

Locate the third frame by hand

Imagine three full frames, each 2 × 2 pixels. Choose two columns and zero gutter. The atlas is 4 × 4 pixels. Frame one starts at (0, 0), frame two at (2, 0), and frame three at (0, 2). The bottom-right cell is transparent. Walking every grid cell would add a blank fourth pose, so drive playback from the three entries in the JSON.

Change Gutter between cells (px) to 1 and select Convert again. The atlas becomes 5 × 5. Frame two moves to (3, 0) and frame three to (0, 3). Import the new JSON with the new PNG or your crops will include a strip of transparent gutter.

Restore the timing

A frame with a GIF delay of 8 hundredths of a second gets a JSON delay of 80 milliseconds. Three frames with delays of 40, 80 and 120 ms make a 240 ms cycle. Holding every frame for 80 ms would preserve the total duration but change the motion inside that cycle. GIF89a graphics control extension

Inspect a moving detail

Some GIFs store only the patch that changes between frames. Look at a moving hand, blinking light or sprite shadow in the exported atlas. The surrounding picture should match the displayed animation, including areas restored after a temporary patch. Check transparency against a contrasting background. The conversion runs locally and requires a browser with animated GIF ImageDecoder support. Export the frames and timing file

How can I find a frame without counting cells by hand?

Use the rectangle for that frame in the JSON. For a manual cross-check, a four-column atlas with 16-pixel-wide frames and a 2-pixel gutter has its first three columns at X = 0, 18 and 36. The next row starts at the frame height plus the gutter. Using the full atlas width as a frame width would select the wrong pixels.