Sprite Sheet Generator
Combine 2 to 64 PNG, JPG or WebP images into one sprite sheet. Set cell size, columns, spacing, padding, background and fit, reorder frames, then download the PNG plus a JSON coordinate map and CSS background-position classes.
Combine 2 to 64 PNG, JPG or WebP images into one sprite sheet. Set cell size, columns, spacing, padding, background and fit, reorder frames, then download the PNG plus a JSON coordinate map and CSS background-position classes.
Sprite Sheet Generator packs several images into a single grid image for games, animations and CSS sprites. Add 2 to 64 PNG, JPG or WebP images; they keep the order you selected them in, and you can reorder or remove frames before generating. Choose the cell width and height, the number of columns, the spacing between cells, the outer padding, a transparent or solid background, and contain, cover or stretch fitting.
The preview shows the exact sheet with optional grid lines and frame numbers that are never exported, along with the final sheet dimensions. Download the PNG together with a JSON coordinate map and a CSS file of background-position classes. Every coordinate follows the same rule: x = padding + column × (cell width + spacing), and y = padding + row × (cell height + spacing).
x = padding + column × (cell width + spacing) and y = padding + row × (cell height + spacing), counting columns and rows from 0. The JSON and CSS use exactly these values.
Up to 64 frames and up to 8,192 px per side or about 16.7 megapixels in total. The tool shows an error if your settings would exceed this.
No. They are drawn on a separate preview layer and are never included in the downloaded sprite sheet.
From each file name, lowercased with spaces and symbols turned into hyphens and prefixed with “sprite-”. Duplicate names get a number added.
Contain fits the whole image inside the cell, cover fills the cell and crops the edges, and stretch resizes the image to exactly the cell size.
Yes. Choose a transparent background and the PNG keeps transparency; choose a solid colour to fill the empty areas.
PNG, JPG and WebP files up to 40 MB and 30 megapixels. Each file’s signature is checked and the whole image is decoded before use, so GIF, SVG, damaged files and files renamed from another format are refused with a clear message.
No. Images are opened and processed in your browser on your device. Nothing is uploaded, and images, pixels, settings and results are not saved in browser storage. Reset releases them from memory.