FREE · IN YOUR BROWSER

Sprite Sheet to GIF

Split a regular sprite grid into frames, check the suggested layout, and choose your animation speed and loop setting. Export an adaptive-palette GIF and MakeCode Arcade TypeScript code in the default Arcade colors. Preview Original/GIF colors by default or switch to MakeCode palette. Images stay in your browser; no account is required.

No account needed.

PNG or JPEG · 10 MB per file · 4096 px per side · images stay in your browser.

Upload a sprite sheet to enable preview and export.

Cut frames

Uniform cells, no gutters or margins. Read left to right, then top to bottom. Automatic detection is a suggestion.

0 cells · 0 selected · 0 empty

Preview and export

GIF preserves up to 256 opaque colors, or 255 plus transparency. MakeCode code uses the default Arcade palette. Alpha ≤127 becomes transparent. GIF timing rounds to 10 ms.

GIF export preserves source colors; higher-color images use adaptive median-cut quantization.

Showing GIF colors; MakeCode export uses the default Arcade palette.

Animation frame 1No image yet

Your sprite appears here

Preview and downloads need an uploaded sheet, valid settings, and at least one selected frame.

SEE THE MATH

Worked examples

Eight frames from a 128 by 64 sheet

128 / 4 = 32; 64 / 2 = 32; 4 × 2 = 8 frames; 8 × 100 ms = 800 ms at 10 fps.

A four-column, two-row grid produces eight 32 by 32 frames in row-first order. Keeping all eight at 10 fps gives an 800-millisecond cycle. Turn looping on to repeat it.

Check the selected-frame pixel budget

256 × 256 × 15 = 983,040 pixels; 256 × 256 × 16 = 1,048,576 pixels.

Fifteen selected 256 by 256 frames fit within the one-million-pixel budget. Sixteen exceed it, even though the frame count is below 256. Deselecting a frame lowers the total.

Turn a sprite sheet into an animation

A 128 by 64 sprite sheet with eight 32 by 32 cells contains everything needed for a short animation, but the still image leaves the timing to you. This sprite sheet to GIF tool cuts a regular grid into frames, lets you choose which frames to keep, and exports a GIF together with MakeCode Arcade animation code. Image processing happens in your browser. Your image is not uploaded, and no account is required.

The GIF uses an adaptive palette shared across the animation, with up to 256 visible colors for opaque images, or 255 plus a transparent entry when needed. The MakeCode export uses the default Arcade palette of fifteen visible colors and transparent index 0. Frame order, frame count, timing, and looping match across the two exports, while colors can differ. For a larger PNG that keeps your original colors and alpha, use the Pixel Art Scaler.

Start with an evenly spaced grid

Choose a PNG or JPEG containing equal-size cells arranged without gaps or outer margins. PNG supports a transparent background. A JPEG background stays opaque, including a white rectangle around a character. The tool accepts a file up to 10 MB, with no side longer than 4096 pixels and no more than sixteen million input pixels. Those limits apply together; a small compressed file can still exceed the dimension limit.

Each cell becomes one complete animation frame. A sheet with four columns and two rows produces eight candidate frames. The character can occupy different parts of those cells, but each cell needs the same width and height. Unequal rectangles, packed atlas layouts, borders, and gutters need preparation in an image editor before import. Automatic cropping of those layouts is outside this tool's grid workflow.

Keep the artwork aligned within its cells when exporting from a drawing application. If a character's feet move up and down between cells, that movement will appear in playback. Grid slicing preserves those positions. It does not register the character against a shared baseline or move individual poses into place.

Check the suggested grid against the artwork

Automatic detection uses transparent separators and common pixel dimensions to suggest a grid. The suggestion gives you a starting point. Inspect the cell boundaries and preview the resulting frames before exporting, especially when the sheet contains transparent space inside each pose. An internal gap can resemble a separator, and several cell sizes can fit the same sheet dimensions.

