Using the Sprite Sheet Maker
Sprite Sheet Maker places two, three, or four images on one PNG. Each image keeps its own width and height. The cell is as wide as the widest image and as tall as the tallest image, and each image is copied into the top-left of its cell.
You choose the number of columns, the outer padding, the gap between cells, and either a transparent background or a hex color. The download is sheet.png. The result also lists JSON coordinates and CSS background-position values.
PNG is specified at https://www.w3.org/TR/png/. A transparent background uses PNG alpha. A colored background is flattened into the sheet before the images are copied.
Columns, padding, and spacing
Columns run from 1 to 4. Rows are the image count divided by the columns, rounded up. Two images and two columns make one row.
The sample images are 20 by 10 and 10 by 20. With two columns and no padding or spacing, the sheet is 40 by 20. The first image remains 20 by 10 and the second remains 10 by 20.
Padding and spacing are whole pixels from 0 to 80. The canvas is rejected if either side is greater than 4000 pixels.
Coordinates and CSS
Each sprite records x, y, width, and height. The CSS value is background-position with those x and y offsets.
The first sample sprite sits at 0,0, so its CSS is background-position: -0px -0px. The second sits at x 20 on the same row.
Copy the JSON if a game or a stylesheet needs the numbers. The PNG is the picture. The JSON is the map.
Other image layouts
A collage is a different layout. It is not this grid.
The Photo Collage Maker arranges photos as a collage. Use this page when you need sprite coordinates.
Images that need a new pixel size can be resized before they are placed on the sheet. Do that as a separate step so the sprite coordinates match the final pixels.
The Image Resizer is the tool for that size change. Bring the resized files back here afterward.
Frames and batches
A GIF that should become separate frames is not unpacked here. Bring the frames as separate images.
The GIF Frame Extractor writes those frames. This page then places the still images you choose.
A batch of size changes is also a separate step. This sheet records coordinates after the images already have the size you want.
The Batch Image Resizer changes sizes in a batch. It does not record sprite coordinates.
Limits
At least two images are required, and four is the maximum on this form. Each image follows the usual 5 MB image limit.
Accepted inputs are PNG, JPG, GIF, WebP, BMP, and AVIF. A file the image reader cannot open is rejected.
The sheet is not stored. Download sheet.png if you need to keep it.
A JPEG source
A JPEG can sit on the sheet. The sheet itself is a PNG so the transparency can remain.
The PNG to JPG tool is the opposite conversion, for a picture that must become a JPEG afterward.
Convert after you export if a JPEG is required. The coordinate JSON still describes the PNG.