IMG · Images tools

Sprite Sheet Maker

Shareable link

Settings are written to the URL as you change them. Nothing differs from the defaults yet.

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.

Frequently Asked Questions

Make a sheet takes separate frames as PNG, WebP or JPEG files, or an animated GIF, and produces one PNG sheet plus a data file that lists where each frame is. Slice a sheet takes an existing sheet and cuts it into separate PNG frames, downloaded as a ZIP.

Use Grid for an animation: every frame gets an equal cell, in order, and most engines can read the sheet from the cell size alone. Use Packed for an atlas of unrelated images at different sizes, such as UI pieces or items. It wastes far less space, and the engine needs the data file to find each frame.

JSON hash is the TexturePacker format that Phaser loads with load.atlas and PixiJS loads as a spritesheet. JSON array holds the same records as an ordered list, which Phaser also reads and which is the simplest to parse in your own code. CSS classes give one class per frame with its size and background-position, for sprites on a web page.

By file name, with numbers compared as numbers, so walk_2 comes before walk_10. Name the files in the order the animation should play. Frames from a GIF keep their order in the file and are named with a two-digit suffix.

In Packed layout, the fully transparent border around each frame is left off the sheet. The data file records the trimmed rectangle, the frame's original size and the offset between them, so an engine that reads those fields draws the frame exactly where it was. Trimming is not offered in Grid layout, where equal cells are the point.

It treats every connected group of non-transparent pixels as a sprite and returns its bounding box. On a sheet with no transparency, the colour of the four corners is taken as the background if they agree. Groups closer together than the Join parts within distance are merged, which keeps a character and its detached shadow in one frame.

When a GPU scales or filters a sheet, it samples slightly outside each frame's rectangle. With no padding, a line of the neighbouring frame can appear along an edge. One or two clear pixels between frames prevents that.

Explore Our Tools

Browse all tools