You can correct the layout by entering row and column counts or an individual cell size. The dimensions must divide evenly. For a 128 by 64 image, four columns and two rows yield 32 by 32 frames. Entering a 30-pixel cell width would leave an incomplete strip, so that width cannot describe the sheet as a complete grid.

Frame width and height can each be at most 256 pixels. Increasing the number of rows or columns makes smaller cells, but only the grid that follows the original artwork produces useful frames. A cut through a face or outline usually points to the wrong cell dimensions, a margin, or spacing between cells. Fix the layout at its source when the sheet includes those extra spaces.

Read frames from left to right, then down

The tool reads the top row from left to right, followed by the next row in the same direction. A four-column sheet starts with the four cells across its top edge. The fifth frame is the first cell on the second row. This row-first order remains the basis of the selected sequence.

Use the individual frame controls to inspect poses and select the frames that belong in the animation. A sheet containing separate idle and running sequences may need only one row for a particular export. Selecting those cells avoids inserting unrelated poses into the middle of a walk cycle. Check both the individual images and the playback preview; a correct crop can still appear in the wrong part of a motion.

Completely transparent cells can be skipped. An opaque white or black cell contains visible pixels and will stay visible unless you deselect it. A transparent cell may also represent an intentional empty beat, such as a blinking effect. Choose frames according to the motion you want, then preview the selected sequence to check the transition from its last frame back to its first.

Set the speed and loop behavior

Frame rate ranges from 1 to 50 frames per second. Every selected frame uses the same requested interval. At 10 fps, each frame lasts 100 milliseconds; eight selected frames make a cycle lasting 800 milliseconds. Removing two of those frames leaves a six-frame sequence lasting 600 milliseconds at the same rate.

GIF timing uses 10-millisecond units. The tool rounds the interval to that unit, so some requested frame rates produce an approximate playback speed. At 12 fps, the requested interval is about 83.33 milliseconds. Rounding gives 80 milliseconds per frame, equivalent to 12.5 fps. At 25 fps, the 40-millisecond interval fits exactly. Use the preview to judge how the rounded timing feels for the artwork.

Turn looping on for a repeating cycle or off for a single pass. The GIF and generated animation code use the same loop setting. Preview the selected order after changing the setting, particularly for an action that should finish on a specific pose. A repeated walk needs a smooth end-to-start transition; a single-pass action needs an appropriate final frame.

Understand the colors in the exported GIF

The GIF export builds one adaptive palette for the selected animation, with at most 256 entries: up to 256 visible colors for opaque images, or 255 plus a transparent entry when needed. When the selected frames fit this shared color budget, those RGB values are preserved exactly. The color count applies across the sequence, so colors appearing in different frames share the same budget.

For animations with more visible colors, the tool builds an RGB histogram, reduces the colors with median-cut quantization, and maps pixels to the nearest palette color. Similar shades can merge, especially in gradients or soft shadows. The resulting palette is shared by every frame in the GIF.

Transparency uses a fixed alpha cutoff for both exports. Pixels with alpha values at or below 127 become transparent; pixels above 127 become fully opaque palette colors. A partially transparent edge therefore becomes either clear or fully visible. Inspect outlines and small highlights in the preview, where a faint edge may disappear or turn solid. Visible black remains a visible color, separate from transparency.

The preview opens in Original/GIF colors mode. Switch to MakeCode palette to inspect the TypeScript export's fifteen visible default Arcade colors. Each visible pixel in that export is matched to the nearest visible palette entry by RGB distance. The MakeCode Arcade palette page explains those image indices. Switching preview modes lets you compare the two color treatments while checking the same selected animation.

Export the GIF and the animation code

After checking the grid, selection, timing, and loop setting, generate the GIF and download the MakeCode animation TypeScript code. The GIF is useful for viewing the selected sequence as an animation. The code provides the corresponding frames for an Arcade project. Both exports have the same frame order, frame count, timing, and loop setting; each uses its own color palette.

Open the JavaScript view in MakeCode Arcade to work with the TypeScript output. Check the animation in the simulator against the background used by your project. Transparent regions reveal that background, while opaque pixels cover it. Artwork that reads clearly over a preview background may need a stronger outline against a busy scene.

