Sprite Sheet Packer

Merge many PNG frames into one sprite sheet. Use a uniform grid for animations or a tightly packed atlas with trimming, then export the PNG with matching JSON frame data.

Drop sprites or animation frames here, or click to choose several files.
Files are sorted by name (frame_2 before frame_10). Nothing is uploaded.

How to make a sprite sheet from separate frames

  1. Select or drop all the frames at once. They are ordered by file name with natural sorting, so walk_2.png comes before walk_10.png.
  2. If every image has the same size, the tool picks Grid. Set the number of columns, or leave it at 0 for a roughly square sheet.
  3. For mixed sizes, use Packed atlas and turn on Trim to cut the empty space around each sprite.
  4. Download the PNG, plus the JSON if your engine reads atlas data.

Loading the atlas in your engine

Phaser 3:

this.load.atlas('hero', 'spritesheet.png', 'spritesheet.json');
this.add.sprite(100, 100, 'hero', 'walk_01.png');

PixiJS 8:

const sheet = await PIXI.Assets.load('spritesheet.json');
const sprite = new PIXI.Sprite(sheet.textures['walk_01.png']);

Godot / Unity / GameMaker: use a grid sheet. In Godot, open an AnimatedSprite2D's SpriteFrames and choose "Add frames from sprite sheet", then enter the rows and columns. In Unity, set the Sprite Mode to Multiple and slice it by cell size in the Sprite Editor.

How the packer works

Packed mode uses the MaxRects algorithm with a bottom-left placement rule. It tries several sheet widths and keeps the one with the smallest area. Sprites are never rotated, so the JSON stays compatible with every loader.

Grid mode puts every frame in a cell as large as the largest frame, aligned to the top-left corner. Frame indices then map directly to cell positions.

FAQ

Grid or packed — which should I choose?

Use Grid for animation frames that share one size: engines like Godot, Unity and GameMaker can slice it by cell size with no data file. Use Packed for mixed-size sprites such as UI icons and props: it wastes far less space but needs the JSON file to find each sprite.

Which engines can read the JSON file?

The JSON Hash and JSON Array formats follow the widely used TexturePacker layout, loaded by Phaser (this.load.atlas), PixiJS (Assets / Spritesheet) and many other frameworks and plugins.

What does trimming do?

It removes fully transparent borders around each sprite before packing, which can shrink the atlas a lot. The original size and offset are stored in the JSON (sourceSize and spriteSourceSize) so engines can draw the sprite in the right place.

Why add padding?

With texture filtering or mipmaps, the GPU can sample pixels from the neighboring sprite and show thin lines at the edges. 1–2 px of padding prevents this. For pure nearest-neighbor pixel art, 0 is usually fine.

Do I need power-of-two sizes?

Modern GPUs and engines handle any size. Power-of-two (256, 512, 1024…) is still useful for some mobile, WebGL 1 and compression formats.

Are my sprites uploaded?

No. Packing happens locally in your browser.