---
title: "Export pixel art to GameMaker, Phaser and PixiJS"
description: "Export sprite strips for GameMaker and sprite sheets with JSON for Phaser and PixiJS, with working code, crisp settings and the limits to know."
source: https://makepixel.ai/guide/export-to-gamemaker-and-web/
language: en
updated: 2026-11-25
---

# Export pixel art to GameMaker, Phaser and PixiJS

All three of these start from the same place: **Export to** → **PNG** → **Layout: Sprite sheet**. The **Format** menu then writes what each one reads: a strip for GameMaker, or a sheet with JSON for Phaser and PixiJS.

## GameMaker

GameMaker treats one sprite as one animation, and it can read the frame count from a file's name. So MakePixel writes a single-row **strip** named `name_stripN.png`, where `N` is the number of frames.

### Export a strip

1. Select the animation on the canvas and press ⌘E (Ctrl+E on Windows and Linux).
2. Under **Export to**, pick **PNG**, and set **Layout** to **Sprite sheet**.
3. Set **Format** to **GameMaker**, then select **Export**.
4. Unzip the download. Inside is `name_strip8.png` (for 8 frames) and `provenance.json`.

Reverse and ping-pong tags are written out as real frames, so the strip plays correctly from left to right.

**One sprite per animation.** A strip holds everything you export, in order. To get `walk`, `idle` and `jump` as separate GameMaker sprites, keep each as its own image on the canvas, select them all, and turn off **Combine into one file**. Each one gets its own strip.

### Bring it into GameMaker

1. Drag the PNG into GameMaker. Keep the `_stripN` ending in the file name, because that's what tells it how many frames to cut.
2. If it comes in as a single image, open it in the Image Editor and use **Convert to Frames** with your frame count.
3. Set the sprite's **Origin**. Bottom centre suits most characters.
4. Set the animation **Speed**.

A strip has no room for timing, so **frame durations don't come across**. GameMaker plays a sprite at one speed. If a pose needs to hold longer, repeat that frame in MakePixel before you export.

To keep pixels sharp, turn off **Interpolate colours between pixels** in your Game Options.

## Phaser

Phaser can load Aseprite-format JSON directly, so a sheet from MakePixel works with two calls.

1. Export with **PNG** → **Sprite sheet**, **Format: Phaser**.
2. Put `hero.png` and `hero.json` in your game's assets.
3. Load them and create the animations:

```js
const config = {
  type: Phaser.AUTO,
  pixelArt: true, // keeps every sprite sharp
  scene: {
    preload() {
      this.load.aseprite("hero", "assets/hero.png", "assets/hero.json")
    },
    create() {
      this.anims.createFromAseprite("hero")
      this.add.sprite(160, 90, "hero").play({ key: "walk", repeat: -1 })
    },
  },
}

new Phaser.Game(config)
```

Each tag becomes an animation with the tag's name, so `walk` above is the name you gave it in the timeline. The **Generic** format writes the same files, so a sheet you already exported that way works too.

**Tile maps in Phaser.** Export the map to **Tiled** with **Format: JSON**. Phaser needs tilesets embedded in the map file, and ours are separate files, so open the map in Tiled, use **Embed Tileset**, and save before loading it with `this.load.tilemapTiledJSON`.

## PixiJS

Choose **Format: PixiJS**. You get the same sheet plus an `animations` list in the JSON, which is the part PixiJS reads.

```js
import { AnimatedSprite, Application, Assets } from "pixi.js"

const app = new Application()
await app.init({ width: 320, height: 180 })
document.body.append(app.canvas)

const sheet = await Assets.load("assets/hero.json")
sheet.textureSource.scaleMode = "nearest" // keeps the pixels sharp

const frames = sheet.data.animations.walk.map((key) => ({
  texture: sheet.textures[key],
  time: sheet.data.frames[key].duration,
}))

const hero = new AnimatedSprite(frames)
hero.play()
app.stage.addChild(hero)
```

This example uses the PixiJS v8 API. The `time` line matters: PixiJS doesn't apply the JSON's frame durations on its own, so passing `{ texture, time }` is what keeps your animation's timing. If every frame has the same duration, you can pass `sheet.animations.walk` and set `animationSpeed` instead.

## On a web page

If you only want a sprite on a website, you don't need a game library:

- **SVG** scales cleanly at any size, and an animated SVG runs on CSS alone, with no JavaScript. Pick **SVG** under **Export to**.
- **GIF** works everywhere, with one level of transparency. **Scale** defaults to 4×.
- **APNG** (under **GIF** → **Format**) keeps soft transparency and isn't limited to 256 colours.

For a bitmap, add one CSS line so the browser doesn't blur it when it scales:

```css
img.sprite { image-rendering: pixelated; }
```

## Common problems

**GameMaker imports one big image.** The file name lost its `_stripN` ending, or the import didn't split it. Rename it, or use **Convert to Frames**.

**Timing is wrong in GameMaker.** Strips don't carry durations. Set the sprite's speed, and repeat frames that should hold longer.

**Sprites are blurry.** Use `pixelArt: true` in Phaser, `scaleMode = "nearest"` in PixiJS, and turn off colour interpolation in GameMaker.

**`play("walk")` can't find the animation.** Animation names come from your tags and are case-sensitive. An untagged animation is called `default`, or takes its canvas name when several are combined.

**Frames are missing.** Once an image has tags, only frames inside a tag are exported.

## Where to go next

For layouts, padding and trimming, see [sprite sheets](https://makepixel.ai/features/sprite-sheets/). To turn an existing GIF into a sheet, use [GIF to sprite sheet](https://makepixel.ai/tools/gif-to-sprite-sheet/). Using Godot? See [Export to Godot](https://makepixel.ai/guide/export-to-godot/).
