FREE · IN YOUR BROWSER

GIF to Sprite Sheet

Upload GIF → preview and select frames → arrange the sheet → export PNG, JSON, or individual PNG frames in a ZIP. Processing stays in your browser.

No account needed.

Or drop one GIF here. 10 MB per file. Images stay in your browser.

Upload a GIF to enable settings, preview, and export.

Sheet settings

No resizing, rotation, or trimming. Output: at most 4096 px per side and 16 million pixels. JSON coordinates describe each image, excluding spacing. GIF delays remain in milliseconds; skipped delays are not combined.

SEE THE MATH

Worked examples

Three frames in two columns

3 × (8 × 8), columns 2, spacing 1, margin 2 → 21 × 21 PNG

The JSON records frame coordinates and GIF delays in milliseconds. The final grid cell remains empty.

Convert a GIF into a PNG sprite sheet

This tool extracts the frames of one GIF and arranges selected frames in a single PNG image. You can review frame thumbnails, exclude individual frames, keep frames at a regular interval, and adjust the sheet's columns, spacing, margin, and background. The result is a static sprite sheet. Its accompanying JSON describes where each frame sits and records its decoded GIF delay.

File reading, GIF decoding, layout, previews, and downloads run in your browser. Choosing a file does not upload its image data to a processing server. Keep the original GIF if you will need it again: reloading the page clears the loaded frames, and a new upload replaces the current animation.

Upload and review the decoded frames

Select Choose GIF or drop one GIF onto the upload area. The tool accepts a nonempty file up to 10 MB. It checks the GIF structure and resource limits before decoding. Renaming a different file format with a GIF extension does not make it a supported input. If the file is rejected, use the visible error message to identify whether its format, dimensions, or frame count needs attention.

Each decoded frame uses the GIF's full canvas dimensions. GIFs can store updates to only part of a canvas; the decoder composites those updates and applies supported disposal behavior before presenting the frames. The thumbnails therefore represent the resulting images rather than isolated update rectangles. Review their visible contents before deciding which ones to export.

The frame list shows dimensions and delays in milliseconds. Inspect frame selects the frame used by the optional MakeCode code panel. It does not start animation playback. The sheet preview shows the selected frames together in their current layout, with a checkerboard behind transparent areas.

Select frames and apply regular skipping

Every frame has an Include checkbox. Clear it to leave that frame out of the sheet, JSON, and frames ZIP. Select none clears the manual selection and disables exports until at least one eligible frame is selected. Select all restores the manual selections. The status message reports how many frames are currently included after selection and interval skipping are applied.

Keep every Nth frame accepts a whole number from 1 to 256. A value of 1 keeps every manually included frame. A value of 2 considers the first, third, fifth, and subsequent alternating source frames. The interval starts at the first original frame; it is not recalculated after you uncheck another frame. A manually excluded frame remains excluded even when its position matches the interval.

Select all does not reset the interval. If fewer frames appear than expected, check both the Include checkboxes and Keep every Nth frame. Return the interval to 1 when you want all manually selected frames. An empty or invalid interval produces a visible error instead of an export using an unspecified value.

Set columns, spacing, and margin

Columns controls the number of grid columns. Enter zero for an automatic arrangement based on the selected frame count and dimensions, or enter a whole number from 1 to 256. The layout uses no more columns than selected frames. Frames fill the grid from left to right, then continue on the next row. An incomplete final row leaves unused canvas space.

Spacing adds a gap between adjacent cells, while margin adds an outside border around the entire sheet. Both accept whole numbers from 0 to 256 pixels. These settings do not resize a frame or add pixels to its individual PNG in the ZIP. Larger values increase the combined PNG dimensions and change the frame coordinates in its JSON.

For example, three 8 by 8 frames arranged in two columns, with 1 pixel of spacing and a 2 pixel margin, produce a 21 by 21 sheet. The top-left positions are 2,2 for the first frame, 11,2 for the second, and 2,11 for the third. Each frame remains 8 by 8. The last grid position contains background rather than another frame.

Choose the sheet background

Transparent keeps transparent pixels and leaves empty spacing, margins, and unused cells transparent. The preview's checkerboard is a display aid; it is not painted into the downloaded PNG. PNG export retains RGBA color data without converting the frames to the MakeCode palette.

