What is a sprite sheet?
It is one image that holds many smaller pictures in a grid. A game or a web page loads the single file and then shows only one frame at a time by choosing which part of the picture to display.
Which file types can I use?
PNG, JPG, WebP, GIF, AVIF and BMP are accepted, up to 128 files. Any other type triggers a message asking you to use one of those. Whether a file opens also depends on what your browser can decode.
Does it use an animated GIF as many frames?
No. For an animated file, only the first decoded picture is used. To use every frame of an animation, save the frames as separate images first and choose them all.
What do the coordinates JSON and CSS contain?
The JSON lists the sheet size, frame size, columns, rows, gap, padding and, for each frame, its name, x, y, width, height and original size. The CSS gives one class per frame with a width, a height and a negative background position.
What do gap and padding do?
Gap is the empty space between frames. Padding is the empty border around the whole grid. Both are in pixels and both increase the final sheet size, so a big value can make the sheet too large.
Why do I see an error that the sheet would be too large?
The sheet would pass 8192 pixels on a side or 16 million pixels in total. Lower the frame size, use more columns for a tall sheet, or reduce padding and gap, and try again.
Are my images uploaded?
No. The images are read and drawn on a canvas inside your browser, and they stay on your device. The PNG, JSON and CSS are made locally.
Can it save a smaller or compressed PNG?
It saves a plain PNG from the canvas and gives no compression or quality setting. Use an image compression tool afterwards if file size matters to you.
How is it different from a collage maker?
A collage is for looking at. A sprite sheet uses fixed equal cells and gives you exact positions, so a program can find each frame. This tool is built for that second purpose.
Hvordan bruker du Spritesheet-generator?
Velg bilderammer, angi felles rammestørrelse og antall kolonner, og lag et spritesheet med nedlastbare koordinater.
Lastes dataene mine opp til en server?
Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.