How to convert a GIF to a sprite sheet
- Drop the GIF on the box, choose it, or paste it. Every frame is rebuilt in full, including GIFs that only store the pixels that changed.
- Shorten it if you need to. Pick a frame range, keep every 2nd or 3rd frame, or type frames to skip such as
1, 3, 5-8. - Set the layout and press Play to check the timing.
- Download the PNG, or a ZIP with the PNG and the data files.
Timing is kept, not guessed
A GIF stores a delay for every frame. The preview plays each frame for its own time, the JSON files carry each frame’s duration in milliseconds, the Aseprite JSON gives Phaser per-frame timing, and the CSS animation uses the real delays. Delays of 0 or 10 ms are treated as 100 ms, the same as web browsers.
Keep every Nth frame without speeding up the animation. Skipped frames add their time to the frame before them, so the loop lasts as long as the original. Merge identical frames works the same way: a pose the GIF repeats ten times becomes one frame that lasts ten times as long.
We check our GIF reader against Chrome’s own decoder, pixel for pixel, on GIFs that clear, keep or restore the previous frame, interlaced GIFs and GIFs with their own colour tables.
Data files for your engine
- JSON (Hash) and JSON (Array) in TexturePacker’s format — Phaser reads both; PixiJS reads the Hash file, animation list included.
- Aseprite JSON — one tag per animation and every frame’s duration, so Phaser builds the animations with their timing.
- Sparrow XML — the format Friday Night Funkin’ mods and Phaser’s
atlasXMLread, with frames named the way FNF expects (idle0000,idle0001…). - CSS animation —
@keyframeswith the real frame timing, one class per animation.
For VRChat, pick the VRChat emoji preset: up to 64 frames on one 1024 × 1024 sheet, with the frame count and fps in the file name.
Use the result in Phaser
// preload
this.load.aseprite('fox', 'fox.png', 'fox.aseprite.json');
// create
this.anims.createFromAseprite('fox');
// 'fox_run' = the animation name, which starts as the GIF's file name
this.add.sprite(100, 100, 'fox').play({ key: 'fox_run', repeat: -1 });We load sheets made from GIFs in Phaser 3.90 and 4.2 as part of our tests; the animation keeps the GIF’s timing.
Specs and limits
| Input | Animated or still GIF; PNG, JPG and WebP frames can be added too |
|---|---|
| Frames | Up to 1,000 per GIF (500 on phones and tablets); a longer GIF keeps the first frames and says so |
| Damaged files | Frames that can be read are kept, with a note about what was missing |
| Output | PNG plus TexturePacker JSON (Hash, Array), Aseprite JSON, Sparrow XML, CSS animation |
| Privacy | The GIF is decoded in your browser and is not uploaded |
| Price | Free, no sign-up, no watermark |
FAQ
Why does my sprite sheet have fewer frames than the GIF?
Merge identical frames is on by default. Frames that repeat are combined and their time is added together, so the animation looks the same. Turn it off to keep every frame.
Will a GIF that only stores changed pixels come out right?
Yes. Every frame is rebuilt into a full image before it goes on the sheet, following the GIF’s own rules for clearing and restoring the previous frame.
Can I make the animation faster or slower?
Switch timing to Fixed FPS and set the frames per second. With GIF timing each frame keeps its original delay.
Can I paste a GIF link?
Not at the moment. Download the GIF first, then drop the file.
Is the GIF uploaded anywhere?
No. It’s read and converted in your browser.
More free tools
- Sprite Sheet Maker — combine PNG frames and several animations into one sheet