Sprite sheet maker:
one PNG with JSON and CSS

This sprite sheet maker combines your frames or icons into one PNG and writes their positions as JSON and CSS. Add images, arrange them in a grid or a strip, set padding and edge extrusion, then save the files one at a time or as a ZIP. It runs in your browser.

Files stay on your device.

1. Add images

Or drop them here. PNG, JPEG, WebP, GIF, BMP, TIFF, AVIF and SVG. An animated file supplies one still image.

No images selected

    2. Layout settings

    Sprites keep their original oriented dimensions. Grid columns use their widest sprite; rows use their tallest. Padding surrounds the sheet and separates cells. Extrusion repeats edge pixels outside each sprite rectangle.

    Choose local images to begin.

    3. Preview and downloads

    Your sprite sheet will appear here.

    Sprite sheet preview

    Expanded sprite sheet preview

    The checkerboard shows transparency. It is not part of the PNG.

    Generate a sheet to see its dimensions and downloads.

    The preview is the exported PNG. Choose Fit, actual pixels or a larger zoom. At a larger zoom, scroll inside the preview to see every part. Expand preview opens a larger view scaled to fit. The checkerboard shows transparency and is not part of the file. Changing the images or settings clears the result until you generate again.

    Matching coordinates

    sprites.json uses the common atlas layout: a frames object keyed by file name, each with frame x/y/w/h in pixels from the top left, plus meta.image and meta.size. Rectangles exclude padding and extrusion; sprites are never rotated, resized or trimmed. Repeated file names get -2, -3 before the extension, and every entry also records its index and sprite-N ID.

    Keep sprites.png beside sprites.css. Use <span class="sprite sprite-1"></span> for the first sprite, sprite-2 for the second, and so on. IDs follow the final image order. Add an accessible label when a sprite conveys information.

    The ZIP holds the identical sprites.png, sprites.json and sprites.css, stored uncompressed and without ZIP64; if that format limit is reached, the individual downloads remain.

    How to make a sprite sheet

    Select Choose images, or drop files onto the box. The list shows the files in sheet order, left to right and then top to bottom. Use the arrow buttons to move a file, the cross to remove it, and Sort by name to put frame2 before frame10.

    In Arrangement, choose Grid, Horizontal strip or Vertical strip, and set Columns for a grid. Padding (px) starts at 2 and Edge extrusion (px) at 1. Background stays Transparent unless you pick Solid color.

    1. Select Choose images and add your frames.
    2. Put them in order with the arrows or Sort by name.
    3. Set the arrangement, padding, extrusion and background.
    4. Select Generate sprite sheet, then Download all (ZIP).

    The ZIP holds sprites.png, sprites.json and sprites.css. The PNG, JSON and CSS links save each file on its own. Changing an image or a setting clears the result until you generate again.

    How the sprite sheet generator places frames

    In a grid, each column is as wide as its widest sprite and each row as tall as its tallest. Frames of mixed sizes keep their own pixels and are never scaled, rotated or trimmed. The sheet is as large as its cells and padding, with no rounding up to a power of two.

    With the page settings, four 32 × 32 frames in 3 columns make a 110 × 74 pixel sheet. The first frame starts at x 3, y 3: 2 pixels of padding plus 1 pixel of extrusion. The same frames make a 146 × 38 horizontal strip or a 38 × 146 vertical strip. With padding and extrusion at 0 and 2 columns, they fill 64 × 64 pixels.

    Padding is empty background around the sheet and between cells. Extrusion copies the outer row and column of each sprite outward, corners included. An engine that smooths a texture can read a pixel past a frame's edge, and extrusion gives it that sprite's own edge color.

    The JSON and CSS files

    sprites.json uses the JSON hash atlas layout. Its frames object is keyed by file name. Each entry holds frame x, y, w and h in pixels from the top left, plus sourceSize, spriteSourceSize, rotated false and trimmed false. The meta block names sprites.png and gives the sheet size.

    Rectangles cover the sprite only, never its padding or extrusion. Repeated file names gain -2, -3 before the extension, so three files named idle.png become idle.png, idle-2.png and idle-3.png. Each entry also keeps its index, its sprite-N ID and the original name.

    sprites.css has a .sprite class that loads sprites.png, then one rule per frame with its width, height and background position. Keep the two files in one folder and write <span class="sprite sprite-1"></span> for the first sprite. In the example above, sprite-2 sits at -39px -3px. IDs follow the final order, and file names never enter the CSS.

    Limits

    The tool reads PNG, JPEG, WebP, GIF, BMP, TIFF, AVIF and SVG files that this browser or the page's own decoders can open. An animated GIF or WebP gives its first frame only, and a multipage file gives one still image.

    A file that cannot be read is marked in the list and left out. The other images still form a sheet, labelled as partial, and sprite IDs count only the images that made it in.

    It places images in a fixed grid or strip and does not search for the tightest packing, so sprites of very different sizes leave empty space. There is no cap on image count or pixels. When the browser cannot create a canvas of the needed size, the tool names that size and keeps your images and settings.

    Decoding converts colors to sRGB, and EXIF and other file metadata are not copied. The ZIP is stored uncompressed without ZIP64; if it cannot be built, the single downloads remain.

    Questions

    Is there a free tool to create sprite sheets?

    This page has no account or payment step. Select Choose images, put the frames in order, pick Grid, Horizontal strip or Vertical strip, then select Generate sprite sheet. You get sprites.png with a JSON atlas and a CSS file, saved one at a time or together in a ZIP. Each file keeps the same order and rectangles.

    What size should a sprite sheet be?

    Only as large as the frames need. This tool adds up the cells, extrusion and padding, so four 32 × 32 frames with the default settings make 110 × 74 pixels. Some older engines and GPUs want power-of-two sizes. This tool has no setting for a power-of-two canvas. Check your engine's size requirements before using the sheet.

    Can this tool draw sprites for me?

    No. It arranges images you already have and does not create artwork, so it has no text prompt or AI model. Draw or export your frames in an art program first, then add them here. To give a photo or drawing a blocky retro look before packing, try the pixel art tool linked below.

    Can I turn a GIF into a sprite sheet?

    Not with this tool. An animated GIF or WebP supplies its first frame only, so a whole animation becomes a single sprite. Export the animation as numbered PNG frames first, such as walk1.png to walk12.png. Then add them all and select Sort by name, which puts walk2 before walk10.

    Can a game engine read the JSON file?

    A loader that reads the JSON hash atlas layout can use it: frames keyed by file name with frame, sourceSize and spriteSourceSize, plus meta.image and meta.size. Nothing is rotated or trimmed. Check your engine's documentation for the atlas formats it imports. Loaders that expect XML or another layout cannot read it as it is.

    Does the sprite sheet keep transparency?

    Yes, when Background is Transparent. The PNG keeps each pixel's alpha. Opaque colors stay exact after decoding to sRGB. The browser canvas discards hidden color values at zero alpha. Partly transparent colors can also change, especially at very low alpha, because the canvas stores them premultiplied. Choose Solid color to flatten every sprite and the gaps onto one background color.

    Are my images uploaded?

    No. The images are decoded, arranged and saved in your browser on this device, and the tool does not upload, log or store the files or their names. Names appear only in your list and in the downloaded JSON. Cancel stops the work, and Reset clears the list and the result.