Sprite Sheet Generator: CSS Sprites and Atlases

Pack many images into a single sprite sheet for faster websites and smoother games. Drop your icons or animation frames, choose the layout and spacing, and download the sheet together with ready-to-use CSS and a JSON frame map.

100% free No upload No watermark Works on mobile

Drop icons or animation frames

Files are ordered by name: frame-1, frame-2… · paste with Ctrl + V

PNG, JPG, WebP, GIF or SVG · up to 300 images

How to use the Sprite Sheet Generator

  1. Add your imagesDrop icons, UI elements or animation frames; they are sorted by file name.
  2. Choose a layoutGrid, single row or single column, with automatic or fixed columns.
  3. Set cells and paddingUse uniform cells (largest image or a fixed size) or keep each image’s own size, and add padding to prevent bleeding.
  4. DownloadGet the transparent PNG sheet with CSS classes and a JSON atlas, or the PNG alone.

Features

  • One image, many sprites

    Combine up to 300 images into a single transparent PNG.

  • Ready-made CSS

    A class for every sprite with background-position, width and height.

  • JSON atlas

    Frame coordinates in a TexturePacker-style hash, ready for Phaser, PixiJS and other engines.

  • Grid, row or column

    Lay out icon sets in a grid or animation strips in a row.

  • Pixel-art friendly

    Scale with nearest-neighbour so pixel sprites stay crisp.

  • Private

    Sprite sheets are built in your browser and never uploaded.

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.

Sprite Sheet Generator FAQ

Drop your images, choose grid, row or column, set the cell size and padding, then download the PNG with its CSS and JSON.

By file name, using natural number order, so frame-2 comes before frame-10.

The prefix plus each file name, for example .sprite-home or .sprite-arrow-left. You can change the prefix.

Yes. It uses the common TexturePacker JSON hash format that both engines can load as an atlas.

Yes. The sprite sheet is a transparent PNG.

No. Everything happens in your browser.

Private by design. Your images are processed in your browser and never uploaded.