How to Make a Sprite Sheet from PNG Images
Combine PNG frames into a transparent sprite sheet. Try a four-frame example, choose columns and padding, export PNG and JSON, and fix common animation problems.
By Duangduean Studios
Combine your animation frames into one transparent PNG with our free sprite sheet packer. This tutorial uses its built-in slime animation so you can follow along immediately, then swap in your own artwork. You will export a PNG and choose the right coordinate file for your project.
Try the four-frame example
- Open the sprite sheet packer.
- Select Try slime animation example. This replaces any images already selected in the tool.
- Leave Columns at 4 and Padding per side (px) at 2.
- Check the moving animation preview. Use the preview-speed slider to see how the sequence looks at different speeds.
The example contains four 32 × 32 frames. At those settings, the exported sheet is 144 × 36 pixels. Each frame gets a 36 × 36 cell: 32 pixels of artwork plus two transparent pixels on each side.
Change Columns to 2. The same animation now fits a 72 × 72 sheet arranged in two rows. We tested both layouts in the live tool. Changing the layout changes the frame coordinates, so export a fresh PNG and JSON together after your final adjustment.
Pack your own PNG images
Choose Choose sprite images and select the separate frames for your animation. Transparent PNGs work well for characters, effects, and objects that need to appear over a game background. Use the same canvas dimensions for every frame, and keep the character anchored consistently so it does not jump sideways or up and down during playback.
The packer uses the order supplied by the file picker. Numbering files such as walk-01.png, walk-02.png, and walk-03.png makes them easier to organise, but check the preview to confirm the actual playback order. The tool does not sort your sequence automatically.
You can choose up to 64 images with a combined file size of 20 MB. Each image can be up to 2048 pixels per side, and the output must fit within 4096 × 4096 pixels. The packer processes the images in your browser.
Choose columns and padding
Columns control how many frames fit across the sheet. With eight frames, four columns produce two rows. A row with unused cells at the end is normal when the frame count does not divide evenly by the column count.
Padding adds transparent space around each frame. It changes the cell size and the distance between the artwork in adjacent cells. For the sample with two pixels per side, neighbouring frames have four pixels of transparent space between them.
For an engine that divides a texture into equal cells, zero padding is the simplest starting point. If you use padding, follow the offset, spacing, or cell-size values shown under the tool’s preview. Transparent padding does not copy the artwork’s edge pixels into the gap.
Export the PNG and the right JSON
Select Download PNG to save sprite-sheet.png. Then choose the export that matches your workflow:
- Download JSON (simple) saves sprite-sheet.json with a frames array. Each frame has a name and its x, y, w, and h rectangle. Use this when writing your own image loader or canvas animation.
- Download JSON for Phaser / PixiJS saves sprite-sheet-atlas.json in JSON Hash atlas format. Keep it beside the PNG and use your engine’s atlas-loading workflow.
- Godot or Unity grid workflow uses the PNG and the frame, grid, offset, and padding information displayed by the packer.
Our engine import walkthrough explains the next steps for Phaser, Godot, and Unity. The frame-coordinate guide shows how the exported rectangles relate to the image.
Fix common sprite-sheet problems
The animation plays in the wrong order. Recheck the sequence supplied by the file picker. Load the frames again in the desired order and confirm the preview before exporting.
The character wobbles between frames. Compare the original images. Use matching canvas sizes and a consistent anchor, such as the point where the character’s feet touch the ground. Packing images together preserves the artwork you supply.
Frames include parts of their neighbours. Check whether your engine expects the artwork size or the full cell size. With 32-pixel frames and two pixels of padding per side, the cell is 36 pixels wide. An importer using the wrong spacing will select the wrong rectangles.
Pixel art looks blurry. Check texture filtering and display scaling in your game engine. Nearest-neighbour filtering and whole-number scaling are useful starting points for crisp pixel art.
What to build next
Export the sample, import it into your game, and make it play at the speed you want. Then replace the sample with one animation from your own project. You can also explore our free game assets or return to the sprite sheet packer to build another sequence.
Tested with the Duangduean Studios sprite sheet packer on November 18, 2026.
Frequently asked questions
How do I make a sprite sheet from PNG images?
Open the free sprite sheet packer, choose your PNG frames in play order, set the columns and padding, check the animation preview, then download the PNG. Download the JSON too if your engine needs frame coordinates.
How many images can I put in one sprite sheet?
The packer takes up to 64 images with a combined size of 20 MB. Each image can be up to 2048 pixels per side, and the finished sheet must fit within 4096 × 4096 pixels.
Should I add padding between sprite frames?
Padding adds transparent space around each frame. For an engine that divides a texture into equal cells, zero padding is the simplest start. If you use padding, enter the offset, spacing or cell-size values shown under the packer's preview.
Which JSON file should I download?
Use the simple JSON (a frames array with x, y, w and h) for your own loader or canvas animation. Use the JSON for Phaser / PixiJS (JSON Hash atlas format) with those engines. Godot and Unity only need the PNG and the grid numbers shown by the tool.


