How to use Image Sprite Sheet Builder
- Choose two to twenty sprite images and set their order with Up and Down.
- Set the maximum atlas width and padding around each sprite.
- Select Build sprite sheet. Each sprite keeps its original pixel size.
- Download the PNG atlas, JSON coordinate map and CSS file together.
Example: Image Sprite Sheet Builder
A local worked example using the inputs and settings below for image sprite sheet builder.
Options
- Maximum width
- The packing plan stays within the entered row width and output bounds. A sprite that cannot fit is refused rather than silently resized.
- Padding
- Padding separates sprites in the atlas. Use the exported coordinates rather than guessing positions from the image.
Supported inputs and limits
Where your input is processed
This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save 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.