Pixelandia

GIF to Sprite Sheet

Reading the sample...

 

Free. No watermark. No sign-up.

One animated GIF, or several PNG, JPG or WebP files at once. You can also drop them on the sheet.

Sheet layout
1 x 1
0 px between frames
0 px around the sheet
Frames and timing

Numbers for your game engine

Frame size
1 x 1 px
Frames
0
Columns x rows
1 x 1
Sheet size
1 x 1 px
Spacing, padding
0 px, 0 px
Frame time
none
One loop
0.00 s

Frames

0 of 0 on the sheet. Tap a frame to drop it or put it back.

    How to make a sprite sheet from a GIF

    1. Open the animation

      Press Choose GIF or images and pick one animated GIF, or select several PNG, JPG or WebP files together. Loose files go in name order, so walk2.png lands before walk10.png.

    2. Drop the frames you don't need

      Every frame appears in the Frames list under the sheet. Tap one to take it off, or set Keep every to 2nd, 3rd or 4th frame to thin out a long GIF. Reverse order flips the whole run.

    3. Lay out the sheet

      Drag Columns, or press One row, Square or One column. Spacing between frames and Padding around the edge each go from 0 to 16 clear pixels. Then pick a Scale.

    4. Save the sheet and its numbers

      Press Download sprite sheet (PNG). The panel called Numbers for your game engine lists the frame size, the counts and the frame time, and Download numbers (JSON) saves the same figures as a file.

    GIF to sprite sheet features

    Whole frames from any GIF

    Many GIFs store only the patch that changed since the frame before. The tool rebuilds each frame in full, so no cell comes out as a scrap.

    Each frame's real timing

    A GIF gives every frame its own delay. All of them are read and written into the JSON. When they differ, the panel shows the shortest, the longest and the average.

    Loose images as frames

    Up to 256 pictures can go on one sheet. When their sizes differ, each sits in a cell as big as the largest one: in the center, on the bottom edge or in the top left.

    Scale from 1/4x to 8x

    2x to 8x repeat each pixel with hard edges, which is what pixel art wants. 1/2x and 1/4x shrink a large GIF so the sheet fits under a texture size limit.

    Trim clear edges

    Cuts away the empty border that all frames share. Every frame is cropped by the same amount, so the sprite doesn't jump around when the animation plays.

    Power-of-two sheet size

    Rounds the sheet up to 256, 512, 1,024 pixels and so on by adding clear space on the right and at the bottom. The frames stay where they were.

    A numbers file for the engine

    The JSON lists the sheet size, frame size, frame count, columns, rows, spacing, padding, frame time and frames per second, plus the x, y and duration of every frame.

    What a game engine needs from a sprite sheet

    A sprite sheet is one image with every frame of an animation set out in a grid. The engine never gets separate frames. You tell it the size of one frame and how many there are, and it finds each frame by counting across and down. That only works when every cell is the same size and the frames run left to right, then top to bottom, which is how this tool places them.

    Timing travels apart from the picture. A GIF stores a delay for each frame in hundredths of a second: a delay of 10 is 100 milliseconds, or 10 frames per second. Most engines want one speed for the whole animation instead. When a GIF has frames of different lengths, turn on Same time for every frame and set Speed, from 1 to 60 frames per second.

    More pattern tools

    GIF to sprite sheet FAQ

    Why do GIF frames look broken when I export them one by one?

    To save space, a GIF frame often holds only the rectangle that changed, with see-through pixels where the picture stayed the same. Each frame also says whether it should stay, be cleared or be undone before the next one is drawn. A program that saves the raw frames gives you scraps. This tool draws every frame onto the ones before it, so each cell holds the complete picture.

    How do I slice the sheet in Unity?

    Set the texture's Sprite Mode to Multiple, open the Sprite Editor and choose Slice. Pick Grid By Cell Size and type the Frame size from the numbers panel, or pick Grid By Cell Count and type the columns and rows. For pixel art, set the texture's Filter Mode to Point so the frames stay sharp.

    How do I load the sheet into Godot?

    Add an AnimatedSprite2D, give it a new SpriteFrames resource and press Add frames from a Sprite Sheet in the SpriteFrames panel. Enter the column count as the horizontal number and the row count as the vertical number, select the frames, then set Speed (FPS) to the fps shown next to Frame time.

    What layout does GameMaker want?

    GameMaker reads a strip or a grid through Import Strip Image in the Image Editor, where you enter the number of frames, the frames per row and the frame width and height. A quicker way is to press One row and name the file so it ends in _strip8 for 8 frames. GameMaker then splits it by itself on import.

    Can I use the sheet with CSS steps()?

    Yes. Press One row and leave Spacing and Padding at 0. Give the element the width and height of one frame, set the sheet as its background, and animate background-position from 0 to minus the sheet width with steps() set to the frame count. Use the One loop time as the animation's duration.

    Does a sprite sheet have to be a power of two?

    Not in current versions of Unity, Godot or GameMaker. The rule comes from older graphics hardware. WebGL 1, for one, can't build mipmaps for a texture or repeat it unless both sides are powers of two. If your target needs it, turn on Power-of-two sheet size. The frame positions don't change, so the same numbers still work.

    How big can the sprite sheet be?

    The tool makes sheets up to 16,384 pixels on a side and 4,096 x 4,096 pixels in area. Many phones limit a texture to 4,096 pixels a side, so smaller is safer for a mobile game. To shrink a sheet, pick the 1/2x or 1/4x Scale, drop frames, or change Columns so neither side runs long.

    Why would I add spacing between frames?

    When an engine smooths or scales a texture, it mixes each pixel with its neighbors. At the edge of a frame the neighbor belongs to the next frame, so a thin line of it can show. One or two pixels of Spacing stops that. Enter the same number in the engine. Pixel art drawn with no smoothing doesn't need it.

    My GIF has too many frames. How do I cut it down?

    Set Keep every to 2nd frame to halve the count. Each frame that stays also takes the time of the one skipped after it, so the animation runs at the same pace with fewer frames. Tapping a frame in the list is different: it removes that frame and its time. The tool holds up to 256 frames at a time.

    What frame rate do I type into my engine?

    Use the fps next to Frame time. It is 1,000 divided by the frame time in milliseconds, so 100 ms is 10 fps and 40 ms is 25 fps. Web browsers show any GIF frame with a delay of 10 ms or less for 100 ms, and the tool reads those frames the same way, so the speed matches what you saw.

    What happens to see-through parts of the GIF?

    They stay clear. The sheet is a PNG with a transparent background, and the Spacing, Padding and power-of-two space are clear too. A GIF pixel is either fully clear or fully solid, so the edges of a sprite come out exactly as hard as they were in the GIF.

    Can I build a sheet from separate PNG files?

    Yes. Select all the files at once and each becomes a frame, in name order. Add more frames appends another batch to the end. Loose pictures carry no timing, so Speed starts at 10 frames per second; change it to the rate your animation was drawn for.