If your engine slices equal-sized cells, a PNG grid may be all you need. If it loads frames by name and rectangle, export the PNG with matching JSON. Check the importer before choosing: JSON formats differ, and you will still set timing and pivots in the engine.
A regular grid can be read from a small set of known values: cell width and height, frame count, columns, rows, margins and gaps. It is useful when every cell has the same dimensions and the importer can reconstruct the frame rectangles correctly.
For example, six 32 × 48 cells in three columns with no gaps or outer padding make a 96 × 96 image. Reading cell (column 1, row 0), counted from zero, gives rectangle x=32, y=0, width=32, height=48. The coordinates follow from the grid; you still need to check the import in your game.
If the importer assumes no gaps but your export includes them, it will read the wrong pixels. Keep the layout settings with the image. Use the frame-size guide to check cell alignment and the spacing and texture-bleeding guide when margins or sampling matter.
JSON is useful when the consumer needs explicit frame names and coordinates rather than reconstructing rectangles from a grid. Check the field names and structure your loader reads. Similar-looking JSON files are not necessarily interchangeable.
| Export | Use it with | What to check |
|---|---|---|
| PNG grid | An importer configured for uniform cells | Correct cell size, count, gaps, order and timing |
| PNG plus generic JSON | A custom importer you can adapt to documented rectangle fields | Parsing that schema and mapping frames into your engine |
| PNG plus Phaser-style JSON | A Phaser workflow expecting a compatible JSON atlas | Correct loading, texture keys, frame names and animation configuration |
Phaser's LoaderPlugin documentation describes loading an atlas image with its JSON data. Match the JSON schema to that loader; a generic rectangle list needs an adapter.
The texture atlas workflow offers generic and Phaser-style JSON with the PNG image. Generic output includes the image name, sheet dimensions and a list of named rectangles with source dimensions. Phaser output uses a named-frame map, rectangle coordinates, source-size fields and image metadata.
The exporter sets Phaser's rotated and trimmed flags to false: frames keep their original orientation and bounds. Set pivots in the art or engine, and try a small export with your actual filenames and frame sizes first.
A small illustrative geometry record looks like this:
{"name":"walk-02","x":32,"y":0,"w":32,"h":48,"sourceW":32,"sourceH":48}
The record locates walk-02 and gives its source dimensions. Its duration, gameplay state and foot anchor belong in the animation setup.
The export contains artwork and rectangles. Add the animation clip, frame durations and pivots in your engine; it does not include a native Unity or Godot project. The animation timing guide explains why a correct sheet can still play with the wrong rhythm.
For Unity or Godot, follow the importer you actually use. Do not select Phaser JSON simply because all three engines can render sprites. If a regular grid matches the engine's slicing workflow, the PNG and recorded layout values may be enough.
Use a few clearly named frames with visible differences. Check that the importer finds the image, reads the expected rectangles, resolves the names and displays each frame without clipping. Then define the intended timing and pivot in the engine and inspect the loop at real game scale.
If frames are missing, first check filenames, image references and the schema expected by the loader. If the wrong pixels appear, check coordinates and gaps. If the pixels are correct but the action jumps or runs too quickly, investigate pivot and timing instead of repacking the image blindly.
Use the browser sprite sheet editor to arrange existing frames, or the atlas export workflow for named rectangles. Keep the source artwork and export settings with the files.

Learn how canvas size, visible artwork, pivots, and grid math affect sprite frame dimensions before you pack an animation sheet.

Understand outer padding, gaps, edge extrusion, and sampler settings so you can diagnose texture bleeding without breaking sprite sheet slicing.

Choose load.spritesheet or load.atlas in Phaser using the same two real poses. Compare numeric frames, named frames, spacing and common loading errors.