Sprite Sheet Layout & JSON Frame Format Guide (Unity, Godot, Phaser)
A clean game sprite sheet arranges animation frames inside uniform grid cells (such as 32×32 or 64×64 px) paired with a JSON frame map listing { name, x, y, w, h } coordinates. Uniform cell sizing prevents pivot jitter between poses and works out of the box in Godot AnimatedSprite2D, Unity Sprite Editor, and Phaser 3.
Standard sprite sheet dimensions by engine
| Engine / Tool | Recommended cell layout | Texture filter setting | Native import workflow |
|---|---|---|---|
| Godot 4 | Uniform Cols × Rows grid |
Texture Filter: Nearest | AnimatedSprite2D → SpriteFrames → Add from Sprite Sheet |
| Unity 2D | Uniform cell size (32×32, 64×64) |
Filter Mode: Point (no filter) | Sprite Mode: Multiple → Sprite Editor → Slice by Grid |
| Phaser 3 / Canvas | Horizontal strip or grid + JSON | pixelArt: true in game config |
this.load.spritesheet('hero', 'sheet.png', { frameWidth: 32, frameHeight: 32 }) |
Example JSON frame atlas format
When you export from our Sprite Sheet Maker, the generated .json file looks like this:
{
"frame_width": 32,
"frame_height": 32,
"columns": 4,
"rows": 1,
"frames": [
{ "name": "walk-01", "x": 0, "y": 0, "w": 32, "h": 32 },
{ "name": "walk-02", "x": 32, "y": 0, "w": 32, "h": 32 }
]
}
Working with existing sheets (slicing & GIF previews)
If you downloaded an asset pack as one combined sheet and need separate PNGs or a preview GIF for your itch.io store page, use our Sprite Sheet Splitter to slice by Columns × Rows or auto-detect transparent sprite islands and download a ZIP or animated GIF in seconds.
Related sprite & animation tools
- Sprite Sheet Maker — pack up to 24 PNG frames into a sheet + JSON
- Sprite Sheet Splitter & GIF Converter — slice existing sheets into ZIP frames or GIFs
- Pixel Art GIF Editor — draw frames with onion skinning and export strips directly
Frequently asked questions
Should game sprite sheets use a uniform grid cell size?
Yes. Giving every animation frame the exact same cell width and height (such as 32×32 or 48×48) keeps the character's feet planted at a consistent pivot point so sprites never jitter between idle, walk, and jump frames.
What JSON fields do game frameworks expect for sprite sheets?
Most engines and custom loaders read frame_width, frame_height, columns, rows, and an array of frames containing { name, x, y, w, h } pixel coordinates.
Do modern engines still require power-of-two texture sheets (like 512×512)?
Desktop and modern WebGL2/HTML5 engines handle arbitrary dimensions, though keeping overall sprite sheets under 2048×2048 px ensures broad mobile GPU compatibility.
Last updated: