Sprite sheet calculator
Loop frames are easier to ship as one sheet: the engine slices it on a grid. The calculator returns the file width and height, with a gap between frames or with none.
What it calculates Calculates the sprite-sheet size from the frame, the columns and rows, and the gap between frames.
Calculator form
How to use
One frame
The canvas you draw a phase on. A loop is often fine as a square.
The grid
Columns and rows. 4 × 3 is 12 frames, one second at 12 fps.
Gap
0 if the frames touch. 1–2 px if you slice the sheet by hand and want a buffer.
Sample calculations
64 × 64, 4 × 2, no gap
Sheet 256 × 128 px, 8 frames
Common mistakes
Mistake
Forgetting a gap that is actually in the file → Every gap adds pixels. This calculator does not add an outer margin.
FAQ
How many frames are in a 4 by 3 grid?
12. That is one second at 12 fps, one drawing per frame.
Do I need a margin around the sheet?
Usually no. If an engine asks for an outer margin, add it to the result yourself, twice.
Lock it in with practice
Open the free editor and apply the result — a short sketch beats more reading.