GIF to Sprite Sheet

Convert an animated GIF into a sprite sheet for games and CSS animations - grid, row or packed, with padding, trim and pixel-perfect scaling. Get the PNG or WebP plus JSON for Phaser, PixiJS, Unity or Godot. Going the other way? Use Sprite Sheet to GIF, or save single frames with the GIF Frame Extractor.

How to Convert a GIF to a Sprite Sheet

  1. Add your GIF. Drop an animated GIF into the box, browse for it or paste it with Ctrl+V. Every frame is decoded in your browser.
  2. Pick a layout. Grid, a single row, a single column or Packed. Set columns or rows, padding, spacing and extrude as you need.
  3. Choose frames and size. Keep a frame range or every Nth frame, scale with smooth or pixel-art resizing, and trim empty edges.
  4. Download the sheet and data. Press Create sprite sheet and download the PNG or WebP with JSON, Unity, Godot or CSS files - as a ZIP when there are more than two.

Starting from a video clip? Make a GIF with Video to GIF or MP4 to GIF first.

Which Layout Should I Use?

All four layouts hold the same frames - they just arrange them differently.

LayoutBest forData file
GridPhaser spritesheet, Unity grid slicing, GodotOptional - the grid numbers are enough
RowCSS steps() animations, simple stripsCSS animation
ColumnNarrow sheets, vertical scrolling effectsCSS or JSON
PackedSmallest texture, texture atlasesJSON Hash or Array (needed)

Ready for Your Game Engine

Every data file points at the exact name of the image you download, so the pair works the moment you drop it into your project.

Phaser 3

Load the PNG and the JSON Hash with this.load.atlas(), or use a plain grid with this.load.spritesheet() - the results page shows the code.

PixiJS

The JSON Hash includes an animations list, so new AnimatedSprite(sheet.animations[name]) plays it right away.

Unity

Import the PNG, set Sprite Mode to Multiple and slice by cell size with the numbers in the Unity file.

Godot 4

Put the PNG and the .tres file in the same folder of your project and use it in an AnimatedSprite2D.

CSS Sprite Animation from a GIF

A sprite sheet with a CSS animation is often lighter than the GIF and plays smoothly at any frame rate.

The CSS file moves the background one frame at a time with steps() timing, using the real delay of every frame. Want a modern video instead? GIF to MP4 and GIF to Animated WebP are often smaller still.

Tips for Cleaner Sprite Sheets

  • Too many frames? Keep every 2nd or 3rd frame, or cut the GIF first with the GIF Cutter.
  • Background in the way? Remove it first with the GIF Background Remover, then trim the empty edges here.
  • Only part of the picture matters? Crop the GIF with the GIF Cropper before making the sheet.
  • Pixel art? Scale by whole numbers (2x, 4x) with Pixel art resizing, so every pixel stays crisp.
  • Need single frames? The GIF Frame Extractor saves every frame as its own PNG.

Frequently Asked Questions

Drop your animated GIF in the box. Every frame is laid out on one image right away - pick a grid, a single row, a column or a packed layout, then press Create sprite sheet.

The animated preview plays straight from the sheet, so what you see is exactly what you download.

Pick JSON Hash for Phaser 3, PixiJS and Aseprite-style tools, or JSON Array for Phaser. The Unity file lists every frame rectangle with a bottom-left origin plus the grid numbers for the Sprite Editor. Godot 4 gets a ready SpriteFrames .tres file.

Yes. Turn on CSS animation under Data files. You get a class with a @keyframes animation that uses steps() timing and the real delay of every frame, so the animation runs at the same speed as the GIF.

Padding is empty space around the whole sheet, and spacing is the gap between frames. Extrude repeats the edge pixels of every frame outwards, which stops thin lines from bleeding in when a game engine scales or filters the sheet.

Crop empty edges cuts the same empty border off every frame, so the grid stays even. Tight per frame crops each frame on its own and saves its offset in the JSON - the smallest sheet, best with the Packed layout.

Many game engines and phones stop at 4096 x 4096 pixels, so the tool warns you when a sheet goes over the limit you pick and offers to scale it down. Fewer frames also help - use Every Nth frame, or shorten the GIF with the GIF Cutter first.

No. The whole conversion runs in your browser, so your GIF never leaves your device. Your last few sheets are kept in your own browser so you can download them again.

Yes. After you create a sheet, press Turn it back into a GIF and it opens in Sprite Sheet to GIF with the grid already set. That tool also works with sheets from other apps.

Guides & Tutorials

All 45 guides
Optimization How to Resize a GIF Without Losing Quality (and Make It Smaller) Sep 4, 2025 · 4 min read Read New Tutorial How to Take a Full Page Screenshot of Any Website Nov 13, 2026 · 6 min read Read New Tutorial How to Add a Favicon to Your Website (2026 Setup) Nov 13, 2026 · 4 min read Read