How to add an outline to a sprite
- Drop one or more transparent PNG sprites above.
- Pick an outline type, a thickness and a corner style. For classic pixel art, use a 1 px outer outline with rounded corners.
- Choose a color. Very dark tints of the sprite's own colors often look better than pure black.
- Keep Grow canvas on so the outline isn't clipped at the image edge, then download.
Outline tips from pixel artists
- Selective outlining: after adding a dark outline, recolor the outline pixels that face the light source with a lighter shade. This gives more volume than a uniform line.
- Animation consistency: outline every frame with exactly the same settings, using batch mode, so the line weight doesn't flicker.
- Sprite sheets: leave at least the outline thickness of empty space between frames. Otherwise outlines from neighboring frames merge.
- Engine outlines vs baked outlines: shader outlines can change color at runtime. Baked outlines are free to render and look exactly as drawn. A common mix is to bake the dark outline and use a shader or an "outline only" image for hover highlights.
How it works
The tool computes the step distance from every transparent pixel to the nearest opaque pixel. It uses alpha 128 as the threshold, so soft edges count as half-solid.
Pixels within the chosen thickness become outline pixels. With 4-direction steps, the distance forms a diamond, which gives rounded corners. With 8-direction steps, it forms a square, which gives sharp corners.