Sprite Sheet Generator

Pack several images into one sprite sheet PNG with CSS classes and JSON coordinates.

Runs in your browser Free

    What is a sprite sheet?

    A sprite sheet packs many small images, such as animation frames, icons or button states, into one larger image. Game engines read animations from it, and websites use the CSS sprite technique to turn dozens of HTTP requests into one.

    What you get

    • A single PNG containing every frame
    • Ready CSS classes with background-position values for each frame
    • A JSON map with x, y, width and height of each frame for game engines and JavaScript

    Settings

    Choose the number of columns, spacing between frames, outer padding and background. The CSS and JSON update instantly as you change settings. Images are processed in your browser.

    How to use Sprite Sheet Generator

    1. Choose the images for the sprite sheet.
    2. Set the order, columns and spacing.
    3. Check the PNG and the CSS/JSON output.
    4. Download the sprite sheet and copy the code into your project.

    Why use this tool?

    Build sprite sheets quickly without paid tools like TexturePacker or calculating coordinates by hand.

    FAQ

    In what order are images placed?

    In the order of the file list, left to right and top to bottom. Use the arrows to change the order.

    Can I use images of different sizes?

    Yes. Each frame's position and size is listed separately in the CSS and JSON output.

    Which game engines does it work with?

    The JSON map is a simple coordinate list that Phaser, PixiJS, Unity or Godot can read easily.

    Related tools