Solid color fills the sheet background with the selected color and composites the frames over it. This also fills transparent areas inside a frame. The setting affects the assembled sheet PNG. Individual frame PNGs in the ZIP come from the decoded frames and retain their own transparency. Choose the download that matches whether you need a flattened sheet or separate original-color frames.

Download the sheet and coordinate JSON

Download sheet PNG saves the current arrangement as sprite-sheet.png. Download JSON saves sprite-sheet.json for the same arrangement. Download both after your final selection and layout changes so the image and coordinates describe the same result. Changing columns, spacing, margin, or selected frames can change their positions and the overall canvas size.

The JSON contains a frames array. Each entry includes a filename and a frame rectangle with x, y, w, and h values measured in pixels. Positions start at the sheet's top-left corner. The entries also include original source dimensions, a source rectangle, and flags indicating that frames were neither rotated nor trimmed. sourceIndex identifies the original frame using a zero-based index.

The meta section records the sheet dimensions, RGBA format, scale, and image filename. This is coordinate data for a consumer to read or adapt; the tool does not configure a particular game project. If you rename the PNG, update its reference wherever your own code reads the metadata. The PNG itself does not store the JSON's playback instructions.

Understand frame delays

Each GIF frame entry includes duration in milliseconds. The decoder uses 100 milliseconds when a GIF delay is missing or zero. These values describe the decoded frames and are separate from the sheet's geometric arrangement. A single PNG has no automatic playback behavior, even when its companion JSON contains timing data.

Excluding or skipping frames does not combine their delays with neighboring frames. For example, keeping the first and third frames preserves those two delays individually; the second frame's time is omitted. If you need a different playback speed or a new timing schedule, set that schedule in the application that consumes the sheet. This page does not provide a timing editor.

Export separate PNG frames in a ZIP

Download frames ZIP saves the same selected frames individually, with names such as frame-001.png. Names follow the original decoded frame positions, so gaps in numbering are expected after exclusions or interval skipping. Each PNG contains the full decoded frame canvas rather than its position within the assembled sheet.

The archive also includes frames.json, which lists filenames, widths, heights, durations, and source indices. This manifest describes individual images; it is different from the coordinate JSON downloaded alongside the sheet. ZIP uses standard STORE entries, while the PNG files already contain compressed image data. Extract the archive before opening its images in an editor.

Limits and export messages

GIF input supports at most 256 frames, 4096 pixels per canvas side, and 8 million total canvas pixels across all frames. The total is canvas width multiplied by canvas height multiplied by frame count, even when individual GIF updates cover smaller rectangles. A small compressed file can still exceed this decoded limit.

The combined sheet supports at most 4096 pixels per side and 16 million pixels overall. Large spacing or margins can make an otherwise valid animation exceed the output limit. Try fewer columns when the sheet is too wide, more columns when it is too tall, or fewer frames when neither arrangement fits. Processing temporarily disables exports. Resolve any visible error before trying again.

Optional MakeCode output and related tools

Open MakeCode code for inspected frame to copy one frame as a MakeCode image expression. This option supports frames up to 256 by 256 pixels and maps them to the MakeCode palette with binary transparency. It does not change the sheet's original-color PNG or export a complete animation. Inspect another frame to change the code shown.

Use Sprite Sheet Maker when your source is separate PNG files. Use Sprite Sheet Splitter when you already have one PNG sheet and need individual images. Sprite Sheet to GIF provides the reverse grid-to-animation workflow, while Pixel Art Scaler handles nearest-neighbor resizing before or after preparing your frames.

Frequently asked questions

Can I export individual GIF frames?

Download frames ZIP exports the selected frames as PNG files and includes frames.json with names, dimensions, source indices, and delays.

Are GIF delays preserved?

JSON duration values preserve the decoded GIF delays in milliseconds. Selecting fewer frames does not combine skipped delays. A missing or zero GIF delay uses 100 ms.

Are GIF files uploaded?

No. Decoding, preview, layout, and export run locally in the browser. Choose one GIF up to 10 MB and 256 frames. Existing decoder limits also bound total decoded pixels.