b2KIT

Magic Eraser (Brush)

Paint over areas to remove them using color-similarity flood-fill and replace with transparency.

Tested tool guide Tested browser tools Checked August 16, 2026

What Magic Eraser (Brush) does and how it behaves

A brush stroke in Magic Eraser (Brush) supplies starting points for color-based removal. From those points, the erased area can spread across neighboring pixels that satisfy the color-similarity rule, and every reached pixel becomes transparent. This makes the tool useful for clearing broadly uniform objects or backgrounds without tracing every edge. The common surprise is that it is not a conventional hard-edged eraser: a short stroke may remove a much larger connected region, while a separate region of the same color may remain untouched.

How the result is produced

1

Brush-seeded flood-fill

Each stroke marks one or more starting locations. From every marked location, erasure expands through adjacent pixels that satisfy the tool's color-similarity rule. Expansion stops where pixels fail that rule or the matching area is no longer connected. Consequently, the affected region is determined by both color and connectivity, not simply by the visible width and length of the brush stroke.

2

Transparent replacement

Pixels reached by the fill are changed to transparent rather than recolored. Unreached pixels remain part of the image. The cleared area therefore reveals whatever is displayed behind the result. If the editor shows a checkerboard there, that pattern is only a transparency indicator; it is not new image content painted into the erased region.

Good uses

  • Clear a solid or nearly uniform studio backdrop around a product when the backdrop forms connected regions that can be reached with a few short strokes.
  • Remove a connected, flat-color label, mark, or graphic element from an image when leaving a transparent opening is the desired result.
  • Clean up remaining background patches around a previously isolated subject by brushing each disconnected patch that should become transparent.

Limits and checks

  • A matching color elsewhere in the image is not necessarily erased. Flood-fill depends on connection to a brushed starting location, so isolated islands generally require their own strokes.
  • Color similarity is not object awareness. If an unwanted area and the subject contain connected pixels similar enough to one another, the erasure can cross the apparent visual boundary.
  • Shadows, antialiasing, texture, and compression artifacts introduce neighboring shades. Some may remain as a fringe, while a similarity rule broad enough to catch them may also remove wanted edge pixels.

Common questions

Does the brush recognize the object I want to remove?

No. The removal follows connected pixels that meet a color-similarity condition; it does not identify an object by meaning, shape, or category. It works best when the unwanted area differs clearly in color from what should remain. Where subject and background colors blend together, inspect the boundary carefully and use smaller, more deliberate strokes.

Does erasing replace the selected area with white?

No. Reached pixels become transparent, so white appears only if the result is viewed over a white background. Over another color or image, that underlying content shows through instead. A checkerboard commonly represents transparency in an editor, but the checkerboard itself is not part of the edited image.

References and verification

The behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools