GIF to Sprite Sheet
Lay out every frame of an animated GIF on one PNG sprite sheet, with the columns, rows and padding you want, plus JSON frame data. Or go the other way: cut a sprite sheet into frames and play them as a GIF.
- 1Choose a file
- 2Set the grid
- 3Download
1Choose a GIF
or drop a GIF here, or paste one with Ctrl/Cmd+V
Your file stays in your browser; it is not uploaded. No cookies unless you accept: what we count.
2Set the grid
1Choose a sprite sheet
or drop a PNG, JPG, WebP or GIF here, or paste one with Ctrl/Cmd+V
Your file stays in your browser; it is not uploaded. No cookies unless you accept: what we count.
2Set the grid
Before and after
The example GIF and the sprite sheet this tool makes from it with the default 4 × 4 grid. The Sprite sheet to GIF tab turns that sheet back into the same animation.


How to turn a GIF into a sprite sheet
- Choose your GIF. Drop it on the box above, paste it, or press Choose GIF.
- Set the grid. Pick the number of columns (the rows follow), or put every frame in one row or one column.
- Add padding if you need it. Padding puts empty pixels between frames, and optionally around the outside, which helps stop neighbouring frames bleeding into each other when a game engine scales the sheet.
- Download. You get a PNG sheet. Download JSON frame data too if your code needs each frame's position and delay.
How to turn a sprite sheet into a GIF
- Open the Sprite sheet to GIF tab and choose your sheet: PNG, JPG, WebP or GIF.
- Set the columns and rows. Purple lines on the sheet show where the frames are cut. Add the space between frames and the margin at the edge if your sheet has them.
- Set the speed in frames per second, then download the GIF.
What is in the files
- PNG sheet: every frame as a full picture, the size of the GIF, in reading order (left to right, then top to bottom). Transparent parts of the GIF stay transparent unless you fill the background.
- JSON frame data: a
framesobject with each frame'sx,y,wandhon the sheet and itsdurationin milliseconds (the delay stored in the GIF), plus ametaobject with the sheet size, columns, rows and loop count. - GIF from a sheet: a GIF stores delays in hundredths of a second, so the speed is rounded to that. Browsers play a delay of 0.01 s or less as 0.1 s, so the fastest speed here is 50 frames per second (0.02 s per frame). A GIF also allows at most 256 colours per frame, so a frame with more colours has them reduced, and partly transparent pixels become fully clear or solid.
Report a problem or suggest a feature
More free tools
- GIF Speed ChangerSpeed up or slow down a GIF
- Video Frame ExtractorSave a frame from a video or GIF
- Grid Drawing ToolAdd a drawing grid to a photo
- Icon ConverterPNG or JPG to a multi-size .ico
- Twitch Emote ResizerAnimated GIF emotes, each size-checked
- Placeholder Image GeneratorAny size, colour and text