Skip to content

Sprite Sheet Maker

Arrange up to four images on a PNG sprite sheet. Images keep their own width and height. Padding, spacing, columns, and the background are the values you enter.

Result

Choose images

How to Use

  1. 1 Choose at least one image. Add up to three more.
  2. 2 Set columns, padding, spacing, and a background or transparent.
  3. 3 Download sheet.png and read the coordinates.

Example Output

  • Two images in one row with 8 pixels of spacing.

About This Tool

The JSON coordinates use the top-left of each image. A transparent background is available. The download is sheet.png.

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.

Frequently Asked Questions

Do images keep their size?

Yes. An image is copied at its own width and height. It is not stretched to the cell.

What is the sample sheet size?

A 20 by 10 image and a 10 by 20 image, in two columns with no padding or spacing, make a 40 by 20 sheet.

What is in the JSON?

Name, x, y, width, height, and a CSS background-position for each sprite.

Can the background be transparent?

Yes. Choose transparent for PNG alpha, or enter a hex color.

How many images?

How many images? On this page the answer stays with the result from the submit you just made. Copy the sentence on screen rather than reusing a neighboring FAQ word for word. FAQ 5 is only about this question.

What is the canvas limit?

4000 pixels on a side. Padding and spacing are 0 to 80.

Is the sheet stored?

No. Download sheet.png.

Does this unpack a GIF?

No. Extract the frames first, then place the still images.