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.