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.
- Add the pictures in order.
- Choose columns and a gap.
- 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
- Every cell is as big as your biggest picture, so use pictures of the same size.
- Add a gap of 1 or 2 px if edges bleed when scaled.
- Frames are placed in the order you add them. Use the arrows to reorder.
- Use PNG to keep see-through areas.
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.