Claude Game Studio

Sprite sheet to GIF

Convert a sprite sheet to an animated GIF in your browser, with a live preview, grid controls and transparent export.

0 frames · 130 ms per frame · 0 ms total

Loading the moth sample…

Set the sheet grid

Count the cells, including empty ones. The moth sample has four columns and two rows: eight 32 × 32 poses in a 128 × 64 image. Rows and columns divide the sheet into equal cells. A character drawn in only three cells of a four-cell row still needs four columns; otherwise the boundaries will cross its body. The orange grid lets you inspect the cuts before saving anything.

Use Frame size for a known cell. Enter its width and height in pixels. Complete cells are read left to right and then top to bottom. Frames to use stops the sequence before trailing blank cells. It takes the first frames in reading order; for a custom sequence, reverse or ping-pong motion, open the sprite animation maker.

Convert a padded sprite sheet

A border and a gap are different. Offset X and Offset Y tell the first cell where to begin. Gap skips the pixels between neighbouring cells. Our 104 × 70 lantern sheet uses 32 × 32 cells, a two-pixel starting offset and a two-pixel gap. Choose Frame size, enter those values and use six frames. The boundaries will pass around the poses.

In count mode, a trailing border can change the divided cell size. Use exact dimensions for a sheet with borders on both sides. For irregularly packed sprites, use the sprite sheet cutter to inspect transparent gaps and recover separate PNGs first. Then pack the chosen poses into a regular sheet. A GIF needs every frame on a common canvas so the character's feet stay anchored.

Preview the exported timing

A sprite sheet contains positions, not speed. Requested FPS sets a desired hold time, which the converter rounds to GIF's hundredth-second units. The displayed milliseconds are the duration actually written into every frame. Pause stops the preview, and Play resumes it. With Loop forever off, playback holds the last pose; pressing Play after pausing at the end starts from the first pose.

The GIF89a specification defines the delay and transparent colour index. At 10 FPS, the eight moth poses take 800 milliseconds; at 8 FPS, the rounded duration makes the loop 1040 milliseconds. The sample GIF and decoded frame results let you check the output, including its full-frame clearing.

Eight poses at three requested speeds
Requested speedStored holdComplete loop
6 FPSStored hold:170 msComplete loop:1360 ms
8 FPSStored hold:130 msComplete loop:1040 ms
10 FPSStored hold:100 msComplete loop:800 ms

Keep the pixels sharp

Export scale repeats each source pixel by a whole-number factor. A 32 × 32 pose becomes 128 × 128 at 4×. This keeps hard edges square when you post the animation in a page or presentation. It adds no new detail. Begin at 1× while checking the grid, then choose the size you need. Larger frames increase the total pixel count and the work required to encode them.

The image is drawn into a canvas with smoothing disabled, then read as RGBA pixels with canvas getImageData. The encoder shares one palette across all poses, with up to 255 opaque colours plus transparency. Small pixel-art palettes keep their colours; images with more colours are reduced together so each pose uses the same selection.

Save the animation

Download GIF creates sprite-animation.gif in the tab. The converter uses the vendored omggif encoder, with its MIT notice retained. Each pose covers the full output canvas and clears before the next one. A wing leaving a pixel therefore exposes transparency instead of retaining a piece of the previous wing. Soft alpha becomes a hard transparent-or-opaque edge because GIF has a single transparent palette entry.

To recover an existing animation, use GIF to sprite sheet. To combine separate PNGs, start with the sprite sheet maker. Keep a PNG master and frame JSON for the game; use GIF for sharing the movement. The original sheet preserves colours, transparent edges and source rectangles that a reduced GIF cannot restore.

Convert a GIF to a sprite sheet

Questions

How do I convert a sprite sheet to a GIF?

Choose the sheet, set its rows and columns or frame size, then check the orange boundaries. Set the frame count, speed and scale, and press Download GIF. Frames run left to right, then down; the preview uses the same rounded frame duration as the export.

Can I export a transparent GIF?

Yes. Pixels with alpha below 128 become transparent; the other pixels become opaque. The checkerboard stays out of the file. Each new pose replaces the previous full frame, so transparent pixels do not leave a trail behind a moving character.

Why is 8 FPS exported as 130 milliseconds?

GIF stores delays in hundredths of a second. One eighth of a second is 125 milliseconds, which this tool rounds to 130 milliseconds. An eight-frame loop therefore takes 1040 milliseconds. The preview uses that stored duration too.

Does the converter upload my sprite sheet?

No. Your browser reads the image and creates the GIF on your device. Choose PNG, WebP or JPEG within 4096 × 4096 pixels and under 16 MB. The export supports up to 256 frames and 8 million total output pixels; reduce scale when the export is too large.

How do I turn a GIF back into a sprite sheet?

Use the GIF to sprite sheet tool linked below. It decodes full animation frames and writes a PNG sheet plus JSON durations. GIF conversion reduces colours and alpha, so keep your original PNG sheet if you will need its exact source pixels again.

Put your assets into a playable game. Try the ten game templates or get the kit.