---
title: "GIF to Sprite Sheet: Extract Every Frame to a Grid"
description: "Drop an animated GIF and get every frame as a sprite on a grid. Remove duplicate frames, fix the order, and export a PNG sheet or JSON atlas for your engine."
canonical_url: "https://spritesheetgenerator.online/features/gif-to-sprite-sheet"
meta:
  author: "Dennis Postma"
  "og:description": "Drop an animated GIF and get every frame as a sprite on a grid. Remove duplicate frames, fix the order, and export a PNG sheet or JSON atlas for your engine."
  "og:image": "https://spritesheetgenerator.online/og-image.png"
  "og:image:alt": "Spritesheet Generator editor showing sprites arranged on a sheet grid"
  "og:title": "GIF to Sprite Sheet: Extract Every Frame to a Grid"
  "twitter:image": "https://spritesheetgenerator.online/og-image.png"
  "twitter:image:alt": "Spritesheet Generator editor showing sprites arranged on a sheet grid"
---

> Index of every page on this site: [llms.txt](https://spritesheetgenerator.online/llms.txt)

Feature

# **GIF to Sprite Sheet**

**Turn an animated GIF into a sprite sheet. Every frame comes out in order, ready to clean up and export as a grid your engine can slice.**

![Animated GIF being converted into a sprite sheet grid](https://spritesheetgenerator.online/features/gif-to-sprite-sheet.png)

Overview

## **Drop the GIF, get the frames**

**Drop one animated GIF on the editor and the splitter opens in GIF frames mode, with one sprite per frame. Confirm, and the frames land on the canvas like any other sprites. A GIF almost always carries frames a sprite sheet does not need, so the useful work happens next: finding repeats, cutting the empty margin, and checking the loop.**

What it does

### **Full frames, not patches**

Each frame is decoded at full canvas size, as it looks at that moment in playback, even when the GIF only stores the pixels that changed.

### **Duplicate detection**

Identical frames are flagged in a banner with a count. One click removes the extras.

### **Trim the margin**

GIF frames carry the full canvas. Trim Transparent shrinks every cell to the real content of the animation.

### **Order tools**

Reverse a run that plays backwards, delete half of a ping-pong loop, drag single frames into place.

### **Engine exports**

PNG sheet, JSON atlas, Godot SpriteFrames, Sparrow XML, Tiled tileset or a ZIP of single frames.

In practice

**A GIF is a stack of images, each with a delay and a disposal rule that says what to do with the previous image before drawing the next. Many encoders store only the rectangle that changed, so one frame inside the file can be a small patch rather than a full picture.**

Frames are decoded with the browser built-in ImageDecoder, which composes each patch onto what came before. What you get is the full picture at that point in playback. Chrome and Edge support ImageDecoder; in a browser without it, the GIF produces no frames, so try one of those if the splitter comes back empty.

**GIF delays are stored in hundredths of a second, and many viewers treat very short delays as a tenth of a second. To slow a moment down, some encoders repeat a frame several times instead of setting a longer delay. In a GIF that is invisible. In a sheet each repeat is a cell that costs texture memory and makes the frame count lie.**

After extraction, the editor hashes every frame and shows a banner when it finds exact copies. Open Details to see which frames match, or hit Remove to keep one of each. Long holds belong in your engine as per-frame durations, not as copies in the texture.

**Check for ping-pong loops**

Many GIFs play forward then backward, so the second half is the first half reversed. Those frames are not exact neighbours, so the duplicate check will not catch them all. Delete the reversed half and let the engine play the animation ping-pong instead.

**A GIF frame holds at most 256 colours, and one of them can be marked transparent. There is no partial alpha, so any soft edge in the original art was hardened or dithered against a background before the GIF was written. The conversion keeps every pixel, but it cannot bring back what the GIF never stored.**

Pixel art usually comes through clean, because it had hard edges and a small palette to begin with. Smoother art tends to arrive with a fringe of odd pixels around the outline. When the fringe is close to the old background colour, Remove background with a higher tolerance clears it along with the background. Per-colour recolor can replace a fringe colour across the whole layer, and the pixel editor handles the spots both miss.

**A GIF made for a web page and a sheet made for a game want different frame counts. On the web, extra frames cost only bandwidth. In a sheet they stay in texture memory for as long as the sprite exists, so a 24-frame idle is a poor trade when 8 frames read the same in motion.**

**The cleanup pass**

1. **1**Remove the exact duplicates the banner finds.
2. **2**Delete the reversed half of any ping-pong loop.
3. **3**Turn on Trim Transparent so cells shrink to the animation, not the GIF canvas.
4. **4**Play the preview and hide frames one at a time. If the motion still reads, delete them.

Frequently Asked

###

###

###

###

**More questions? **[**See the full FAQ**](https://spritesheetgenerator.online/faq)**.**

Read more

[**Full guide: GIFs into sprite sheets**](https://spritesheetgenerator.online/guides/gif-to-sprite-sheet) [** Sprite Sheet Splitter**](https://spritesheetgenerator.online/features/sprite-sheet-splitter) [** Export formats**](https://spritesheetgenerator.online/features/export-formats)

## **Convert a GIF to sprite sheet**

**Drop the GIF, clear the duplicates, export the grid.**

[Open the editor](https://spritesheetgenerator.online/editor)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://spritesheetgenerator.online/#website","@type":"WebSite","description":"Free online tool to create spritesheets for game development. Upload sprites, arrange them, and export as a spritesheet with animation preview.","name":"Spritesheet Generator","url":"https://spritesheetgenerator.online/","publisher":{"@id":"https://spritesheetgenerator.online/#identity"}},{"@id":"https://spritesheetgenerator.online/features/gif-to-sprite-sheet#webpage","@type":"WebPage","description":"Drop an animated GIF and get every frame as a sprite on a grid. Remove duplicate frames, fix the order, and export a PNG sheet or JSON atlas for your engine.","name":"GIF to Sprite Sheet: Extract Every Frame to a Grid","url":"https://spritesheetgenerator.online/features/gif-to-sprite-sheet","breadcrumb":{"@id":"https://spritesheetgenerator.online/features/gif-to-sprite-sheet#breadcrumb"},"isPartOf":{"@id":"https://spritesheetgenerator.online/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://spritesheetgenerator.online/features/gif-to-sprite-sheet"]}],"primaryImageOfPage":{"@id":"https://spritesheetgenerator.online/#logo"}},{"@id":"https://spritesheetgenerator.online/#identity","@type":"Organization","description":"A free, browser based sprite sheet generator for 2D game developers and pixel artists.","name":"Spritesheet Generator","url":"https://spritesheetgenerator.online","logo":{"@id":"https://spritesheetgenerator.online/#logo"},"sameAs":["https://discord.gg/2vvfqwn5k7"]},{"@id":"https://spritesheetgenerator.online/features/gif-to-sprite-sheet#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://spritesheetgenerator.online","position":1},{"@type":"ListItem","name":"Features","item":"https://spritesheetgenerator.online/features","position":2},{"@type":"ListItem","name":"GIF to Sprite Sheet","item":"https://spritesheetgenerator.online/features/gif-to-sprite-sheet","position":3}]},{"@id":"https://spritesheetgenerator.online/features/gif-to-sprite-sheet#/schema/question/1","@type":"Question","inLanguage":"en","name":"Why did my GIF produce no frames?","acceptedAnswer":{"@type":"Answer","text":"Frame extraction relies on the ImageDecoder API built into the browser. Chrome and Edge have it. If your browser does not, the splitter has nothing to show; open the GIF in one of those browsers instead."}},{"@id":"https://spritesheetgenerator.online/features/gif-to-sprite-sheet#/schema/question/2","@type":"Question","inLanguage":"en","name":"Why does every frame have so much empty space?","acceptedAnswer":{"@type":"Answer","text":"GIF frames are decoded at the full canvas size of the GIF. Turn on Trim Transparent in the layout settings and the cells shrink to the largest real content across the frames."}},{"@id":"https://spritesheetgenerator.online/features/gif-to-sprite-sheet#/schema/question/3","@type":"Question","inLanguage":"en","name":"Can I edit individual frames after extraction?","acceptedAnswer":{"@type":"Answer","text":"Yes. Each frame is a normal sprite. Right-click it and choose Edit in Pixel Editor, or use the recolor tab to replace a colour on one frame or the whole layer."}},{"@id":"https://spritesheetgenerator.online/features/gif-to-sprite-sheet#/schema/question/4","@type":"Question","inLanguage":"en","name":"Does the GIF frame timing carry over?","acceptedAnswer":{"@type":"Answer","text":"No. Only the images are extracted, not the per-frame delays. Set the playback rate in the preview, and set durations in your engine where they belong."}},{"@id":"https://spritesheetgenerator.online/#logo","@type":"ImageObject","caption":"Spritesheet Generator","contentUrl":"https://spritesheetgenerator.online/web-app-manifest-512x512.png","inLanguage":"en","url":"https://spritesheetgenerator.online/web-app-manifest-512x512.png"}]}
```

## Sitemap

See the full [sitemap](https://spritesheetgenerator.online/sitemap.md) for all pages.
