Claude Game Studio

Sprite sheet maker

This sprite sheet maker packs PNG frames into a transparent sheet and exports the exact frame coordinates as JSON, entirely in your browser.

Choose between 1 and 64 PNG frames.

Loading the two-frame robot…

Pack frames without changing their pixels

Drop up to 64 PNGs onto the workspace. A file called walk-2.png appears before walk-10.png. Each cell takes the width and height of your largest frame, with the padding added around all four sides. Smaller frames sit at the top left of their cells; their JSON crops keep their original size. Nothing is trimmed, stretched or rotated.

Set padding to 0 for adjacent pixel-art frames, or add a gap when the renderer samples across the edge. The animation shows one source frame at a time, so you can catch a missing frame before export. The sheet preview shows where the frames actually land. Both download buttons follow the current settings; download them together after changing the grid.

Load this sheet in a real platformer

The sample contains two 128 × 128 robot frames. With two columns and 2 px padding, the exported sheet is 264 × 132 px: the first crop begins at (2, 2), the next at (134, 2). This copy of the kit's Sparkwright platformer loads that PNG and JSON through the same loader linked below. Its robot body uses the two exported crops. The level, jumping, seeds and checkpoints are the existing starter.

Click or tap to start. Move with A/D or arrows, and jump with Space; phone controls are inside the game. Open the game.

import { loadSheet, drawSheetFrame } from "./sheet-loader.mjs"; const sheet = await loadSheet("./sprites.json"); drawSheetFrame(ctx, sheet, 0, 20, 20, 64, 64);

Choose a sprite sheet workflow

CodeAndWeb's sprite sheet packer exports TexturePacker JSON formats for Phaser and PixiJS, plus CSS and LESS. CodeShack adds several packing algorithms and coordinate formats. Those are useful when the receiving engine already expects a particular format.

Here, use the fixed grid for frame-by-frame animation, send drawings directly from the pixel art maker and read the small Canvas loader before adding it to your own game. Try the image converter if the first frame starts as a larger image. Files stay in your browser; exports are the saved copy of your work.

Questions

What is a sprite sheet maker?

A sprite sheet maker combines separate animation frames into one PNG and records the crop coordinates for each frame in a JSON file. This maker uses a fixed grid, preserves each image's size and keeps the background transparent.

How do I make a sprite sheet from PNG files?

Drop your PNGs onto the maker, set the columns and padding, check the animation preview, then download Sheet PNG and Frame JSON. Files start in natural filename order, so frame-2 comes before frame-10. Use Earlier to change that order.

Can I use frames from the pixel art maker?

Yes. In the pixel art maker, draw or copy frames and press Send frames to sheet maker. The frames transfer through this browser's local storage at their original pixel size. Press Use editor frames here to load that drawing again.

How do I load the sprite sheet in a game?

Keep sprites.png and sprites.json in the same folder. The JSON lists x, y, w and h for each crop. The downloadable sheet-loader.mjs reads those crops and draws a selected frame with Canvas drawImage; the platformer example below uses that loader.

Put your assets into a playable game. Try the ten game templates or get the kit.