---
title: "Sprite Sheet Export for Unity, Godot and Defold"
description: "What each sprite sheet export writes: PNG grid plus Unity .meta slices, Godot SpriteFrames .tres, TexturePacker JSON for Phaser and PixiJS, libGDX .atlas, Cocos2d .plist, Defold .tilesource, Sparrow XML, Tiled .tsj and CSS."
canonical_url: "https://spritesheetgenerator.online/features/export-formats"
meta:
  author: "Dennis Postma"
  "og:description": "What each sprite sheet export writes: PNG grid plus Unity .meta slices, Godot SpriteFrames .tres, TexturePacker JSON for Phaser and PixiJS, libGDX .atlas, Cocos2d .plist, Defold .tilesource, Sparrow XML, Tiled .tsj and CSS."
  "og:image": "https://spritesheetgenerator.online/og-image.png"
  "og:image:alt": "Spritesheet Generator editor showing sprites arranged on a sheet grid"
  "og:title": "Sprite Sheet Export for Unity, Godot and Defold"
  "twitter:image": "https://spritesheetgenerator.online/og-image.png"
  "twitter:image:alt": "Spritesheet Generator editor showing sprites arranged on a sheet grid"
---

> Index of every page on this site: [llms.txt](https://spritesheetgenerator.online/llms.txt)

Feature

# **Sprite Sheet Export Formats**

**Export the sheet with the data file your engine reads: a .meta for Unity, SpriteFrames for Godot, JSON for Phaser and PixiJS, an atlas for libGDX, a plist for Cocos2d, a Tile Source for Defold, XML for Starling and FNF, a tileset for Tiled.**

![Export format dialog listing Phaser, Aseprite, Godot, Tiled, CSS and Sparrow XML options](https://spritesheetgenerator.online/features/export-formats.png)

Overview

## **What each export actually writes**

**The export panel has PNG, WebP, GIF and ZIP buttons for the image side, and a Format button for engine presets. Each preset downloads a ZIP named after the format, holding spritesheet.png and one data file that points at it. Unzip both into your project. The sections below list what is inside each file, so you can tell before you download whether your loader will read it.**

What it does

### **PNG or WebP**

The sheet image alone, no data file. Enough for any engine that slices by cell size, such as GameMaker or Construct.

### **Unity .meta**

The PNG plus a TextureImporter .meta with Sprite Mode Multiple, one named rect per frame, Point filtering and no compression. Unity shows the slices on import.

### **Phaser / PixiJS JSON**

TexturePacker hash layout. Frames are named frame\_000, frame\_001 and so on, with trim offsets when Trim Transparent is on.

### **Godot SpriteFrames (.tres)**

One AtlasTexture region per frame and one looping animation called default at 12 FPS. Assign it to an AnimatedSprite2D.

### **libGDX atlas (.atlas)**

Nearest filtering and one indexed region per frame. atlas.findRegions('frame') returns the animation in playback order.

### **Cocos2d plist (.plist)**

A format 2 property list with one sprite frame per cell, for Cocos2d-x and the plist layout Geometry Dash uses.

### **Defold Tile Source (.tilesource)**

Tile size, zero margin and spacing, and a looping default animation from tile 1 to the last frame at 12 FPS.

### **Sparrow / Starling XML**

A TextureAtlas with one SubTexture per frame, named from the animation name you type in the dialog, such as idle0000.

### **Tiled tileset (.tsj)**

An image-based tileset with tile width, height, column count and tile count. Margin and spacing are 0.

### **CSS sprites**

A .sprite base class with the cell size and the sheet as background, plus .sprite-0, .sprite-1 and onward with background-position offsets.

### **Aseprite JSON**

The same frame rectangles in the JSON layout Aseprite exports, with 100 ms per frame and a single tag. For loaders that read Aseprite JSON; it is not an .aseprite file.

### **Animated GIF**

One GIF frame per cell at a frame rate from 1 to 60. For sharing, not for engines.

### **ZIP of frames**

Every frame as its own PNG in a frames folder, plus a meta JSON with the grid settings and layer list.

In practice

**A PNG holds pixels and nothing else. Where one frame ends, which frames form an animation, how fast they play: none of that is in the image. Engines that slice on a uniform grid can work it out from the cell size. Everything else needs a data file listing each frame rectangle, and without it the loader sees one big picture.**

Engines mostly agree on what that data contains and disagree on its shape. That is why the Format dialog is a list of engines rather than a list of file types. The import guide walks through each engine step by step; this page sticks to what the files contain.

**What to hand each target**

- Unity: the Unity preset. The .meta imports the PNG with Sprite Mode Multiple and every frame already sliced, so there is no Slice dialog to fill in.
- Godot 4: the SpriteFrames preset. The .tres refers to its texture as res://spritesheet.png, so put the PNG at the project root or fix the path after moving it.
- Phaser and PixiJS: the JSON preset. Both read the TexturePacker hash layout with their built-in atlas loaders.
- libGDX: the .atlas preset, loaded with TextureAtlas and animated from findRegions('frame').
- Cocos2d: the .plist preset, loaded with SpriteFrameCache. It is the same property list format Geometry Dash ships.
- Defold: the .tilesource preset. Add it to a Sprite component and play the default animation, or open it to add more animations.
- Starling, Adobe Animate and Friday Night Funkin mods: Sparrow XML. Type the animation name in the dialog; it defaults to the active layer name.
- Tiled: the .tsj tileset, so frames can be painted into a map.
- Plain web pages: the CSS preset, one class per frame.

When nothing on the list fits, the ZIP of single frames works with any tool that reads a folder of PNGs. If you switched the editor to packed mode, use Packed Atlas instead: it writes atlas.png and a TexturePacker-style atlas.json with the packed rectangles. The Format presets always describe the grid layout.

**Every visible layer is drawn into each cell in stack order. Hidden layers are left out entirely, not tucked underneath, so a sheet exported with the effects layer off has no effects in it. Cell size and padding are resolved into pixel positions; padding sits inside each cell, so the data file reports a cell size that includes it and zero spacing between cells.**

Recolor is the one to watch. The sliders on the recolor tab are a live preview, and the export does not apply all of them. Press Bake into frames before exporting and the colours you see are the colours in the file.

The export is a snapshot. The editable version lives in the project file, saved with the JSON button. Keep that for changes and the export for the engine.

**Presets export one at a time, and the sheet stays exactly as it was in between, so a second format is a few clicks. A web build and a desktop build with different loaders is a common reason to want two. So is giving an artist a GIF while the programmer takes the atlas.**

For coming back later, keep the project JSON. It restores layers, grid settings, frame order and recolor values, which no engine format stores, because an engine only needs enough to draw.

**Rename both, or edit the reference**

Every preset names the image spritesheet.png, and most data files refer to it by that name: meta.image in the JSON, imagePath in the XML, the res:// path in the .tres, the first line of the .atlas, the image field in the .tilesource. Rename the PNG to hero\_run.png and the loader goes looking for a file that is no longer there. Change the reference inside the data file too, or keep the names as exported in a folder per sheet. The Unity .meta is the exception: it pairs with the PNG by file name, so spritesheet.png.meta has to be renamed alongside spritesheet.png.

A name that says what the sheet holds and at what size, such as hero\_run\_32, is easier to find six months later than sheet2\_final. In version control the PNG is a binary that will not diff, and that is normal. Commit the project JSON next to it, since it is the only file that records how the sheet was put together.

Frequently Asked

###

###

###

###

###

###

###

**More questions? **[**See the full FAQ**](https://spritesheetgenerator.online/faq)**.**

Set it up in your engine

[**Unity**](https://spritesheetgenerator.online/engines/unity) [** Godot**](https://spritesheetgenerator.online/engines/godot) [** Phaser**](https://spritesheetgenerator.online/engines/phaser) [** PixiJS**](https://spritesheetgenerator.online/engines/pixijs) [** GameMaker**](https://spritesheetgenerator.online/engines/gamemaker) [** Construct 3**](https://spritesheetgenerator.online/engines/construct) [** Defold**](https://spritesheetgenerator.online/engines/defold) [** Tiled**](https://spritesheetgenerator.online/engines/tiled) [** FNF & Sparrow**](https://spritesheetgenerator.online/engines/fnf) [** Engine import guide**](https://spritesheetgenerator.online/guides/import-sprite-sheets-game-engines)

## **Export your sprite sheet**

**Open Format, pick your engine, unzip the pair into your project.**

[Open the editor](https://spritesheetgenerator.online/editor)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://spritesheetgenerator.online/#website","@type":"WebSite","description":"Free online tool to create spritesheets for game development. Upload sprites, arrange them, and export as a spritesheet with animation preview.","name":"Spritesheet Generator","url":"https://spritesheetgenerator.online/","publisher":{"@id":"https://spritesheetgenerator.online/#identity"}},{"@id":"https://spritesheetgenerator.online/features/export-formats#webpage","@type":"WebPage","description":"What each sprite sheet export writes: PNG grid plus Unity .meta slices, Godot SpriteFrames .tres, TexturePacker JSON for Phaser and PixiJS, libGDX .atlas, Cocos2d .plist, Defold .tilesource, Sparrow XML, Tiled .tsj and CSS.","name":"Sprite Sheet Export for Unity, Godot and Defold","url":"https://spritesheetgenerator.online/features/export-formats","breadcrumb":{"@id":"https://spritesheetgenerator.online/features/export-formats#breadcrumb"},"isPartOf":{"@id":"https://spritesheetgenerator.online/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://spritesheetgenerator.online/features/export-formats"]}],"primaryImageOfPage":{"@id":"https://spritesheetgenerator.online/#logo"}},{"@id":"https://spritesheetgenerator.online/#identity","@type":"Organization","description":"A free, browser based sprite sheet generator for 2D game developers and pixel artists.","name":"Spritesheet Generator","url":"https://spritesheetgenerator.online","logo":{"@id":"https://spritesheetgenerator.online/#logo"},"sameAs":["https://discord.gg/2vvfqwn5k7"]},{"@id":"https://spritesheetgenerator.online/features/export-formats#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://spritesheetgenerator.online","position":1},{"@type":"ListItem","name":"Features","item":"https://spritesheetgenerator.online/features","position":2},{"@type":"ListItem","name":"Export Formats","item":"https://spritesheetgenerator.online/features/export-formats","position":3}]},{"@id":"https://spritesheetgenerator.online/features/export-formats#/schema/question/1","@type":"Question","inLanguage":"en","name":"Which export format should I use for Unity?","acceptedAnswer":{"@type":"Answer","text":"The Unity preset. It writes spritesheet.png and spritesheet.png.meta, and the .meta is the import settings file Unity uses, with every frame already sliced. If you only export the PNG, you can still slice by cell size in the Sprite Editor."}},{"@id":"https://spritesheetgenerator.online/features/export-formats#/schema/question/2","@type":"Question","inLanguage":"en","name":"Does the Unity .meta need a plugin?","acceptedAnswer":{"@type":"Answer","text":"No. It is the TextureImporter file Unity writes itself, with Sprite Mode Multiple, one named rect per frame, Point filtering and no compression. Keep the .meta name in step with the PNG name, then reimport."}},{"@id":"https://spritesheetgenerator.online/features/export-formats#/schema/question/3","@type":"Question","inLanguage":"en","name":"Which export should I use for libGDX or Cocos2d?","acceptedAnswer":{"@type":"Answer","text":"libGDX reads the .atlas with TextureAtlas and finds the frames with findRegions('frame'). Cocos2d reads the .plist with SpriteFrameCache. Both need the PNG in the same folder as the data file."}},{"@id":"https://spritesheetgenerator.online/features/export-formats#/schema/question/4","@type":"Question","inLanguage":"en","name":"Why does Godot say it cannot find the texture?","acceptedAnswer":{"@type":"Answer","text":"The .tres points at res://spritesheet.png. If you renamed the PNG or put it in a subfolder, open the .tres in a text editor and change the path on the ext_resource line, or reassign the texture in the Godot inspector."}},{"@id":"https://spritesheetgenerator.online/features/export-formats#/schema/question/5","@type":"Question","inLanguage":"en","name":"Can I export a sprite sheet and XML together?","acceptedAnswer":{"@type":"Answer","text":"Yes. The Sparrow XML preset downloads a ZIP with spritesheet.png and spritesheet.xml, already pointing at each other."}},{"@id":"https://spritesheetgenerator.online/features/export-formats#/schema/question/6","@type":"Question","inLanguage":"en","name":"Does the XML work with Friday Night Funkin?","acceptedAnswer":{"@type":"Answer","text":"Yes. It is the Sparrow TextureAtlas format FNF reads. Type singLEFT as the animation name and the frames come out as singLEFT0000, singLEFT0001 and so on, which is what FNF matches animations against. The name defaults to the active layer name, so renaming the layer is usually enough."}},{"@id":"https://spritesheetgenerator.online/features/export-formats#/schema/question/7","@type":"Question","inLanguage":"en","name":"Can I export multiple formats at once?","acceptedAnswer":{"@type":"Answer","text":"No, one at a time. The sheet does not change in between, so the second format is a few clicks, not a rebuild."}},{"@id":"https://spritesheetgenerator.online/#logo","@type":"ImageObject","caption":"Spritesheet Generator","contentUrl":"https://spritesheetgenerator.online/web-app-manifest-512x512.png","inLanguage":"en","url":"https://spritesheetgenerator.online/web-app-manifest-512x512.png"}]}
```

## Sitemap

See the full [sitemap](https://spritesheetgenerator.online/sitemap.md) for all pages.
