Offline GIF Editor

GIF to Sprite Sheet Converter — Transparent PNG Atlas, JSON & CSS

100% Local · 0 Bytes Uploaded PNG Atlas · JSON & CSS Metadata · Reverse to GIF
Loading Offline GIF Filmstrip Workbench...

Unpack animated GIFs into horizontal strips or tidy grid PNG sprite sheets with custom padding, JSON/CSS frame coordinates, and reverse Sprite-Sheet-to-GIF export — 100% locally in your browser.

Convert Animated GIFs to Game-Ready PNG Sprite Sheets (and Back) Locally

Game developers, pixel artists, and UI engineers constantly bridge two incompatible formats: artists share quick animated previews as .gif files (exported from Aseprite, Piskel, or Blender), while game engines (Godot, Unity, Phaser, PixiJS, Unreal Paper2D) and CSS steps() web widgets require a single 32-bit transparent PNG sprite sheet plus exact frame coordinates.

Offline GIF Editor (/gif-to-sprite-sheet) converts any animated GIF into a crisp horizontal strip or power-of-two friendly grid atlas locally in milliseconds — complete with JSON frame metadata, CSS keyframe code, and a Reverse Sprite-Sheet-to-GIF packer so indie studios never have to upload unreleased character art to third-party servers.

Atlas Layout & Export Controls Built for Real Engines

  • Horizontal Strip vs. Custom Grid Columns: Pick a single-row strip for lightweight CSS background-position animations, or specify exact column counts (for example 4, 6, or 8 columns) so wide animations stay below mobile WebGL 4096 × 4096 px maximum texture limits.
  • Per-Cell Transparent Padding (0–8 px): Add 1–2 px spacing between frames to eliminate texture-bleeding seams when sprites rotate or render at fractional pixel coordinates in Unity or WebGL.
  • Exact JSON Frame Atlas + Millisecond Timing: Exports each frame's index, x, y, w, h, and delayMs read directly from the GIF89a header — ready to feed into custom loaders or PixiJS/Phaser importers.
  • Instant CSS @keyframes Snippet: Copies a working CSS steps(N) animation rule matched to your exact frame count and average duration.
  • Reverse Mode (Sprite Sheet PNG → Animated GIF): Drop a finished PNG sprite sheet, enter columns × rows (or cell size) and frame duration, and bounce a crisp looping GIF for Itch.io devlogs, Steam store descriptions, or Discord playtest channels.

Engine Import Quick Reference

Target Engine / Runtime Recommended Sheet Layout Recommended Padding Extra Tip
Godot 4 (AnimatedSprite2D) Grid (4–8 cols, keep ≤ 4096 px) 0 px (exact grid slice) Set Hframes / Vframes to match exported cols × rows
Unity 2D (Sprite Editor) Grid (Multiple sprite mode) 1–2 px (prevents bleed) Slice by Cell Size + Padding; disable mipmaps for pixel art
Phaser / PixiJS / Canvas Grid + exported JSON atlas 1–2 px Use delayMs values from JSON for authentic variable frame timing
Pure CSS steps() Web UI Single horizontal strip (1 row) 0 px Paste generated CSS snippet directly; pair with image-rendering: pixelated

Understanding Texture Limits, Power-of-Two Grids & Variable Frame Timing

Packing a 48-frame 256 × 256 animation into a single horizontal strip creates a 12,288 × 256 px PNG — which silently renders as a solid black rectangle on mobile WebGL devices capped at 4096 × 4096 px max texture width! Switching layout to 8 columns × 6 rows packs the exact same 48 frames into a compact 2048 × 1536 px texture that loads safely across iOS Safari, Android Chrome, Switch, and desktop GPUs.

Pay close attention to variable GIF timing as well. Many character animations hold an idle or impact frame for 200 ms while playing motion smears at 50 ms. A pure CSS steps(N) animation divides total duration equally across every frame, which can flatten dramatic hit-stop timing. For game engines or Canvas UI components that need authentic variable pacing, use the exported JSON frame manifest, which preserves every frame's exact decoded delayMs integer alongside its x, y, w, h atlas rectangle.

Reverse Workflow: Turning PNG Sprite Sheets Into Devlog GIFs

Game artists regularly build animations as clean PNG sprite sheets inside Aseprite, Spine, or Photoshop, then need a quick looping .gif for Steam store capsules, Itch.io devlogs, GitHub READMEs, or Discord playtest feedback. Switch to the Sprite Sheet → GIF tab inside this studio, drop your PNG atlas, enter your exact column and row count (plus any cell padding in pixels), set your frame delay (for example 80 ms for 12.5 fps pixel art), and export a crisp transparent animated GIF locally with disposal=2 headers intact. Need to shrink that finished devlog GIF under Discord's 10 MB upload cap? Chain straight into GIF Compressor without re-uploading a single byte.

Clean Sprite Prep Pipeline in One Local Session

Working from a recorded GIF that still has a solid color backdrop or oversized empty borders? Run the entire prep pipeline locally with zero file upload:

  1. Strip solid white, green, or magenta backdrops at Tolerance 0–5 in GIF Background Remover.
  2. Trim dead outer margins tightly around your sprite in Crop Animated GIF so every grid cell stays compact and leaves zero wasted VRAM padding inside your texture atlas.
  3. If scaling pixel art up 2× or 4×, use Nearest-Neighbor mode in Resize GIF so hard edges never blur before slicing.
  4. Return here to export your transparent PNG atlas, CSS steps() snippet, and JSON frame manifest — or save numbered individual PNG frames inside a local ZIP via GIF Splitter.

Frequently Asked Questions

Does GIF to Sprite Sheet preserve transparent backgrounds and exact frame size?

Yes. Every frame is composited through our full GIF89a disposal=1/2/3 pipeline onto a uniform cell size matching your GIF's logical width and height, then packed into a 32-bit RGBA PNG atlas so transparent sprite edges import cleanly into Godot, Unity, Phaser, GameMaker, PixiJS, and CSS animations.

What metadata formats are exported alongside the PNG sprite sheet?

Alongside the lossless PNG sheet, you can copy or download a ready-to-use JSON frame atlas (containing each frame's x, y, width, height, and original duration in milliseconds) plus a CSS steps() keyframes snippet for zero-JS web animations.

Can I also convert an existing PNG sprite sheet back into an animated GIF?

Yes. Switch to the Sprite Sheet to GIF sub-tab, drop your PNG atlas, enter the column and row count (or cell width and height), set frame delay in milliseconds, and export a looping transparent animated GIF locally.

How do I avoid texture bleeding between neighboring sprite cells in WebGL or Unity?

Set the Padding control to 1 px or 2 px. Adding transparent padding between grid cells stops bilinear texture samplers from bleeding adjacent frame edges into the active sprite during sub-pixel movement.

Are my unreleased game art assets or character sprites uploaded anywhere?

Never. Decoding, atlas packing, JSON generation, and reverse GIF encoding run entirely inside browser Canvas and memory with zero network transfer.