AI Sprite Sheet Fixer
AI models rarely produce a clean grid. Load the sheet, let the tool find each sprite, merge detached parts, drop duplicate frames, and rebuild the animation with uniform cells.
Useful for AI sheets that repeat an identical pose. Leave off for intentional holds.
Load a sheet to start.
Preview
After rebuilding, use the SpriteFrames generator
to turn the PNG + JSON into a Godot 4 .tres.
How it works
- Load the sheet. A transparent PNG is easiest; a flat background also works.
- Detect. Auto mode samples the corners, masks the background, finds connected regions, and merges nearby fragments. Grid mode uses the columns and rows you provide.
- Check the boxes. The preview shows what will become a frame. If two parts of a character are split, raise the merge gap; if specks appear, raise the minimum area.
- Build. Each region is trimmed, centered in one uniform cell, and packed into a clean grid.
- Export PNG + JSON, then import into your engine.
Auto vs grid
| Mode | Best for | Watch out for |
|---|---|---|
| Auto-detect | Uneven AI grids, transparent PNGs, flat backgrounds | Busy scenes; detached parts need a merge gap |
| Grid | Known columns/rows, consistent cells | Wrong counts cut sprites in half |
FAQ
Does this upload my sheet?
No. The image is decoded in the browser and processed on a canvas. Nothing is sent to a server.
What does Auto-detect do?
It samples the background color, builds a foreground mask, finds connected regions, merges nearby fragments, and turns each region into one frame. It works best on a flat or transparent background.
Why did it find too many or too few frames?
Increase the minimum area to ignore specks, increase the merge gap to join detached parts (a sword, a shadow), or switch to Grid mode and set the columns and rows yourself.
Can it remove duplicate frames?
Yes. Turn on “Drop near-duplicate frames” before building. It compares a small grayscale signature of each cropped frame and keeps the first of a near-identical pair.
Can it handle a busy background?
Not well. Auto-detect assumes a flat or transparent background. For a painted scene, remove the background with a matte tool first, then bring the transparent PNG here.