Sprite Sheet Generator

Pack many small pictures into one sheet and get the position of every frame as JSON.

How it works

Packs many small pictures into one sheet in a grid, and gives the x, y, width and height of every frame as JSON. Games and CSS animations use sheets to load faster.

  1. Add the pictures in order.
  2. Choose columns and a gap.
  3. Download the sheet and copy the JSON.

Worked example

8 frames of 64 x 64 px in 4 columns make a 256 x 128 sheet. Frame 5 starts at x 0, y 64.

Good to know

Common questions

How do I use the JSON?
Read each frame x, y, w and h to draw only that part of the sheet in a game or in CSS with background-position.
What size can it make?
Very large sheets are refused, because browsers run out of memory.
Can frames differ in size?
Yes, but each sits in a cell as big as the biggest frame.
Is anything uploaded?
No. Everything is packed in your browser.

More in Images.