Build a sprite sheet from separate frames, or cut one back into frames. Both directions show the frames playing as an animation, so a frame that is out of order or cut in the wrong place is visible before anything is downloaded.
Make a sheet
Drop the frames, or one animated GIF. They are ordered by file name with natural number sorting, placed on a transparent sheet, and listed in a data file. The download is a ZIP with the PNG and the data file, named after the sheet name you set. The PNG alone and the data text alone are also available under the main button.
Grid layout
Every frame gets a cell the size of the largest frame, and smaller frames are centred in their cell. Cells run left to right, then top to bottom. Columns at 0 picks the count that makes the sheet closest to square; set it by hand for one long strip (the frame count) or a fixed sheet width.
A grid is what an animation wants. Unity’s slicer, Godot’s AnimatedSprite2D, Phaser’s load.spritesheet and a CSS steps() animation all read a grid from the frame width and height, without a data file. The readout shows the cell size to type in.
Packed layout
Frames of any size are fitted together with the MaxRects algorithm: each frame goes into the free rectangle that leaves the least leftover space, and several sheet widths are tried to find the smallest result. The readout shows how much of the sheet is filled. Frames are not rotated, because not every loader reads rotated frames.
Trim transparent edges removes the empty border of each frame before packing. A 64 × 64 frame with a 20 × 30 character in it takes 20 × 30 on the sheet. The data file keeps spriteSourceSize and sourceSize, which Phaser and PixiJS use to put the trimmed frame back in position.
Export options
Sheet name sets the file names and the image path written into the data file. Power-of-two sheet size rounds both dimensions up to 256, 512, 1024 and so on, which older GPUs and some compressed texture formats require.
Slice a sheet
Load a sheet and choose how to cut it.
Detect sprites finds each sprite as an island of pixels and outlines it. This works on sheets with irregular spacing or mixed sizes, where no grid fits. Raise Join parts within if a sprite is split into pieces: a sword held away from the body, a shadow under a jumping character, the dot of an exclamation mark. Frames are numbered in reading order, row by row.
Grid cuts equal cells from a column and row count. Cells with nothing in them are skipped, so a sheet of 14 frames on a 4 × 4 grid gives 14 files. Use Grid when frames must keep their full cell, including the empty space that positions the character within it.
The download is a ZIP of numbered PNG files.
Example: an 8-frame walk cycle for Phaser
Drop walk_1.png to walk_8.png, each 48 × 48. Keep Grid, set Columns to 8 and Padding to 0. The sheet is 384 × 48. Load it with this.load.spritesheet('walk', 'spritesheet.png', { frameWidth: 48, frameHeight: 48 }) and no data file is needed. With Padding at 2, the cells sit 50 px apart with a 2 px margin; pass margin: 2 and spacing: 2 in the same call.
Limits
A sheet wider or taller than 8192 px is not built. That is the largest texture many mobile GPUs accept; split the frames across two sheets instead.
Splitting a GIF into frames uses the browser’s image decoder, which Chrome, Edge and recent Firefox and Safari provide. Where it is missing, a GIF is added as its first frame and a notice says so.
Detect sprites needs a background that is transparent or one flat colour. On a sheet with a textured or gradient background, use Grid.