ZapKit

Sprite sheet generator

Pack icons or animation frames into a single image, with the CSS or JSON coordinates you need to show each one in a website or game.

What is a sprite sheet?

A sprite sheet is one image file that contains many smaller images, called sprites, laid out in a grid. Websites use them to load a set of icons in a single request, and games use them to store every frame of a character's animation in one texture.

This generator packs your images into a grid, a single row or a single column, with optional padding. Alongside the PNG it writes either CSS classes that show each icon by background position, or a JSON map with each frame's exact coordinates for game engines.

How to use the Sprite sheet generator

  1. 1.Add images

    Icons or frames, in order. Transparent PNGs work best.

  2. 2.Choose the layout

    Grid, one row or one column, with padding between frames.

  3. 3.Download

    Save the PNG, then copy the CSS classes or JSON frame map.

Example: an 8-frame walk cycle

Eight 64 × 64 PNG frames of a character walking:

Layout
One row, 2 px padding
Sheet size
530 × 68 PNG
Frame 3
x 134, y 2, 64 × 64
Output
JSON frame map

The engine loads one image and steps through the eight frames using the coordinates in the JSON.

Fixed cells for animation

Every frame gets a cell the size of the largest image, with smaller frames centred inside, so an animation can step through the sheet at a fixed interval. Padding between cells stops neighbouring frames bleeding in when a game engine scales the sheet.

The JSON follows the common frames-plus-meta layout many engines and tools read. The CSS gives one class per image with its size and background position; file names become class names.

Frequently asked questions

Why use a sprite sheet at all?

One image loads faster than many small ones, and game engines draw from a single texture more efficiently.

Is the sheet ever scaled down?

No, because coordinates must be exact. If the sheet would be too large for browsers, you're asked to use fewer or smaller images.

Can I control the order?

Yes. Frames follow the list order; use the arrows to move them.

Are my images uploaded?

No. Everything is done in your browser.

More Image tools