A partial frame
1 × 1 patch → complete 4 × 4 canvas
The original disposal test keeps the red and black pixels while adding a green patch. Every export includes the whole canvas.
FREE · IN YOUR BROWSER
Turn your GIF into complete sprite frames. Keep the original delays, choose a shared palette, and copy a ready-to-run animation.
No account needed.
Deselected frames and their delays are removed. Output loops continuously, regardless of the GIF loop count. Transparent pixels use index 0.
Your sprite appears here
Your sprite appears here
Choose your GIF or try the original disposal test.
The playback code creates a sprite, sets each complete frame, and pauses for its delay. Custom palette code affects the whole project. Preview timing can vary in background browser tabs.
SEE THE MATH
1 × 1 patch → complete 4 × 4 canvas
The original disposal test keeps the red and black pixels while adding a green patch. Every export includes the whole canvas.
40, 80, 120, 160 ms
Preserve original delays keeps the test animation’s distinct pauses. A uniform interval deliberately changes them.
400 × 200 × 100 = 8,000,000
The limit counts full canvas pixels across every source frame, even when the compressed GIF uses small patches.
A GIF can describe a sequence of changes rather than a stack of complete pictures. That makes animation import different from converting one PNG. This MakeCode Arcade GIF converter reads the animation, reconstructs each visible frame, and matches its colors to one shared Arcade palette. The result is an array of images and a short program that displays those images in order. Files stay in your browser; there is no upload step or account requirement.
Start with a GIF you made or have permission to use. Choose the file, wait for its frames to appear, and inspect the composited preview before copying anything. The built-in disposal test is original artwork made for this tool. It uses a transparent canvas, small colored patches, visible black, and several frame delays. It provides a quick way to see why copying only a GIF's changed rectangle would produce incomplete sprites.
Set the width and height to the dimensions you want in your Arcade project. Both values must be whole numbers from 1 to 256. The converter fits every frame inside that same rectangle while preserving its proportions. Empty space around the fitted image stays transparent. A wide source can therefore produce transparent rows above and below the artwork when fitted into a square sprite.
Start small, especially for a character animation. A 16 by 16 sprite is easier to inspect than a large imported photograph, and it creates much less code. Increasing the output dimensions cannot recover detail that was absent from the GIF. Reducing dimensions can remove thin outlines or small facial features, so compare several frames at the intended size. Every frame uses the same fit and dimensions, which prevents the bounding box from changing during playback.
Many GIF encoders save space by writing only a small rectangle for the next frame. A moving hand might be stored without the rest of the character. That rectangle has a position within the logical canvas, and transparent pixels can mean that the previous canvas should remain visible underneath. Treating the rectangle as a separate sprite loses this context. The composited GIF preview shows the complete canvas after the rectangle has been drawn.
The frame's disposal instruction describes what happens after its display time ends. Keeping the canvas allows a later patch to build on previous pixels. Restoring the background clears the changed rectangle before the next image is drawn. Restoring the previous canvas brings back the pixels that existed before that frame. This tool applies those instructions before processing the following frame, then exports a complete image for each retained display state.
For transparent animations, background disposal clears the affected rectangle to transparency when the disposing frame declares transparency. Otherwise it restores the GIF's logical background color. This distinction matters around moving objects. Look for a colored trail, a disappearing outline, or a box that becomes opaque when inspecting your own file. If those appear in the composited source preview, re-export the original animation and compare it before reducing its colors.
Use the frame list to view a retained frame without playing the animation. The list shows the source frame number and its original delay. The left preview shows the reconstructed GIF canvas; the right preview shows the pixels Arcade will receive after resizing and color matching. A checkerboard indicates transparency. Visible black is a real palette color and should remain solid over that checkerboard.
Frame checkboxes control which images are exported. Unchecking a frame removes that image and its delay from the animation. The retained images keep their original order. Removing frames can make a motion jump or shorten a pause, even when the timing mode remains set to preserve original delays. For a faithful conversion, retain all frames first and make selective edits only after checking the full sequence.
The default mode preserves the delay attached to each retained GIF frame. A sequence can contain a fast movement followed by a longer hold, and the generated program pauses for those separate durations. GIF delays are stored in hundredths of a second. A delay of four hundredths becomes 40 milliseconds. Missing or zero delays use 100 milliseconds here, so a file with those values may play differently from a viewer that chooses another minimum.
Uniform interval mode assigns the same duration to every selected frame. This changes the source timing and can remove intentional pauses. It can be useful for a hand-drawn walk cycle whose frames should have equal weight. Enter a whole-number interval from 10 to 655350 milliseconds, then use Play preview to compare the motion. The browser preview can slow down in a background tab; use the exported program in the Arcade simulator for the final timing check.
The exported example loops continuously. It does not reproduce a finite GIF loop count or stop after the last frame. If your game should play the sequence once, replace the outer forever loop with a single pass through the frame array. The sprite remains on its last image afterward. Keep the timing array aligned with the image array whenever you edit the generated program manually.
Arcade image pixels contain palette indices. They do not carry independent RGB colors for each frame. This converter therefore uses one shared palette for the entire sequence. The default is the standard Arcade palette. Transparent pixels become index 0, represented by a dot in the image literal; opaque black maps to the visible black entry, normally f. Other opaque colors are matched to the nearest visible RGB entry.
Open the shared animation palette controls to edit a color or paste sixteen entries. Index 0 stays locked to the transparency placeholder. Any custom palette applies to every exported frame. The playback output includes a runtime palette call when the palette differs from the default. That call affects the whole project, including existing sprites and backgrounds that use the same color indices. Use the MakeCode Arcade Palette Editor for a larger preview and a project configuration export.
A GIF can contain more colors than Arcade can show at once. Similar colors may collapse into the same index, and smooth gradients can become bands. Enlarging the sprite will not fix this palette limitation. Simplify the source artwork, strengthen important outlines, or adjust the shared palette to preserve the colors that carry the animation's meaning. Recheck every retained frame after a palette change.
Copy Image array if you already have animation logic and only need the frames. Copy Playback code for a complete starter example: it creates a sprite, sets each full image in order, and pauses for that frame's duration. Paste that example into the JavaScript view of an Arcade project. It uses the standard sprite APIs and does not require an animation extension. Rename the variables if your project already uses those names.
The sprite switches between complete images, so old pixels are replaced at each step. This is essential for transparent motion: painting a new patch over the previous sprite would leave a trail. Run the simulator, inspect the first and last frame transition, and compare the pauses with the browser preview. Also check the animation against your game's background, because transparent pixels will reveal it. Test custom palette output in a separate project before applying it to an existing game.
The input limit is 10 MB, 256 frames, and eight million logical canvas pixels multiplied by frame count. Each canvas side is limited to 4096 pixels. A 400 by 200 GIF with 100 frames reaches the eight-million limit, even when its encoded patches are tiny. This measures the complete frames the converter must retain, rather than relying on the compressed file size alone. Decoding runs in a separate browser Worker and can be canceled.
Output has a separate limit of one million pixels multiplied by selected frame count. Reduce the output dimensions or retain fewer frames if that limit is exceeded. Invalid, truncated, or unsupported plain-text GIF frames produce an error instead of a partial export. If decoding takes too long, try a smaller re-export. For a single PNG or JPEG, use the still image converter; it avoids the frame and timing workflow. See the official Arcade image documentation for the underlying palette format.
Unofficial; not affiliated with Microsoft or MakeCode.
Yes. It composites partial rectangles and applies keep, restore-background, and restore-previous disposal instructions before exporting complete frames. Use the original disposal test to inspect transparent patches and visible black.
Preserve original delays keeps each retained frame’s delay. Missing or zero delays use 100 ms. Uniform interval changes timing, and deselecting frames removes their display time. The exported example loops continuously rather than retaining a finite GIF loop count.
Paste Playback code into the Arcade JavaScript editor. It creates a sprite, replaces its image for each frame, and pauses for the corresponding delay. Image array exports only the Image[] declaration for use with your own playback logic.
Each output pixel uses one of 15 visible colors from a shared palette. Transparency uses index 0. Edit the shared palette if needed; custom palette playback code changes the colors for the whole project.
Use a GIF up to 10 MB, 4096 pixels per side, 256 frames, and 8 million logical canvas pixels × frames. Output is limited to 1 million pixels × selected frames, with dimensions from 1 to 256. Oversized inputs are rejected before pixel decompression. Plain-text GIF frames are unsupported.
No. Decoding, compositing, resizing, and code generation run locally in your browser. A separate browser Worker handles GIF decoding and can be canceled. Reloading clears the current animation.