Remove an Object from a Photo with a Free Magic Eraser
Paint over a stranger, a bin or a power line and let an AI model fill the gap. How the magic eraser works, step by step, and where it struggles.
The holiday shot is nearly perfect. Nearly, because a stranger in a yellow jacket is walking through the background, there's a bin next to the bench, or a power line cuts straight across the sky. Cropping would cost you half the picture. What you want is for that one thing to quietly disappear.
That's what the magic eraser for photos is for. You paint over whatever should go, and an AI model called LaMa fills the area with texture that matches its surroundings. It all runs in your browser, so the photo stays on your device.
What happens when you press Erase
The tool takes a square region around your brush strokes, plus extra surroundings for context, and passes it to the LaMa inpainting model at 512 × 512 pixels. The model fills the painted part, and the tool scales that patch back to size and blends it in with a soft edge. Anything you didn't paint keeps its original pixels.
Two practical things follow. Small removals look sharpest, because the region sent to the model is close to its working size. A very large removal in a big photo is filled at a lower effective resolution, so it can look a touch softer than the area around it. Several smaller passes usually beat one enormous stroke.
Erasing an object, step by step
- Open the AI object remover and drop in a JPG, PNG or WebP photo. Very large photos are scaled so the longest side is at most 3000 px.
- Set the brush size (8 to 120 px) and paint over the object. Cover all of it, a little past the edges, and include its shadow or reflection.
- Click Erase. The first time, the model (about 208 MB) downloads and is stored in your browser, so later sessions start sooner.
- Check the result. If anything is left over, paint it and erase again. Undo takes you back through recent edits if a pass goes wrong.
- Choose PNG or JPG and download.
Habits that make the fill look natural
- Shadows give it away. Remove a person but leave their shadow on the pavement, and anyone looking will sense something's off. Paint the shadow too.
- Go a few pixels wider than the object. A tight outline leaves a faint ghost of the edge, and the model may copy it into the fill.
- Take big objects in pieces. Erase the outer part first, then the middle. Each pass gives the model fresh background to borrow from.
- Zoom in before saving. Repeating patterns like bricks or tiles can come out slightly misaligned. A second small pass over the seam often sorts it out.
- Pick PNG if you'll keep editing. JPG is smaller, but every save adds a little compression.
Where it shines and where it struggles
Natural, irregular backgrounds are its comfort zone: sky, sea, sand, grass, foliage, plain or textured walls. Tourists on a beach, a cable over a hillside, a stain on a cushion, a date stamp in the corner of an old scan all tend to vanish cleanly.
It finds things harder when the object hides something with precise structure. If a lamp post stands in front of a window frame or the lettering on a shop sign, the model has to invent straight lines and letters it never saw, and its guess may not line up. A person overlapping another person is a similar story. Expect several passes, and occasionally accept that a crop is the better answer.
A note on watermarks: only remove them from images you own or have permission to edit. Stripping a watermark from someone else's photo can break copyright and the terms under which it was shared.
If what you actually want is to keep the subject and drop the whole background, that's a different job. The AI background remover handles it far better than painting around everything by hand.
Frequently asked questions
Why does the first erase take a while?
The AI model is about 208 MB and downloads once. After that it's saved in your browser, so later uses start much sooner.
Does the magic eraser lower my photo's quality?
Only the painted area is regenerated and the rest keeps its original pixels, although photos larger than 3000 px on the longest side are scaled down when opened.
Are my photos uploaded?
No. The model runs in your browser and your photo never leaves your device.
