About this tool
Combine many small images into a single sprite sheet to cut down on requests or feed a game engine. Choose compact packing or a uniform grid, set the padding, and the tool writes CSS classes with background positions plus a JSON map of every frame's coordinates. Packing happens in your browser.
How to use Sprite Sheet Generator
- Add your icons or frames.
- Pick compact packing or a uniform grid and set padding.
- Set the CSS class prefix and sheet file name.
- Download the PNG, CSS and JSON together as a ZIP.
Frequently asked questions
How are CSS class names created?
From each file name, lower-cased with unsafe characters replaced by dashes, after your prefix — e.g. .sprite-arrow-left.
What does the JSON contain?
The sheet's file name and size, plus x, y, width and height for every image, keyed by original file name.
Why add padding?
A pixel or two of space stops neighbouring sprites bleeding into each other when the sheet is scaled or filtered.