GIF to Spritesheet

Split an animated GIF into frames and lay them out as one sprite sheet with JSON or Sparrow XML (FNF). Each frame keeps its own delay.

px
px
px
Your sheet and animation preview appear here
Data files (PNG is always included)
Free, no sign-up, no watermark. Up to 1,000 GIF frames and 16,384 px per side.

How to convert a GIF to a sprite sheet

  1. 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.
  2. 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.
  3. Set the layout and press Play to check the timing.
  4. 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 atlasXML read, with frames named the way FNF expects (idle0000, idle0001…).
  • CSS animation — @keyframes with 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

InputAnimated or still GIF; PNG, JPG and WebP frames can be added too
FramesUp to 1,000 per GIF (500 on phones and tablets); a longer GIF keeps the first frames and says so
Damaged filesFrames that can be read are kept, with a note about what was missing
OutputPNG plus TexturePacker JSON (Hash, Array), Aseprite JSON, Sparrow XML, CSS animation
PrivacyThe GIF is decoded in your browser and is not uploaded
PriceFree, 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