---
title: "How to make a sprite sheet for your game"
description: "Learn what a sprite sheet is, how to lay one out, when padding and extrude matter, and how to export one for Godot, Unity, Phaser and more."
source: https://makepixel.ai/guide/how-to-make-a-sprite-sheet/
language: en
updated: 2026-11-25
---

# How to make a sprite sheet for your game

A sprite sheet is one image that holds every frame of a sprite, plus a way to tell your engine where each frame is. This guide shows how sheets are laid out, when padding and extrude matter, and how to export a clean one from MakePixel.

## What a sprite sheet is

Picture a flip book with all its pages laid out on one piece of paper. Your game shows one rectangle of that image at a time, then moves to the next, and the character walks.

Games use sheets for three practical reasons:

- **One file to load.** A character with 60 frames is one image, not 60.
- **Faster drawing.** A graphics card can draw many sprites from one texture in a single batch.
- **Frames stay together.** Order, timing and animation names travel with the art.

A sheet has two parts:

- **The image**, with every frame in it.
- **The map**, which says where each frame is. It's either a plain grid ("every frame is 32 × 32") or a data file, usually JSON, that lists each frame's position, duration and animation.

Use a data file when you can. A grid breaks the moment one frame moves, and it can't say how long a frame lasts.

## Choose a layout

| Layout | What it looks like | Best for | The catch |
| --- | --- | --- | --- |
| **Strip** | Every frame in one long row | One animation, GameMaker | Gets very wide |
| **Rows** | One row for each animation | Most 2D games | Short rows leave empty space |
| **Packed** | Frames fitted together like a puzzle | Big atlases with hundreds of sprites | Needs a data file, hard to read by eye |

MakePixel writes **rows**, or a **strip** for GameMaker. Rows are easy to read and easy to debug, and for a character or a set of enemies the wasted space is small.

If you're building one huge atlas for a whole game, export with **One PNG a frame** and feed those files to a dedicated packer. MakePixel doesn't fit frames together puzzle-style or rotate them.

Whatever the layout, keep one rule: **a character's feet stay at the same spot in every frame.** If they drift, the sprite jitters in-game however clean the art is. When you combine images of different sizes, MakePixel uses the largest as the cell and places the smaller ones at the bottom centre, so feet line up.

## Padding and extrude

You've probably seen this bug: thin lines flicker along a sprite's edge when the camera moves. That's **texture bleeding**. The graphics card reads a tiny bit past the edge of a frame and picks up whatever is next door.

There are two fixes, and they do different jobs:

- **Padding** puts empty space between frames, so reading past the edge finds nothing instead of the neighbouring frame.
- **Extrude** copies each frame's edge pixels one pixel outward, so reading past the edge finds the *same colour*.

Extrude is the one that fixes seams between tiles. Padding alone leaves transparent pixels at the edge, and those show up as dark or see-through lines on anything that should join up.

| Your game | What you need |
| --- | --- |
| Nearest filtering, whole-number scale, camera snapped to pixels | Usually neither |
| Camera that moves smoothly or zooms | Extrude |
| Linear filtering, mipmaps or texture compression | Extrude and padding |
| Tiles in a tile map | Extrude |

## Make one in MakePixel

1. **Tag your animations.** In the timeline, give each animation a tag, such as `idle`, `walk` and `jump`. Each tag becomes one row and one named animation.
2. **Select the image** on the canvas and press ⌘E (Ctrl+E on Windows and Linux). To put several on one sheet, select them all first.
3. Under **Export to**, pick **PNG**.
4. Set **Layout** to **Sprite sheet**.
5. Pick a **Format** for your engine (see the table below).
6. Leave **Scale** at 1×. Engines scale pixel art better than a pre-enlarged file does.
7. Select **Export**.

For an animation, you get a zip with a folder inside: `name.png`, `name.json` and `provenance.json`, a record of where each image came from for store disclosures. A single still image downloads as a plain PNG.

| Format | What you get | Use it for |
| --- | --- | --- |
| **Generic** | PNG + JSON in Aseprite's format | Any tool that reads Aseprite JSON |
| **Phaser** | The same files as Generic | `this.load.aseprite` |
| **PixiJS** | Generic, plus an `animations` list | `Assets.load` |
| **GameMaker** | One `name_stripN.png`, no JSON | Dragging into GameMaker |

For Godot or Unity, skip the PNG target and pick **Godot** or **Unity** under **Export to**: you get files made for that engine. See [Export to Godot](https://makepixel.ai/guide/export-to-godot/).

### The options that matter

| Option | Default | What it does |
| --- | --- | --- |
| **Gap between frames** | Off | Adds a 1-pixel extruded border around every frame |
| **Also export the mirrored facing** | Off | Adds a flipped copy of each animation, named `<name>_right`. The name is fixed, so if you drew facing right, that copy faces left |
| **Combine into one file** | On | Appears when several items are selected. Off gives each item its own files |

Open **Advanced packing** when you need a smaller or differently split sheet:

| Option | Default | What it does |
| --- | --- | --- |
| **Trim transparent edges** | Off | Crops empty space from each frame and records the offset in the JSON |
| **Merge duplicate frames** | Off | Stores identical frames once, so a held pose costs nothing extra |
| **Padding** | 0 px | Empty space around and between frames, up to 16 px |
| **Split** | Single sheet | **By tag** gives each animation its own PNG and JSON. **By layer** does the same per visible layer, which suits swappable outfits |

Trim and Merge mean frames no longer sit on an even grid, so load those sheets with their JSON.

### What's in the JSON

The data file follows the format Aseprite writes, which many engines and libraries already read. Shortened, it looks like this:

```json
{
  "frames": {
    "0": {
      "frame": { "x": 0, "y": 0, "w": 32, "h": 32 },
      "duration": 100
    }
  },
  "meta": {
    "image": "hero.png",
    "frameTags": [
      { "name": "idle", "from": 0, "to": 3, "direction": "forward" }
    ]
  }
}
```

`duration` is in milliseconds, per frame, so a held pose stays held. `frameTags` names each animation and its frame range. If the image has slices, they're listed under `meta.slices`.

## Common problems

**Some frames are missing from the sheet.** Once an image has tags, PNG and Godot exports include only the frames inside a tag. Delete the tag and make it again over the missing frames, or add a new one.

**Two animations have odd names like `walk_2`.** Names must be unique on a sheet. When you combine several items, an untagged one takes its name from the canvas, and a repeated name gets `_2`. Rename the items or tag them before you export.

**Thin lines appear around sprites.** Turn on **Gap between frames**, and check that your engine uses nearest filtering for this texture.

**The sprite looks blurry in-game.** That's the engine's filter, not the file. Set the texture to Nearest (Godot, Phaser, PixiJS) or Point (Unity).

**The sprite jumps between frames after trimming.** Your loader is ignoring the trim offset stored in the JSON. Turn off **Trim transparent edges**, or use a loader that reads `spriteSourceSize`.

**You already have a sheet and want the frames back.** Drop the PNG on the canvas and MakePixel offers **Slice into animations**. For finer control over the grid, use the free [Sprite sheet splitter](https://makepixel.ai/tools/sprite-sheet-splitter/). To turn a GIF into a sheet, use [GIF to sprite sheet](https://makepixel.ai/tools/gif-to-sprite-sheet/).

## Where to go next

Take your sheet into an engine with [Export to Godot](https://makepixel.ai/guide/export-to-godot/), or read more about [sprite sheets in MakePixel](https://makepixel.ai/features/sprite-sheets/). If you still need something to put on the sheet, [pixel art animation](https://makepixel.ai/features/pixel-art-animation/) covers the timeline and onion skin.
