Sprite animation maker
This sprite animation maker loads a sprite sheet, lets you set the frame size, order and speed, previews the animation with onion skin, and exports a GIF, a repacked sheet PNG and the frame JSON.
Step 0 of 0 · sheet frame 0 · 10 fps = 100 ms
A built-in runner sheet is loaded. Drop your own sheet to replace it.
How the tool plays and exports
Cutting the sheet
The built-in runner is a 256 × 32 pixel sheet cut into 8 frames of 32 pixels, numbered 0 to 7. With a JSON, the tool takes each rectangle as written. Without one it cuts an equal grid, with an outer margin and spacing for sheets drawn with gaps.
Order and timing
Forward and reverse play each frame once per loop. Ping-pong plays 0 to 7 and back without repeating either end, so 8 frames become 14 steps, 1,400 ms at 10 fps. A custom list such as 0-3, 2, 1 plays any frame any number of times.
GIF export
Each step is drawn at the scale you choose, from 1 to 8 times, with transparent pixels kept. The colors of the whole animation go into one table of up to 255 colors, so pixel art keeps its exact colors. One frame lasts 100 ms at 10 fps; GIF counts in hundredths of a second, so each frame is rounded to the nearest 10 ms. A GIF pixel is either solid or clear, so draw edges without half-transparent pixels.
Sheet PNG and frame JSON
Sheet PNG repacks the steps in playback order, in the number of columns you pick. The JSON lists each step with its place in that sheet and its duration, so a game plays it without knowing the original order. The built-in runner in ping-pong at 7 columns becomes a 224 × 64 sheet with 14 entries.
Play the sheet in a game
The exported JSON gives every step its place in the sheet and its duration, so a small function plays it on a canvas:
const sheet = new Image(); sheet.src = "animation-sheet.png";
const data = await (await fetch("animation-sheet.json")).json();
const steps = Object.values(data.frames), ms = steps[0].duration;
function drawAnimation(ctx, x, y, nowMs) {
const f = steps[Math.floor(nowMs / ms) % steps.length].frame; // which step is showing
ctx.drawImage(sheet, f.x, f.y, f.w, f.h, x, y, f.w, f.h);
}To have Claude Code wire it into a starter, paste a prompt like this one in a session that has the starters installed. Draw the frames first in the pixel art maker and press Send frames to sheet maker, then use Frames from the pixel art maker above. A sheet packed in the sprite sheet maker loads here with its JSON.
Read animation-sheet.json and animation-sheet.png. Make the player in the platformer-2d starter play this animation while it runs, and hold the first frame while it stands still. Use each frame's duration from the JSON, keep the starter's controls, play the game, and check that the animation restarts cleanly each time the player starts running.Other sprite animation tools
Cinevva's Sprite Sheet Maker combines frames you already have into one sheet in the browser, lets you check the order and playback speed, and downloads a ZIP with the PNG, a JSON hash atlas and a Phaser 3 import example. It starts from separate images; this page starts from a sheet, adds onion skin and a GIF, and reads the frame JSON back in.
AnimSprite Maker is a Windows tool that imports sprites and previews animations in real time; its page calls the download a trial version of a prototype. This page starts when the frames exist: it checks timing and exports.
Questions
How do I make a sprite animation from a sprite sheet?
Drop the sheet on the tool, set the frame width and height so the thumbnails show one frame each, choose the frames per second and press Play. Pick an order, such as ping-pong for a walk that goes back and forth, then export a GIF, a repacked sheet PNG or the frame JSON.
What frame rate should a sprite animation use?
Pixel art walks and runs usually look right between 8 and 12 frames per second, and slow idle loops work at 4 to 6. The preview shows the exact time per frame, 100 ms at 10 fps. An 8-frame cycle at 10 fps takes 800 ms to repeat, and the same cycle in ping-pong order takes 1.4 seconds.
What is onion skin in a sprite animator?
Onion skin draws the frame before and the frame after the current one as faint ghosts behind it. It shows how far a foot, a sword or a head moves between two frames, so you can catch a jump that is too big. Turn it on, pause, and step with the arrow buttons.
Can I load the JSON from the sprite sheet maker?
Yes. Choose the sheet PNG and its JSON together. The tool reads the frame rectangles from the JSON, so sheets with padding or frames of different sizes line up without any frame size to type. Without a JSON it cuts an equal grid and guesses the frame size from the sheet.
What does the exported frame JSON contain?
One entry for each step of the playback order: its x, y, width and height in the repacked sheet, its duration in milliseconds, and which frame of your original sheet it came from. The layout matches the hash format used by Phaser and TexturePacker, plus a play tag that covers every step.
Put your assets into a playable game. Try the ten game templates or get the kit.