Skip to content
OddsockLocal
Local

No files yet.

Waiting for inputRuns in this browser. Nothing is uploaded.

How to use

  1. Add the icons in order, already similar in size if they should fill the tile.
  2. Set columns, tile size and gap.
  3. Download the ZIP.
  4. Use the CSS or the JSON. Do not measure the sheet by hand.

What is Sprite sheet maker?

A sprite sheet fits every image into the same square, in columns that start at 4, tiles that start at 128 pixels, and a gap that starts at 0. Each source is contained, not cropped, so a wide frame gets bars inside its tile. The ZIP holds the PNG, a JSON list of names and positions, and a CSS file that sets each sprite as a background position. Class names are sprite-1 onward. The JSON records x, y, width and height.

Read more

128 pixels is a real display size for an icon and a coarse size for a detailed character. The sheet does not trim transparent margins and does not pack tightly the way a texture atlas would. Empty gap, if you add one, is part of the pitch the CSS uses, so the coordinates stay correct. Order is the order you add the files. A contact sheet looks similar and instead prints file names on a white page, with no CSS.

Output is a PNG sheet inside the ZIP, so transparency in the icons can survive. JPG would ruin that. If the icons were different sizes, they share one tile and the smaller ones float inside it. Normalize them first if they should fill the square.

Use cases

  • A game developer packing a row of 128-pixel icons and copying the CSS classes.
  • A student opening sprites.json to see sprite-1 at x 0, y 0.
  • A designer adding a gap and checking the CSS pitch includes it.
  • An illustrator seeing a wide prop letterboxed inside the square.
  • A teacher comparing the sheet with a contact sheet that labeled names and wrote no coordinates.

Four icons, one sheet, one stylesheet

Four square PNGs. Columns 4, tile 128, gap 0.

A ZIP with a 512 by 128 PNG, sprites.json placing sprite-1 at 0,0 and sprite-2 at 128,0, and CSS classes of 128 by 128 with matching background positions. A wide icon would be letterboxed inside its 128-pixel cell.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

The sheet PNG, sprites.css and sprites.json. JSON lists name, id, x, y, width and height.