How to turn a video into a sprite sheet
A sprite sheet packs every frame of an animation into one image, so a game loads one texture instead of dozens. Here's how to get from a video clip to a sheet your engine can use, without installing anything.
1. Start with a good clip
The cleaner the source, the cleaner the sprite. Aim for:
- A flat, even background, ideally pure green or a colour that does not appear on your subject. AI video generators respond well to prompts like "on a solid green background, studio lighting".
- A locked camera. Any camera movement ends up baked into every frame.
- One complete motion: a single walk cycle, attack or idle loop. Short clips (1 to 3 seconds) make manageable sheets.
2. Trim to the exact loop
Load the video in the tool, play it, and pause where the motion begins. Click Set Start to current position, then find the frame where the motion is about to repeat and click Set End. Setting the end one frame before the pose repeats avoids a visible stutter when the animation loops.
3. Pick a capture frame rate
Frame count is duration × FPS, and every frame adds to the sheet size. For most 2D games, 8 to 12 fps looks deliberate and keeps sheets small. Smooth UI animations may want 24 fps. The estimate box shows frame count and approximate size before you commit.
4. Remove the background
Tick Remove Background, then click the backdrop in the live preview to sample its exact colour. Raise tolerance until the background disappears but your subject stays solid. Our green-screen guide covers feathering and spill in detail.
5. Trim transparent padding
Most clips have a lot of empty space around the subject. Trim transparent padding crops every frame to one shared bounding box, which is often the biggest single size saving. Because all frames share the same box, the animation won't jitter, and the offsets are written into the JSON so the engine can place the sprite exactly.
6. Choose the layout and format
- Columns: leave at auto for a roughly square sheet, or set 1 for a single horizontal strip if your engine expects that.
- WebP vs PNG: WebP is much smaller. PNG is lossless and every tool reads its transparency correctly. When in doubt, ship PNG.
- Power-of-two padding: only needed for older GPUs or specific mobile targets.
- Max texture size: many mobile GPUs cap textures at 4096×4096. If the sheet dimensions shown under the preview exceed that, lower the scale or FPS.
7. Export and iterate
Click Process File. Scrub the preview to check individual frames, then download the sheet and the .json atlas. Want a smaller file? Use Rebuild to try different scale, quality and column settings instantly without decoding the video again.
Clean up in the editor
Click Open in Sprite Editor under the results to send the sheet straight to the Sprite Sheet Editor. Step through frame by frame, delete the frame that repeats frame 1 (the usual cause of a loop hitch), reorder or duplicate frames, then export a new sheet and JSON.
Next step
Load your new sheet in an engine: see Phaser and PixiJS loading examples.