How to Erase Outside of a Line in Procreate
StyleFrame Team7 min read
The quick way to erase outside a line in Procreate is to select the area inside the shape, invert the selection, and erase or clear what remains. If you want to avoid erasing at all, put your color on a clipping mask layer above the base shape so paint can't leave its edges. The clipping mask also keeps your edits non-destructive.
Pick the right method first
"Outside the line" can mean a few different things in Procreate, and the best fix depends on which one you have:
- Color has already spilled past your line art. Use a selection, invert it, and clear the excess.
- You're about to paint and want to stay inside a shape. Use a clipping mask or Alpha Lock before you start.
- You want to hide the overflow but keep it recoverable. Use a layer mask.
- You're filling flat color between line art. Use a Reference layer with ColorDrop, then clean the edges.
The sections below cover each one in the order you're most likely to need them.
Method 1: Select inside, invert, and clear
This is the standard cleanup when color or texture has already crossed your outline.
- Select the layer that holds the stray marks. Selections in Procreate act on the active layer, so it matters which one you pick.
- Tap the Selection tool (the S-shaped icon in the top bar) and choose Automatic.
- Tap inside the shape you want to keep. Procreate selects the closed region based on the pixels of the active layer. Drag your pencil or finger to adjust the threshold if the selection is too loose or too tight.
- Tap Invert in the bottom toolbar. Now everything outside the shape is selected.
- Clear the selected area. You can swipe three fingers down and choose Cut, or tap the layer and choose Clear. You can also pick the Eraser and scrub, since the selection acts as a boundary.
The last option is the most forgiving. With the selection active, your eraser can't touch anything inside the shape, so you can use a large soft brush without worrying about damaging the edge.
When Automatic selection fails
Automatic selection leaks if your line has even a tiny gap. If the selection spills across the canvas, you have two options:
- Close the gap on a separate layer with a small brush, then retry.
- Switch to Freehand or Polygon mode and trace the boundary yourself. Polygon works well for hard-edged shapes because you can place points precisely and zoom in between them.
If you need a softer edge, use the Feather option in the selection toolbar before clearing. For clean cutouts that will be composited later, keep feathering at zero or very low so you don't introduce a halo.
Method 2: Clipping masks, so you never go outside
A clipping mask is the cleanest way to prevent the problem. It confines everything on one layer to the visible pixels of the layer below it.
- Draw or fill your base shape on its own layer.
- Add a new layer directly above it.
- Tap the new layer and choose Clipping Mask. You'll see a small arrow appear next to the layer thumbnail.
- Paint, shade, or texture on the clipped layer. Nothing appears outside the base shape.
The key benefit is that the relationship stays live. If you later reshape or erase part of the base layer, the clipped layers follow automatically, so you don't have to repaint shadows or highlights. You can stack as many clipped layers as you need, such as one for shadows, one for highlights, and one for texture, and adjust each one's opacity or blend mode independently.
Erasing on a clipped layer
Erasing on a clipped layer only removes pixels from that layer. The base shape stays intact. This is useful for pulling back a shadow without touching the underlying fill.
If you want to trim the base shape itself, select that layer and erase there. Every clipped layer above it updates to match.
Method 3: Alpha Lock for quick in-shape painting
Alpha Lock is a faster, lighter alternative when you don't need a separate layer. Swipe two fingers to the right on a layer to lock its transparency. Anything you paint then only affects pixels that already exist on that layer.
Alpha Lock is good for recoloring a flat shape or adding a quick gradient. The tradeoff is that it's destructive: the paint merges into the same layer, so you can't adjust it independently later. Use a clipping mask when you expect to revise.
Method 4: Layer masks for non-destructive erasing
If you're not sure you want the overflow gone permanently, use a layer mask instead of the Eraser.
- Make a selection of the area you want to keep (steps from Method 1).
- Tap the layer and choose Mask. Procreate applies the selection to the mask.
- Paint with black on the mask to hide areas, and white to bring them back.
Nothing is deleted. The "erased" pixels remain on the layer, so you can reveal them later if a client changes direction or you realize an edge was cut too tightly. Layer masks are also the better choice for hair, fur, or other organic edges where you want to refine the boundary over several passes.
Method 5: Reference layer and ColorDrop for flat fills
When you're coloring line art, you can avoid spill entirely with a Reference layer.
- Set your line art layer as Reference from the layer menu.
- Create a new layer underneath for your color.
- Drag the color swatch into a closed area to fill it. ColorDrop reads the line art and fills only that region.
- If the fill leaves a pale fringe or leaks through a gap, adjust the ColorDrop threshold while still holding, or close the gap on the line art layer.
For the sliver of color that sometimes peeks out at the line edge, place your color layer under the line art and let the line sit on top. The line hides small inconsistencies. Alternatively, run a quick select-invert-clear pass.
Tips for cleaner edges
- Zoom in before you erase. Working zoomed in helps you catch stray pixels that look fine at fit-to-screen.
- Use a hard eraser brush for hard-edged art. Soft brushes leave semi-transparent pixels that show up as fringes when composited over a different background.
- Name and group layers. Once you have fills, shadows, highlights, and line art, grouping them keeps clipping masks from breaking when you reorder.
- Check which layer is active. Many "the eraser isn't working" problems come from erasing on the wrong layer, or from a clipped layer with nothing beneath it.
- Lock your line art. Alpha Lock the line layer, or keep it on top, so you can't accidentally erase it while cleaning color.
Common problems and fixes
Selection includes the whole canvas. There's a gap in your outline, or you're selecting on an empty layer. Close the gap or select on the layer with the shape.
Clipped layer shows nothing. The layer beneath it may be empty, hidden, or not directly below. Clipping masks only affect the layer immediately underneath.
Stray pixels remain after clearing. A low-opacity stroke may be hiding at the edge. Hide the other layers or put a dark background behind the layer to spot them.
Edges look jagged after inverting. Automatic selection can create hard edges. Add a small amount of feather, or use a clipping mask and trim the base layer.
Taking cleaned-up Procreate art into a motion pipeline
If your Procreate artwork is heading to After Effects, Nuke, or a video edit, edge cleanliness matters more than it does in a static illustration. Leftover semi-transparent pixels turn into visible fringing when keyed over moving backgrounds. Export with transparency as PNG for single assets, or as a layered PSD if you want to animate parts separately. Check how clipping masks and layer masks come through on import, and merge or flatten layers where the result doesn't match what you saw in Procreate.
Once the art is clean, it makes better source material for any motion or AI-assisted workflow. Crisp edges and tidy layers in Procreate still give you better source frames, and better source frames give you more predictable results downstream.
Quick reference
For most illustration and animation prep work, a clipping mask is the habit worth building. It removes the cleanup step before it exists. When you inherit a messy file or have to fix something fast, select, invert, and clear is the reliable fallback.