Image Sprite Sheet Builder

Pack two to 128 images into one unscaled PNG atlas with matching JSON coordinates and CSS classes.

On-device No sign-up Free to use

Build sprite sheet controls

  1. 1 Add files
  2. 2 Arrange/Options
  3. 3 Download

Drop your images here

or choose them from your device

Choose 2–128 sprites. Their original dimensions are kept. Each file is limited to 64 MiB, the batch to 128 MiB, and the sprites together to 20 megapixels.

    ?

    Sprites are packed into rows no wider than this before any power-of-two rounding. Rounding happens afterwards, so the finished atlas can be wider or taller than this number; it is still bounded by the side and pixel limits.

    ?

    Pads the right and bottom edges so the atlas width and height are each 1, 2, 4, 8 and so on. Some older engines prefer that; it adds transparent pixels and the actual file size can vary. The atlas is refused if the rounded size breaks the pixel or side limits.

    Advanced

    Result

    Showing an example.

    Pack two 80 × 60 sprites in one row with two-pixel spacing.

    Packed 2 sprites into 166 × 64 pixels without resizing.
    red | 2 | 2 | 80 | 60
    blue | 84 | 2 | 80 | 60
    sprite-sheet.png (166 × 64 pixels)
    sprite-sheet.json
    sprite-sheet.css

    Loading the tool. Your result will appear here.

    https://usefreetools.net/image-sprite-sheet-builder · 20 November 2026

    Was this helpful?

    How to use Image Sprite Sheet Builder

    1. Choose two to 128 sprites and set their order with Up and Down.
    2. Set the packing row width and padding. Enable power-of-two sizing if your renderer needs it.
    3. Select Build sprite sheet. Each image keeps its original pixel dimensions.
    4. Keep the PNG atlas, JSON coordinates and CSS together.

    Example: Image Sprite Sheet Builder

    Pack two 80 × 60 sprites in one row with two-pixel spacing.

    You add
    Sprite images in atlas order: One red 80 by 60 PNG named red.png, then one blue 80 by 60 PNG named blue.png Packing row width in pixels: "1024" Padding around sprites in pixels: "2"
    You get
    Packed 2 sprites into 166 × 64 pixels without resizing. red | 2 | 2 | 80 | 60 blue | 84 | 2 | 80 | 60 sprite-sheet.png (166 × 64 pixels) sprite-sheet.json sprite-sheet.css

    Options

    Maximum width
    The entered width controls row packing before optional power-of-two rounding. An individual sprite plus padding must fit that row. Rounding can make the final atlas wider than the entered row width.
    Padding
    Padding sets the gap between consecutive sprites and the space at the outer edges. The exported coordinates locate the actual image pixels, excluding that gap. Use the JSON or CSS rather than estimating positions visually.
    Power-of-two sizing
    Round the completed atlas dimensions up to powers of two. This adds space at the right or bottom, while every sprite coordinate remains the same. Check the actual dimensions and bytes; a rounded canvas that exceeds the bounds is refused.

    Supported inputs and limits

    • Choose 2–128 JPEG, PNG or WebP images, up to 64 MiB each, 128 MiB in total and 20 megapixels combined.
    • Packing row width is 32–4,096 pixels before optional rounding; padding is 0–32 pixels.
    • The PNG is capped at 20 megapixels and 10,000 pixels per side, with input plus output capped at 40 megapixels.
    • Power-of-two sizing rounds each outer dimension up and can add transparent space; the rounded dimensions must still fit the limits.
    • Sprites are not resized or rotated.
    More details

    Row packing preserves order rather than optimizing every empty space.

    CSS names are cleaned from file names and repeated names receive suffixes.

    Source metadata is not carried into the atlas.

    Where your input is processed

    This tool does not upload your inputs. See the limits for anything saved on your device.

    Using the exported coordinates

    The JSON map records each sprite’s x and y position from the top-left of the PNG, plus its original width and height. The CSS file uses those same coordinates as negative background positions. Keep the three downloads together under their original filenames, or edit the CSS image path if you rename the PNG.

    Questions about Image Sprite Sheet Builder

    Why is there empty space at the end of a row?

    The next sprite moves to a new row if its full width and padding do not fit. This simple row packing preserves the file order and original size.

    Can two files have the same name?

    Yes. The CSS and JSON names receive numbered suffixes so each sprite has a distinct entry.

    Does the CSS file resize sprites?

    No. Each class sets the original sprite width and height and a negative background position into sprite-sheet.png.

    Page updated · Project managed by Tony Hines · Report a problem with Image Sprite Sheet Builder