Back to home

Sprite Sheet Maker

Combine icons, frames or characters into a single image and get the coordinates of each sprite in a JSON file, ready for games and CSS sprites.

  1. Add at least two images in the order you need
  2. Choose columns and padding
  3. Create and download the sheet and the JSON
Loading the tool...

Your files never leave your device

How to build a sprite sheet

A sprite sheet puts many small images into one file, so a game or a web page loads a single request instead of dozens. Add your images in the order you need them, choose how many columns the grid has and how much padding to leave, and the tool lays them out and writes a JSON map with the position of every sprite.

A worked example

Say you have 10 frames of a character and the largest one measures 48 by 64 pixels. Every cell becomes 48 by 64, and with 5 columns and no padding the sheet is 240 pixels wide and 128 pixels high. The seventh frame sits in the second row and second column, so, for a sprite as large as the cell, its entry in the JSON starts at x = 48 and y = 64 (smaller sprites are centered, so their x and y are shifted a little), and a game engine can cut it out with those numbers.

Limits and common mistakes

The sheet can be up to 8192 pixels on each side, which fits at most 40 cells that are 200 pixels wide in one row, and the columns setting goes up to 50. If you reach the limit, use fewer or smaller images or more columns. Sprites of very different sizes waste space, because every cell is as big as the biggest image, so group similar sizes into separate sheets.

Frequently asked questions

In which order are sprites placed?

In the order of your list, left to right and top to bottom. Reorder the files in the list before you create the sheet, because the JSON follows the same order.

What size are the cells?

Every cell is as large as the biggest image. Smaller images are centered inside their cell, so all sprites share a regular grid that is easy to slice.

What does columns 0 mean?

The tool picks a nearly square grid automatically, for example 4 columns for 16 images. Enter a number yourself when your game expects a specific layout.

What is the size limit?

The sheet can be up to 8192 pixels on each side. If it would be larger, the tool tells you the size it would need and asks you to use fewer or smaller images.

Is the transparency kept?

Yes. Transparent areas of PNG images stay transparent in the sheet, so sprites can be drawn over any background.

Are my images uploaded?

No. They are processed on your device, and the sheet and JSON are created in your browser.

Related tools

Save this tool to use it later

Add this page to your browser bookmarks by pressing Ctrl + D