How to convert a GIF to a sprite sheet
- Drop an animated GIF above. The preview plays it at its original speed and shows the frame delays.
- Set the number of columns. With 0, up to 12 frames go in one row and longer animations become a roughly square grid. Add padding if your engine filters textures.
- Download the sheet, the sheet with its JSON frame data, or every frame as a separate PNG.
Using the sheet in a game engine
- Godot 4: in an
AnimatedSprite2D, open SpriteFrames, choose Add frames from sprite sheet and enter the columns and rows shown above. Then set the animation speed (FPS) from the timing line. - Unity: set the Sprite Mode to Multiple, slice by cell count in the Sprite Editor, and drag the slices into the scene to create an animation clip.
- Phaser 3:
this.load.atlas('fx', 'sprite.png', 'sprite.json'). Use each frame'sdurationwhen you build the animation for exact GIF timing.
Good to know about GIFs
A GIF can use up to 256 colors per frame and only has on/off transparency. Soft edges in GIFs are usually blended with a fixed background color. For the cleanest sprites, export from your original art instead when you have it.
To go the other way, from frames to a GIF, use the Sprite to GIF Maker.