Overview
Sprite sheets (also called texture atlases) combine multiple animation frames or sprites into a single image file. This technique is essential for game development, reducing draw calls and improving performance.Aseprite can automatically generate optimized sprite sheets with accompanying data files for various game engines and frameworks.
Accessing Sprite Sheet Export
Open the Export Dialog
Navigate to File → Export → Export Sprite Sheet or press
Ctrl+E (Windows/Linux) or Cmd+E (macOS).Layout Types
- Horizontal
- Vertical
- Packed
Frames arranged in rowsOptions:
- Fixed number of columns
- Maximum width constraint
- Auto-wrap to next row
Layout Constraints
Fixed Columns
Specify exact number of columns
Fixed Rows
Specify exact number of rows
Max Width
Maximum sprite sheet width
Max Height
Maximum sprite sheet height
Padding & Borders
Border Padding
Border Padding
Empty space around the entire sprite sheet edge.Range: 0-100 pixelsUse cases:
- Prevent edge bleeding in 3D engines
- Create safe margins
- Avoid texture filtering artifacts
Shape Padding
Shape Padding
Space between individual frames/sprites.Range: 0-100 pixelsUse cases:
- Prevent UV bleeding
- Visual separation
- Easier manual editing
Inner Padding
Inner Padding
Padding inside each frame boundary.Range: 0-100 pixelsUse cases:
- Consistent frame spacing
- Alignment adjustments
Extrude
Extrude
Extends the edge pixels outward into padding.Benefits:
- Eliminates edge artifacts
- Perfect for 3D texture mapping
- Prevents transparent gaps
Extrude repeats the edge pixel color into the padding area to prevent texture sampling issues.
Frame Selection
- All Frames
- By Tag
- Selected Frames
- By Layer
Export every frame in the sprite.
Optimization Options
Trim Sprite
Remove empty space around entire spriteCrops transparent pixels from canvas edges
Trim Cels
Remove empty space per frameEach frame individually cropped
Ignore Empty
Skip completely transparent framesReduces sprite sheet size
Merge Duplicates
Reuse identical framesSignificant size reduction for loops
Data File Formats
Sprite sheet metadata can be exported in various formats:- JSON
- JSON Array
- CSS
- XML
Advanced Features
Split Layers
Split Layers
Generate separate sprite sheets for each layer.Output:Useful for:
- Modular character systems
- Customizable sprites
- Dynamic layer composition
Split Tags
Split Tags
Split Grid
Split Grid
Export grid cells as individual sprites.Useful for:
- Tile-based sprites
- Grid-aligned assets
- Uniform cell exports
From Tilesets
From Tilesets
Export tilemap tilesets as sprite sheets.Features:
- Preserve tile indices
- Include tile metadata
- Optimize for tile-based rendering
Game Engine Integration
- Unity
- Godot
- Phaser
- libGDX
Recommended settings:
- Format: JSON or JSON Array
- Layout: Packed or Grid
- Enable: Trim Cels, Merge Duplicates
- Import PNG as Sprite (Multiple)
- Use Sprite Editor to slice
- Parse JSON for animation data
Best Practices
Power-of-Two Dimensions
Use texture sizes that are powers of 2 (256, 512, 1024, 2048) for better GPU compatibility.
Some older mobile GPUs require power-of-two textures.
Minimize Padding for Mobile
Mobile devices have limited texture memory. Use minimal padding when targeting mobile platforms.
Command Line Export
Export sprite sheets via CLI for build automation:Troubleshooting
Sprite sheet too large
Sprite sheet too large
Solutions:
- Reduce padding values
- Enable trim and merge duplicates
- Split by tags or layers
- Reduce sprite resolution
- Use packed layout
Texture bleeding between frames
Texture bleeding between frames
Solutions:
- Increase shape padding (1-2 pixels minimum)
- Enable extrude option
- Disable texture filtering in engine
- Use premultiplied alpha
Wrong frame order in data file
Wrong frame order in data file
Solutions:
- Use filename format to control ordering
- Check tag frame ranges
- Verify selected frames
- Use JSON format for explicit indexing
Transparent pixels appearing as black
Transparent pixels appearing as black
Solutions:
- Check color mode (use RGBA)
- Ensure alpha channel is not premultiplied incorrectly
- Verify game engine blend modes
- Use PNG format for sprite sheet
Related Topics
File Formats
Learn about output file format options
GIF Export
Alternative animation export method
PNG Sequences
Export individual frame files

