Skip to content
TabKiwiTabKiwi

Sprite Sheet Generator

Pack icons or animation frames into one PNG and get matching CSS classes and a JSON coordinate map.

ImagesRuns in your browser. Your files never leave this device.
Loading tool…

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

  1. Add your icons or frames.
  2. Pick compact packing or a uniform grid and set padding.
  3. Set the CSS class prefix and sheet file name.
  4. 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.

More Images tools

View all 86 →