Kharabeesh
On-device ع

Sprite Sheet Generator

Combine icons or game frames into one PNG (grid, row, column or packed) with a CSS file holding each image’s position and a JSON file for game engines.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Choose the images (icons or frames) and reorder them by dragging or with the arrows.
  2. Pick a layout: grid (equal cells for games), row, column or packed, plus the spacing.
  3. Download the PNG, or the full ZIP with CSS, JSON and a demo page.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: jszip (open-source libraries bundled with the site).
  • Works offline after you open it once.

Frequently asked questions

How do I use the CSS?

Upload sprite.png and sprite.css, then give an element two classes: <i class="sprite sprite-name"></i>. Class names come from file names (Latin letters and digits).

Grid or packed?

Grid gives each image a cell the size of the largest image (good for animation frames). Packed places images on shelves by height for the smallest area.

Why add spacing?

When scaled, a pixel from a neighbouring image can bleed in. 2 px of spacing prevents it.

GIF files?

Only the first frame is used. To split an animated GIF into frames, use “GIF Frames”.

Related tools