What is a sprite sheet?
A sprite sheet packs many small images into one larger image. In web design, CSS sprites let a page show dozens of icons while downloading a single file, and each element displays its icon by shifting the background position. In game development, sprite sheets (also called texture atlases) hold every frame of a character’s animation, which the engine draws one after another. Fewer files means fewer requests, faster loading and smoother rendering.
Using the CSS
The generated CSS defines a base class with the sheet as its background and one class per sprite, named after the file (for example .sprite-home). Add both classes to an element, such as <i class="sprite sprite-home"></i>, and it shows that icon at its exact size. Put the PNG next to your stylesheet, or change the URL in the CSS to where you host it.
Using the JSON in a game engine
The JSON file follows the widely used TexturePacker hash format, with the frame rectangle and size of every sprite plus the sheet’s dimensions. Engines such as Phaser and PixiJS can load it directly as an atlas, and it is easy to read from Unity, Godot or custom code. For animations, name your frames with numbers (walk-01, walk-02…) so they are sorted in order, and use a single row for classic strip animations.
Tips
- Add 1–2 px of padding so neighbouring sprites never bleed into each other when scaled or filtered.
- Use uniform cells for animation frames, so every frame has the same size and anchor.
- Use packed mode for icon sets with mixed sizes to save space.
Have an animated GIF? Split it into frames with the GIF Frame Extractor and drop them here. To cut an existing sheet back into tiles, use the Image Splitter.
All packing happens in your browser, so artwork for unreleased games and products never leaves your device.