How to convert a sprite sheet to a GIF
- Load the sheet. Drop it on the box above, paste it, or pick a file, or try everything on the built-in sample first: a six-frame bouncing ball strip whose grid is already filled in. The facts panel states the file's real format, read from its own first bytes, not its name, plus its dimensions and size.
- Set the grid. Define it by columns and rows or by frame size, then margin and spacing. The grid is drawn over your sheet as you type, and the grid check line states the frame size it derived and any leftover pixels, in numbers. When the lines sit exactly on the gaps between your frames, the grid is right.
- Choose the frames. Skip empty cells, cap the count with a frame limit, and pick the reading order (rows first is the standard). The check line states how many frames will be written and how many were skipped or dropped.
- Set the timing. One duration for every frame, typed in milliseconds or picked from the fps buttons, and a loop setting. The page shows the delay that will actually be saved, because GIF delays are written in 10 ms steps.
- Convert, check, download. The animation preview switches to the finished GIF file itself, and the status line reports its real size next to the sheet's, with the grid, the frame count and the colours used. The file has already been re-read and verified at this point: dimensions, frame count, every frame's delay and the loop setting all match the plan.
The settings, one by one
Columns and rows, or frame size
Two ways of describing the same grid. With sheet width W, margin M, spacing S and C columns, the frame width is floor((W - 2M - (C - 1)S) / C): the margins come off both sides, the spacing comes out from between the frames, and what remains is divided by the columns, rounding down. Give the frame size instead and the same arithmetic runs backwards to derive how many columns and rows fit. Neither mode is more correct; use whichever pair of numbers you actually know.
Margin and spacing are different things
Margin is empty space around the outside of the whole sheet, before the first frame and after the last. Spacing is the gap between one frame and the next. Export dialogs do not agree on names: what Aseprite calls padding and TexturePacker calls shape padding is usually this tool's spacing, and a border or extrude in the export adds to it. If the grid lines land one or two pixels off and drift further with every column, the spacing is wrong; if they are all off by the same amount from the very first frame, the margin is wrong. That distinction is the fastest way to fix a grid, and the drawn grid makes it visible.
Leftover pixels
Integer division leaves a remainder whenever a sheet does not divide exactly: 3 columns across 250 px gives frames of 83 px and 1 px left over. That strip is never part of any frame. It is shaded red on the preview and reported in the grid check line, because the alternative tools either stretch the frames to cover it (which corrupts pixel art) or crop it without saying (which hides a wrong grid). A leftover of a pixel or two on a sheet you know is right is harmless; a leftover that grows when you change the columns is the grid telling you it is wrong.
Skip empty, frame limit, frame order
A cell counts as empty when nothing in it would be visible in the GIF: every pixel under the transparency cut. Skipping empty cells is how padded rows stop adding dead frames to the animation. The frame limit takes the first frames in the chosen order and drops the rest, with the count stated; set it to the number of columns and you have exactly the first row, which is how a single walk cycle comes off a multi-animation sheet. Columns-first order exists for the minority of sheets laid out down the page; rows first is the standard and the default.
Duration and looping
A sheet is a still image: it holds no frame times, no frame rate and no loop count. So the duration is a real choice, not a setting to recover. The delay written into the GIF is the asked-for milliseconds rounded to the nearest 10 ms and never under 20 ms, because GIF delays are stored in hundredths of a second and players ignore or clamp anything under 20 ms; the tool shows the saved delay next to the field, so 60 fps honestly reads as 20 ms per frame. Looping writes the standard loop block: none for play-once, forever, or a repeat count for a set number of plays.
Colours, dithering, transparency
The GIF's palette is generated from your frames' own pixels: if their distinct colours fit the budget, they are kept exactly, and if they do not, a median cut chooses the budget's worth. Most sprite sheets use far fewer than 256 colours, so most conversions are colour-exact. Dithering is off by default because it speckles flat pixel art; it earns its place on painted sheets. Transparency is one bit in a GIF, so soft alpha edges are cut at alpha 128, or flattened onto a background colour you pick when the destination is known.
What this tool does not read: atlas JSON and packed sheets
Some sheets are not grids at all. A packed atlas (the default output of TexturePacker and Aseprite's packed modes) places frames of different sizes wherever they fit, sometimes rotated, and keeps the map in a JSON sidecar file. This tool does not read those files or those layouts: it slices regular grids, equal rectangles at even intervals, which is what game engines' grid slicing, CSS sprites and most hand-made sheets use. If your sheet is packed, re-export it from your tool as a grid (both Aseprite and TexturePacker offer a uniform-grid layout) and it will slice here exactly. Stating this plainly matters more than failing quietly on a packed file: dropped on this page, a packed atlas would slice into nonsense rectangles, and the drawn grid would show that immediately, which is the other reason the grid is always drawn before you convert.
Which direction do you need?
The two sprite tools on this site are a pair, and they are easy to confuse. This page starts from a still sheet image and produces an animated GIF: it is for previewing, sharing and checking an animation you already have as a sheet. GIF to Sprite Sheet starts from an animated GIF and produces a sheet image plus the engine data files (TexturePacker JSON, a Godot 4 SpriteFrames file and CSS) that carry each frame's rectangle and its real duration: it is for taking an animation into a game. Sheet to GIF here; GIF to sheet there. If your frames are separate image files rather than one sheet, the PNG to GIF sequence mode is the tool for those.
The format facts, stated plainly
- A sheet stores no timing. The duration is uniform and yours to set; per-frame timing cannot be recovered from a still image, and this page will not pretend a single delay is anything else.
- 256 colours per frame. A GIF frame points into a palette of at most 256 colours. A sheet with more colours than that is reduced to a palette built from its own pixels; flat colours survive exactly, smooth gradients can band.
- Transparency is binary. A pixel is see-through or solid. Soft alpha edges in the sheet are cut at alpha 128, or flattened onto a colour you choose.
- Delays are 10 ms steps. The saved delay is the asked-for duration rounded to the nearest 10 ms, never under 20 ms, because players clamp or ignore shorter delays. The page shows the saved value, not just the asked one.
- Frames are copied, never stretched. Slicing is exact rectangle copying. The only scaling is integer scaling (2x, 3x, 4x) by repeating whole pixels.
- An animated WebP or APNG dropped here reads as a still. A browser's image decoder shows only such a file's main image; the tool detects the animation from the file's own chunks and says so in the facts panel. Sheets are stills, so this only bites when the wrong file is dropped by mistake.
A worked example, with real numbers
These figures are from converting this page's own built-in sample sheet through this tool, in a Chromium browser, at the page's opening settings. The sample is a sprite sheet drawn for this page: a PNG of 1,484 bytes, 402 × 56 pixels, holding six frames of a bouncing ball in one row. Its grid is 6 columns × 1 row, frames of 64 × 48 px, margin 4 px, spacing 2 px, and it divides exactly: no leftover pixels on either side.
- At the opening settings (100 ms per frame, loop forever, 256 colours, dithering off, 1x): the GIF is 1,550 bytes, 6 frames at 64 × 48 px, 0.60 seconds per loop, using 6 colours of the 256 allowed, because the sheet itself only uses a handful and every one of them is kept exactly.
- The same sheet at 2x: the GIF is 3,170 bytes, 6 frames at 128 × 96 px, each pixel of the sheet repeated as a clean 2 × 2 block, same colours, same timing.
- The grid check, on a sheet that does not divide: the uneven test sheet used by this tool's own tests is 250 × 100 px. At 3 columns × 2 rows the check line reads frames of 83 × 50 px with 1 px left over on the right and 0 on the bottom, and the leftover column of the sheet, painted bright magenta in the test file, appears in no frame of the GIF.
Every conversion on this page reports its own real numbers the same way, so your sheet's result is never a guess from these examples: the status line states the output size next to the sheet's, the grid it was sliced on, and the colours actually used.
How big a sheet can you convert?
There is no server limit, because there is no server. But your browser's memory is a real limit, so the page states it plainly: files up to 50 MB, up to 8,192 pixels on a side, up to 600 frames in one GIF, and up to 48 million pixels in one conversion (frames × frame width × frame height). The checks run before anything is converted, and a plan over a limit is refused with the reason and the remedy, not with a frozen tab. If the GIF that comes out is still too heavy for where it is going, the GIF Compressor can take an existing GIF down further; if you need the frames of an existing GIF as separate images instead, the GIF Splitter is that job; and the GIF Frame Viewer opens a GIF frame by frame without changing it.
Questions people ask about turning a sprite sheet into a GIF
What does converting a sprite sheet to a GIF actually do?
It cuts one still image, the sheet, into the equal rectangles of its grid, in reading order, and writes those rectangles as the frames of an animated GIF, each shown for the duration you set. Nothing is redrawn or resized: every frame in the GIF is a pixel-for-pixel copy of one cell of your sheet. What you get back is the animation your sheet was storing spatially, playing in time, ready to drop into a devlog, a store page or a chat.
How do I know the right columns, rows, margin and spacing values?
They are the numbers the sheet was made with, and they usually travel with it: an export from Aseprite, TexturePacker or your engine shows them, and a sheet file named something like hero_6x1 states its own grid. If you only have the image, work backwards: if you know the frame size, use the By frame size mode and the tool works the columns and rows out; if you know how many frames there are, try the counts and watch the grid drawn over your sheet and the grid check line. When the lines sit exactly on the gaps between frames and the leftover reads 0 px on both sides, the grid is right.
What happens when the sheet does not divide evenly?
The tool uses integer division and says what is left over. With 3 columns across a 250 px sheet, each frame is 83 px wide and 1 px is left on the right; that strip is ignored, shaded red on the preview, and reported in the grid check line in numbers. Frames are never stretched to soak up the difference, because stretching corrupts pixel art. A leftover usually means the grid is slightly wrong: one more or one fewer column, or a margin or spacing value that is off by a pixel or two.
Can I skip blank frames or use only part of the sheet?
Both. Turn on Skip empty frames and any cell that is fully transparent (nothing in it would be visible in a GIF) is left out, with the count stated in the check line and again in the status after converting. For part of a sheet, set a frame limit: the GIF takes the first frames in the reading order you chose and drops the rest, again with the count stated. Nothing is dropped silently in either case.
Can I use only one row, like a walk cycle?
Yes, and it is the common case: a walk cycle usually lives on one row of a sheet that holds several animations. Set the frame limit to the number of columns and the GIF takes exactly that first row, in order. If the cycle you want is not on the first row, crop the sheet down to that row in any image editor first, then slice it here; this tool reads the sheet from the top-left corner in order and does not pretend otherwise.
What frame duration should I choose, and how does looping work?
A sprite sheet stores no timing at all, so the duration is genuinely yours: it is whatever the animation was designed to play at. Game animations commonly run at 8 to 12 frames per second (125 to about 80 ms per frame); a snappy effect may run at 20 to 30 fps. The fps buttons set the milliseconds for you, and the page always shows the delay that will actually be saved, because GIF delays are written in 10 ms steps and players ignore anything under 20 ms, so 60 fps lands as 20 ms per frame. Looping is written into the file: loop forever, play once, or a set number of plays.
Are my images uploaded to a server?
No. The slicing and the GIF writing run entirely in your browser tab: your sheet is decoded by the browser, cut on the grid you set and written as a GIF on your own device, and nothing is sent to a server at any point. That is also why there is no account, no queue and no watermark, and why the tool works on a plane.
Related tools
Slicing a sheet into a GIF is usually one step in a longer job. These MotionGIF tools cover the steps that tend to come before or after it:
GIF to Sprite Sheet
The reverse trip: lay out an animated GIF as one sprite sheet image, with the TexturePacker JSON, Godot and CSS files that carry its timing into your engine.
Open the tool →PNG to GIF
Turn one image into a still GIF, or a sequence of separate image files into an animated GIF, when your frames are files rather than one sheet.
Open the tool →GIF Splitter
Split an animated GIF into separate clips or individual frame images, the temporal cut where this page makes the spatial one.
Open the tool →GIF Frame Viewer
Step through the GIF you made frame by frame and inspect the timing and details of every frame, without changing the file.
Open the tool →