A sprite is the fundamental container in Aseprite that holds all the elements of your pixel art project. It’s essentially a canvas that contains layers, frames, palettes, and all the visual data for your artwork.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/aseprite/aseprite/llms.txt
Use this file to discover all available pages before exploring further.
What is a Sprite?
In Aseprite, a sprite represents a complete document with specific dimensions, a color mode, and a collection of visual elements organized in layers and frames. Think of it as the “project file” that contains everything about your artwork.Every sprite has a fixed width and height measured in pixels, with a maximum size of 65535×65535 pixels.
Creating a Sprite
You can create sprites programmatically using the Lua API:Sprite Properties
Dimensions
Every sprite has specific dimensions that define its canvas size:Color Mode
The color mode determines how pixel data is stored and displayed. See Color Modes for detailed information.Transparent Color
For indexed sprites, you can specify which palette index represents transparency:Pixel Ratio
Pixel ratio allows you to define non-square pixels, useful for emulating retro systems:Grid Settings
Sprites can have grid settings that help with alignment and tiling:Working with Sprite Content
Layers
Sprites contain a hierarchy of layers. See Layers for details.Frames
Sprites can have multiple frames for animation. See Frames for details.Palettes
Each sprite has one or more palettes. See Palettes for details.Sprite Types
Standard Sprites
Most sprites are created with a transparent background layer:Background Layer
Sprites can have a locked background layer:Tilemap Sprites
Sprites can use tilesets for efficient tile-based graphics:Common Operations
Duplicating Sprites
Flattening
Saving Sprites
Sprite Lifecycle
Checking Validity
Undo/Redo
Best Practices
Choose the Right Color Mode
Choose the Right Color Mode
Select your color mode based on your target:
- RGB: Modern games, web graphics, full-color artwork
- Indexed: Retro games, limited palettes, small file sizes
- Grayscale: Black and white artwork, alpha masks
Set Appropriate Dimensions
Set Appropriate Dimensions
Consider your target platform:
- Game sprites: Often powers of 2 (32×32, 64×64)
- Pixel art: Common sizes like 16×16, 32×32, 48×48
- Maximum size: 65535×65535 pixels
Use Grid for Tile-Based Art
Use Grid for Tile-Based Art
Set grid bounds to match your tile size for easier alignment and drawing of tile-based graphics.
Related Concepts
Layers
Learn about organizing content in layers
Frames
Understand animation frames
Color Modes
Explore different color modes
Palettes
Work with color palettes

