Sprite sheet maker

Choose the frames, put them in order, set the number of columns and the gap, and download a single PNG. The tool also writes the CSS with a background-position for every frame. Your images are not uploaded.

Everything happens in your browser. Your files are never uploaded.

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Choose the frames. You can select many files at once and add more later.
  2. Move frames up or down to set the order.
  3. Set the Columns and the Gap between frames, then press Download sprite sheet.
  4. Copy the CSS and use it with the downloaded file.

How it works

The cells form a grid, filled row by row. Four 32 × 32 frames in 2 columns with no gap give a 64 × 64 sheet with cells at (0, 0), (32, 0), (0, 32) and (32, 32). The CSS shifts the background by minus the cell’s corner, so the second frame uses background-position: -32px 0. Without a chosen number of columns the grid is as square as possible: 4 frames make 2 columns, 5 make 3.

Worked example

Eight walking frames of 48 × 48 px in one row (8 columns) give a 384 × 48 sheet. The animation snippet plays them with steps(8).

Tips

  • Name files so they sort in order (frame-01, frame-02) before selecting them.
  • A transparent background in the frames is kept in the PNG.
  • A small gap helps if a scaled sprite shows edges of the neighboring frame.

Frequently asked questions

What size are the cells?

Every cell is as large as the widest and tallest frame. Smaller frames are centered in their cell without scaling, so for best results use frames of the same size.

How do I use the CSS?

Give an element the sprite class to set its size and the sheet as its background, then add a frame class such as sprite-2 to show that frame. Change the url to the path where you put the PNG.

What is the animation snippet?

When all frames are in one row, the CSS also includes a steps() animation that moves the sheet by one cell at a time. The duration is a starting value of 0.1 s per frame; change it to your speed.

Is there a size limit?

Up to 100 frames, and the sheet may be at most 16384 px wide or tall. The tool tells you when the limit is reached.

More in Images

All tools in this category: Images ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.