How to use Image Sprite Sheet Builder
- Choose two to 128 sprites and set their order with Up and Down.
- Set the packing row width and padding. Enable power-of-two sizing if your renderer needs it.
- Select Build sprite sheet. Each image keeps its original pixel dimensions.
- Keep the PNG atlas, JSON coordinates and CSS together.
Example: Image Sprite Sheet Builder
Pack two 80 × 60 sprites in one row with two-pixel spacing.
Options
- Maximum width
- The entered width controls row packing before optional power-of-two rounding. An individual sprite plus padding must fit that row. Rounding can make the final atlas wider than the entered row width.
- Padding
- Padding sets the gap between consecutive sprites and the space at the outer edges. The exported coordinates locate the actual image pixels, excluding that gap. Use the JSON or CSS rather than estimating positions visually.
- Power-of-two sizing
- Round the completed atlas dimensions up to powers of two. This adds space at the right or bottom, while every sprite coordinate remains the same. Check the actual dimensions and bytes; a rounded canvas that exceeds the bounds is refused.
Supported inputs and limits
- Choose 2–128 JPEG, PNG or WebP images, up to 64 MiB each, 128 MiB in total and 20 megapixels combined.
- Packing row width is 32–4,096 pixels before optional rounding; padding is 0–32 pixels.
- The PNG is capped at 20 megapixels and 10,000 pixels per side, with input plus output capped at 40 megapixels.
- Power-of-two sizing rounds each outer dimension up and can add transparent space; the rounded dimensions must still fit the limits.
- Sprites are not resized or rotated.
More details
Row packing preserves order rather than optimizing every empty space.
CSS names are cleaned from file names and repeated names receive suffixes.
Source metadata is not carried into the atlas.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
Using the exported coordinates
The JSON map records each sprite’s x and y position from the top-left of the PNG, plus its original width and height. The CSS file uses those same coordinates as negative background positions. Keep the three downloads together under their original filenames, or edit the CSS image path if you rename the PNG.
Questions about Image Sprite Sheet Builder
Why is there empty space at the end of a row?
The next sprite moves to a new row if its full width and padding do not fit. This simple row packing preserves the file order and original size.
Can two files have the same name?
Yes. The CSS and JSON names receive numbered suffixes so each sprite has a distinct entry.
Does the CSS file resize sprites?
No. Each class sets the original sprite width and height and a negative background position into sprite-sheet.png.