Join images side by side, stacked or in a grid
Sprite Sheet Generator
Pack many icons or frames into one PNG and get the CSS and JSON that point at each one.
Loading tool…
How to use sprite sheet generator
Drop all your icons or frames at once; add more later if you need to.
Choose a grid, a single row or a single column, and set the gap between sprites.
Set the CSS class prefix and the sheet's file name.
Build the sheet and download the ZIP with the PNG, CSS and JSON, or copy the code directly.
What this tool does
- Keeps the upload order, so animation frames stay in sequence.
- Writes a CSS class per sprite with its width, height and background position.
- Writes a JSON frame map with x, y, width and height for game engines and canvas code.
- Adds an optional gap so neighbouring sprites do not bleed when the sheet is scaled.
How the result is verified
The PNG is decoded again and must match the planned width and height used for every CSS and JSON coordinate, and the ZIP is reopened to confirm all three files are inside.
Frequently asked questions
How are the CSS class names chosen?
Each class is the prefix plus the file name in lower case, with spaces and symbols turned into hyphens. Duplicate names get a number added.
Does the JSON work with game engines?
It uses the common frames and meta layout with x, y, w and h per frame, which Phaser, PixiJS and many loaders read directly or with a small adapter.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Cut an image into a grid of tiles
Encode an image as a Base64 data URI for HTML or CSS
favicon.ico, PNG, Apple touch and Android icons from one logo