Convert GIF to Sprite Sheet
Upload a GIF, extract all frames, and arrange them into a grid-based PNG sprite sheet. Pick column count and download.
Drop in a GIF and get back a single PNG with every frame laid out on a grid — pick the column count and the rows fill themselves. Game engines like Unity, Godot, and Phaser read sprite sheets natively, so this skips the Photoshop slicing step entirely. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool parses your GIF binary to pull out individual frames, including any transparency data. It then creates a canvas sized to fit all frames in your chosen column layout, draws each frame into its grid cell, and exports the whole canvas as a lossless PNG. No quality loss, no server round-trip.
Examples
Pixel Art Character Walk Cycle
A game dev has a 32×32 pixel character with an 8-frame walk animation saved as a GIF.
walk-cycle.gif
8 frames, 32×32px each
Columns: 4
sprite-sheet.png
128×64px (4 cols × 2 rows)
Transparent background
UI Loading Spinner for a Web App
A front-end developer needs a CSS sprite animation instead of embedding a GIF directly — smaller file size and better control over playback speed.
spinner.gif
12 frames, 48×48px
Columns: 12
spinner-sprite.png
576×48px (single row)
Use with CSS steps(12) animation
Explosion Effect for a 2D Shooter
An indie dev exported a 30-frame explosion from Aseprite as GIF. The game engine (Godot) needs a single sprite sheet PNG with a known grid size for the AnimatedSprite2D node.
explosion.gif
30 frames, 64×64px
Columns: 6
explosion-sheet.png
384×320px (6 cols × 5 rows)
Ready for Godot, Unity, or Phaser
Who Uses This
Convert GIF animations into sprite sheets for Unity, Godot, Phaser, or any engine that reads grid-based frames.
Replace heavy GIFs with lightweight CSS sprite animations — fewer requests, smaller payload, exact timing control.
Export animations from Aseprite or Piskel as GIF, then convert to a sprite sheet for final delivery.
Build sprite sheets for iOS SpriteKit or Android frame-by-frame animations without installing desktop software.
Common Mistakes
Setting columns to 10 when you only have 8 frames creates empty cells and wastes texture memory. Match your column count to a factor of your total frames — 8 frames works well with 4 or 8 columns.
Renaming an MP4 or WebM to .gif doesn’t make it a real GIF. The parser won’t find valid frames. Make sure your file is an actual GIF89a animated image.
A sprite sheet is just a static image — it doesn’t store delay values between frames. You will need to set the animation speed separately in your game engine or CSS. Note the original GIF’s frame rate before converting if timing matters.
Technical Details
- Processing: 100% client-side — your GIF never leaves the browser
- Max File Size: 50 MB
- Output Format: PNG with transparency support
- Browser Support: Chrome, Firefox, Safari, Edge
- Frame Parsing: Full GIF89a spec including disposal methods and transparency
Frequently Asked Questions
What is a sprite sheet and why use one instead of a GIF?
A sprite sheet packs all animation frames into one image on a grid. Game engines and CSS animations read individual frames by position rather than loading separate files. It is faster to render, gives you control over playback speed, and avoids the color and compression limits of the GIF format.
Does converting a GIF to a sprite sheet lose quality?
No. Each frame is drawn pixel-for-pixel onto the output canvas, and the result is saved as a lossless PNG. You actually gain quality since PNG doesn’t have GIF’s 256-color limit — though the source frames are still limited to whatever the GIF contained.
How do I use the sprite sheet in CSS?
Set the sprite sheet as a background image, size your element to one frame’s dimensions, then use a steps() animation to shift background-position across each frame. For a 12-frame horizontal strip, that’s animation: play 0.8s steps(12) infinite with a keyframe moving background-position from 0 to -100%.
Can I convert a sprite sheet back to a GIF?
Not with this specific tool, but TheToolApp has a sprite sheet to GIF converter that does exactly that. You’d specify the frame dimensions and column count, and it rebuilds the animation.
Is there a limit on how many frames the GIF can have?
There’s no hard frame limit. The real constraint is file size (50 MB max) and your browser’s available memory. A 200-frame GIF at 256×256 pixels works fine on most machines. Go past 500+ large frames and you might see the browser slow down, but it won’t crash — it just takes longer.