For an existing animated GIF, use the GIF to MakeCode Arcade converter. That page starts from animation frames already stored in a GIF. This page starts from a still grid and assigns uniform timing to the selected cells. For a single image without animation, the main image converter provides the still-image workflow.

Keep frame count and pixel totals within the limits

The sprite workflow supports at most 256 frames. Selected frames also have a combined limit of one million pixels. Multiply cell width by cell height, then by selected frame count to check that total. A 32 by 32 frame contains 1,024 pixels. Selecting 256 such frames totals 262,144 pixels, within the pixel budget.

Larger cells reach the budget sooner. Fifteen 256 by 256 frames total 983,040 pixels; sixteen total 1,048,576 and exceed the limit. A sheet can fit the input dimensions while its selected animation is too large to export. Reducing the selected frame count lowers that total without changing the crop of each remaining frame.

If the animation looks scrambled, compare the selected sequence with the sheet's row-first order. If it looks clipped, check the grid dimensions and spacing. To inspect color differences between the exports, switch between Original/GIF colors and MakeCode palette. The final exports contain equal-size frames, the selected sequence, and the timing rounded to GIF units.

Unofficial tool; not affiliated with Microsoft or MakeCode.

Use MakeCode palette for GIF to export the default Arcade colors instead of the adaptive source palette. This setting changes GIF export; the separate MakeCode palette preview only changes the display. MakeCode animation code always uses the default Arcade palette.

Frequently asked questions

Which sprite sheet layouts can I use?

Use a PNG or JPEG with equal-size cells in a grid, without outer margins or gaps. Correct the suggested grid with row and column counts or cell dimensions. Both image dimensions must divide evenly into the grid. Packed atlases and unequal frame sizes need preparation in an image editor.

How does automatic grid detection work?

The tool uses transparent separators and common pixel dimensions to suggest a grid. Inspect the preview and correct the layout when needed. The suggestion does not establish where the artist intended each frame to begin.

What order do the frames play in?

Frames follow row-first order: left to right across the top row, then left to right across each following row. Select individual frames and skip completely transparent cells, then preview the selected sequence. Opaque blank-looking cells must be deselected if you want to omit them.

Will the GIF keep my original colors and transparency?

The GIF uses one adaptive palette across the selected animation, with at most 256 entries: up to 256 visible colors for opaque art, or one transparent entry and up to 255 visible colors when transparency is needed. Colors within those limits are preserved exactly. Enable MakeCode palette for GIF to use the default Arcade colors instead. More colors are reduced using an RGB histogram and median-cut quantization, then mapped to the nearest palette color. Alpha values at or below 127 become transparent; higher values become fully opaque.

Why can MakeCode colors differ from the GIF?

MakeCode TypeScript output matches visible pixels to the nearest RGB color in the default Arcade palette of fifteen visible colors, with transparent index 0. The GIF uses its own adaptive palette. Both exports keep the same frame order, frame count, timing, and looping, but colors can differ. Original/GIF colors is the default preview; switch to MakeCode palette to compare.

Why can the exported frame rate differ from my setting?

You can request 1–50 fps. GIF frame intervals are rounded to 10-millisecond units. For example, 12 fps requests about 83.33 milliseconds per frame and rounds to 80 milliseconds, equivalent to 12.5 fps.

Does the loop switch apply to the MakeCode code too?

Yes. The GIF and generated MakeCode animation TypeScript code use the same frame order, frame count, timing, and loop setting. Turn looping off for a single pass or on for a repeating sequence. Their color palettes can differ.

What are the file and frame limits?

The input can be up to 10 MB, 4096 pixels per side, and sixteen million pixels. The tool supports at most 256 frames, cells up to 256 by 256 pixels, and a combined total of one million pixels across selected frames. All applicable limits must be met.

Are my images uploaded, and is this an official MakeCode tool?

Images are processed in your browser and are not uploaded. No account is required. This is an unofficial tool and is not affiliated with Microsoft or MakeCode.