Two different image sizes
8 × 8 + 4 × 4 → grid cells 8 × 8
Grid uses the largest width and height as cell dimensions. JSON records each original image size, excluding unused cell space. Compact packing compares shelf layouts without rotating images.
FREE · IN YOUR BROWSER
Upload PNG images → reorder → choose grid or compact packing → export PNG and JSON, with optional CSS sprite code. Images stay in your browser.
No account needed.
Or drop up to 256 PNGs here. 10 MB per file. Images stay in your browser.
Upload PNG images to enable settings, preview, and export.
SEE THE MATH
8 × 8 + 4 × 4 → grid cells 8 × 8
Grid uses the largest width and height as cell dimensions. JSON records each original image size, excluding unused cell space. Compact packing compares shelf layouts without rotating images.
Sprite Sheet Maker combines separate PNG images into one PNG sheet with matching coordinate data. Upload a group of images, review their order, choose a grid or compact arrangement, and set the space around them. You can download the sheet, JSON, optional CSS sprite rules, or the selected images in a ZIP.
The tool processes files in your browser. It does not send image data to a processing server or save a reusable project for you. Keep your source PNGs and downloads if you want to continue later. A page reload clears the current images, and a new upload replaces the current list rather than appending to it.
Choose PNG images opens a file picker that accepts multiple files. You can also drop a group onto the upload area. Select the entire group you want to work with in one upload. The tool checks that every input is a nonempty PNG within its limits; changing a filename extension does not convert an unsupported image into PNG.
You can load up to 256 images, with a maximum of 10 MB per file. Each image must fit within 4096 pixels per side, and all loaded images together must contain no more than 16 million pixels. Pixel totals refer to decoded dimensions rather than compressed file sizes. A collection of small files can still exceed that total if their canvases are large.
After loading, each list entry shows its name, dimensions, thumbnail, inclusion checkbox, and ordering controls. The displayed filename includes a numeric prefix and a sanitized version of the original name. This keeps exported filenames distinct even when different source files have the same original basename.
Drag a Move handle to another visible frame to reorder the list. You can also focus the handle and press the up or down arrow key, or use the Up and Down buttons on a frame. These alternatives allow ordering without dragging. The first frame cannot move farther up, and the last cannot move farther down.
Grid placement follows the list order. Compact packing determines physical positions from image sizes, but its JSON frame array still follows the list. Reordering or removing an image resets manual frame selections, so review the Include checkboxes afterward. The original source index remains available in exported metadata even after the list changes.
Clear an Include checkbox to exclude that image from the current exports. Select all restores the manual selection, and Select none disables exports until an image is selected again. Remove deletes an image from the current list; upload the group again if you need to restore a removed source. Inspect frame chooses the image for the optional MakeCode code panel without changing its position.
Grid assigns every selected image a cell with the largest selected width and the largest selected height. Images keep their own dimensions and sit at the top-left corner of their cells. A smaller image is not enlarged to fill its cell. Any unused part of the cell receives the sheet background.
Columns accepts whole numbers from 0 to 256. Zero chooses an automatic arrangement based on the selected count and cell dimensions. A positive value requests that many columns, capped at the number of selected images. The grid fills left to right and then starts the next row. The final row can contain unused cells when the count does not divide evenly.
For example, three 8 by 8 images, two columns, 1 pixel of spacing, and a 2 pixel outside margin produce a 21 by 21 sheet. The frame positions are 2,2; 11,2; and 2,11. If one image is only 4 by 4, it keeps that size inside the same 8 by 8 grid cell. Its JSON rectangle describes the image, not the entire cell.
Compact pack arranges images on shelves after considering their heights and widths. It compares several candidate shelf widths and keeps the valid arrangement with the smallest resulting area among those candidates. This is a deterministic packing method, not a guarantee that no smaller arrangement exists.
Compact mode does not rotate images, trim transparent borders, or resize pixels. Existing transparent padding inside a source PNG remains part of its rectangle. Images with different dimensions can therefore pack differently from equally sized grid cells, but their exported frame dimensions remain unchanged. The Columns setting applies only to Grid and does not control compact positions.
Check the preview and download JSON after switching layouts. A sheet's appearance can change even though the frame array retains the same list order. If your own code identifies images by filename, use the filenames in the exported data rather than assuming that neighboring JSON entries occupy neighboring positions on the sheet.
Spacing controls the gap between neighboring image positions. Margin adds an outside border around the assembled sheet. Both accept whole numbers from 0 to 256 pixels. They affect the combined PNG dimensions and frame offsets, but do not modify the dimensions of an individual source image. Blank, negative, fractional, or out-of-range values produce an error instead of a valid export.
Transparent leaves empty areas transparent and preserves the images' transparency in the combined sheet. The preview checkerboard is not included in the image. Solid color fills empty areas and composites transparent or partially transparent image pixels over your selected color. PNG export otherwise keeps original colors; choosing a layout does not reduce the images to a shared palette.
The solid background belongs to the assembled sheet. Download frames ZIP exports individual decoded source images, so it does not add that sheet background, spacing, or margin to each frame. Use the combined PNG when you need the flattened composition, and use the ZIP when you need separate selected images.
Download sheet PNG saves sprite-sheet.png, and Download JSON saves sprite-sheet.json. The JSON has a frames array with one entry for every selected image. Each entry contains filename, a frame rectangle, source dimensions, a source rectangle, and sourceIndex. Frame coordinates use pixels from the top-left corner of the combined PNG.
The rectangle's x and y locate the image; w and h give its original width and height. The source-size fields preserve those dimensions, while rotation and trimming flags are false. A zero-based source index refers to the original upload order. Reordering changes the array order without changing which original source each entry identifies.
The meta section includes the image filename, sheet size, RGBA format, and scale. Download the PNG and JSON after making your final changes so their layouts match. The tool provides this coordinate structure for your code to read or adapt; it does not install the sheet into a specific engine or create an animation timeline.
Download CSS generates a rule for each selected image using numbered selectors such as .sprite-1. Each rule sets inline-block display, the image's width and height, the sheet filename, a negative background position, and no-repeat behavior. The coordinates come from the same arrangement used by the PNG and JSON exports.
Keep sprite-sheet.png where the CSS image reference can find it, or update that reference when moving or renaming the file. Apply the appropriate numbered class in your own page. The tool downloads rules; it does not add HTML elements to your project. Regenerate CSS after changing order, selection, layout, spacing, or margin, since the selector-to-frame mapping or offsets may have changed.
Download frames ZIP includes the selected individual PNGs and a frames.json manifest. The manifest lists filenames, dimensions, original source indices, and null duration values because these separate PNG inputs do not supply GIF timing. It describes individual images rather than positions on the assembled sheet.
The ZIP uses standard STORE entries and includes a central directory and CRC checksums. PNG image data is already compressed. The archive supports up to 257 files including its manifest and a total file-data limit of 128 MB. Extract it to access the images individually; it does not contain the combined sheet PNG, coordinate JSON, or CSS download.
The output sheet must fit within 4096 pixels per side and 16 million pixels overall. Padding and unused grid space count toward the output area. An accepted set of source images can exceed this output limit once large margins or a wide grid are added. Adjust columns, reduce spacing or margin, change layout, or select fewer images before exporting again.
The controls show an error when settings are invalid and disable downloads while processing. If nothing is selected, restore at least one Include checkbox or choose Select all. The sheet preview is a fitted display of the result; the downloaded PNG uses the actual pixel dimensions reported beside the preview.
MakeCode code for inspected frame copies one image expression for frames up to 256 by 256 pixels. It maps that frame to the MakeCode palette with binary transparency. It does not change the sheet PNG, generate a complete animation, or export the whole atlas as code.
Use GIF to Sprite Sheet for frames stored in an animation, Sprite Sheet Splitter to separate an existing sheet, Sprite Sheet to GIF to animate a regular grid, and Pixel Art Scaler to resize pixel art as a separate step.
Drag a Move handle, focus it and press the up or down arrow, or use the Up and Down buttons. Grid follows list order. Compact positions depend on sizes; JSON preserves list order.
An array of named frames with x, y, w, h, sourceSize, spriteSourceSize, and sourceIndex, plus the PNG filename and sheet size. The export does not trim or rotate images.
Yes. Each numbered sprite class uses the exported image filename, original dimensions, and negative background-position offsets from the same layout. Keep sprite-sheet.png beside the CSS file.
Up to 256 PNG images, 10 MB each, and 16 million total input pixels. Output supports 4096 pixels per side and 16 million pixels. A new upload replaces the current list.