SheetSlicer

Sprite Sheet Frame Size Calculator: Grid Formulas

For a borderless sheet, divide width by columns and height by rows: a 256 × 128 sheet in a 4 × 2 grid gives 64 × 64 pixel frames.

Updated

Why the visible character is not the frame size

Frame size means the rectangle allocated to each animation sample, including intentional blank space. It is not the width of the character's head, shadow, or widest pose. A tiny sprite can live inside a larger transparent cell. Measuring only opaque pixels produces inconsistent rectangles and loses the stable coordinate system that makes grid animation straightforward.

This is a formula guide, not an automatic calculator widget. Use your image's actual pixel dimensions, then enter the result in the slicer. The examples below are calculated layouts, not engine requirements. Documentation checked November 9, 2026: Aseprite's sheet documentation distinguishes frame dimensions, offsets, and padding during import. Those separate quantities are the reason simple division is sometimes insufficient.

Step by step: calculate cells and counts

Let W and H be sheet width and height, C and R be columns and rows, Mx and My be equal margins on opposite horizontal and vertical edges, and Gx and Gy be gaps between neighboring cells. With uniform cells, the dimensions are:

frameWidth  = (W - 2*Mx - (C-1)*Gx) / C
frameHeight = (H - 2*My - (R-1)*Gy) / R
columns = (W - 2*Mx + Gx) / (frameWidth + Gx)
rows    = (H - 2*My + Gy) / (frameHeight + Gy)
capacity = columns * rows
  1. Read dimensions from the downloaded file, not the displayed size in a browser. Count the intended cells, including any deliberately blank cells. Write down the playback order separately; capacity does not tell you how many frames contain useful art.
  2. Measure the outside margin and between-cell gap. The formula assumes equal left/right margins and equal top/bottom margins. SheetSlicer's manual input uses one shared edge offset and one shared gutter for both axes. Unequal horizontal and vertical spacing needs preprocessing in another editor.
  3. Calculate both dimensions without rounding. If a result is fractional, investigate the measurements. A final strip of unused pixels, a miscounted border, or a resized screenshot is more likely than a legitimate fractional source-pixel cell.
  4. Enter rows, columns, offset, and gutter in Manual grid. Inspect an interior crop and the last crop. The current implementation floors calculated cell dimensions, so a plausible preview at the start does not prove that a fractional calculation was correct.
  5. After cleanup, read the displayed output cell dimensions again. Trimming and added padding create a new grid. Use those output values in the destination engine, not the original source calculation.

Common 8 × 8 through 64 × 64 examples

The table uses eight columns, four rows, and zero margin or gutter. Each row has capacity for 32 frames. Here “8 × 8” means cell dimensions in pixels, not eight columns by eight rows.

Cell sizeColumns × rowsSheet dimensions
8 × 8 px8 × 464 × 32 px
16 × 16 px8 × 4128 × 64 px
32 × 32 px8 × 4256 × 128 px
64 × 64 px8 × 4512 × 256 px

For a gutter example, four 32-pixel cells with two-pixel gaps and two-pixel outside margins require width 138: four times 32, plus three times two, plus four. Reverse the formula to verify that the frame width returns exactly 32.

Common pitfalls

Do not count padding twice. SheetSlicer's exported transparent padding sits inside each output cell; it is not an extra gap for the importer to subtract. A partial final row also does not mean the cell width is wrong. Keep the true frame count so unused atlas capacity does not become a blank animation frame.

Irregular AI art may not have a valid grid at all. If the arithmetic works but crops still bisect complete poses, see uneven AI grid diagnosis rather than repeatedly changing numbers.

Related tools

The packer builds a new equal-cell grid from individual images. The sprite sheet to GIF tool makes order and blank-frame errors easier to see. Neither tool turns an incorrectly measured source grid into missing artwork.

Frequently asked questions

Is there an interactive calculator on this page?

No. This page provides formulas and worked examples. Use the slicer preview to check the resulting rows, columns, offset, and gutter.

What if width divided by columns is not an integer?

Check margins, gutters, the cell count, and whether the image was resized. Do not silently round and assume the last crop will still align.

Does 32 by 32 mean 32 frames?

Not here. It means a cell 32 pixels wide and 32 pixels high. Frame count depends on columns, rows, and how many cells are populated.

Free sprite tools

More guides