How to erase something from a photo
- Open the photo. Drop a JPG, PNG or WebP file on the upload area, click it to choose a file, or paste with Ctrl+V. The photo appears with a brush toolbar above it.
- Set the brush. Move the “Brush” slider until the circle is a little wider than the thing you want gone.
- Paint over the object. The painted area is marked on the photo. “Undo stroke” takes back the last stroke and “Clear” wipes the whole marking.
- Press “Erase painted area”. The first run downloads the model; after that only the fill itself takes time.
- Judge the result. Press and hold “Hold to compare” to see the original, release to return to the cleaned version.
- Repeat or save. Paint and erase again as often as you like, step back with “Undo last erase”, then use “Download PNG” or “Download JPG”.
What the fill is made of
The technique is called inpainting. The model receives the photo with a hole where you painted and produces new pixels for the hole that continue the surroundings: sand continues as sand, a brick pattern keeps its rows, a horizon line is carried through. It has no copy of what was really behind the object. It writes a plausible guess.
The 512-pixel window
Neither model looks at the whole photo. With LaMa the tool cuts a square around the painted area, about 1.6 times its size and never smaller than 512 px, shrinks that square to 512×512, lets the model fill it and scales the answer back. MI-GAN works on a 512×512 window around the marking in the same way. Two consequences follow:
- A small marking is filled at full sharpness, because its square is not shrunk at all.
- A marking 800 px wide is computed at well under half its real resolution. The fill is correct in colour and structure but softer than the photo around it.
Only painted pixels change
The new pixels are pasted back only where you painted; LaMa blends them in over a 2 px transition. Everything outside the marking stays identical to the original, however many passes you make.
Two models: LaMa and MI-GAN
| Large objects — LaMa (best) | Small objects — MI-GAN (fast) | |
|---|---|---|
| Made by | Samsung AI | Picsart |
| Licence | Apache 2.0 | MIT |
| One-time download | 92 MB | 24 MB |
| Time per fill | About 10–30 s on the CPU | Under a second |
| Strong at | Big areas, repeating textures, long lines | Spots, wires, small logos |
| Preselected on | Computers | Phones and tablets |
The choice is under “Advanced” in the “Model” list. Start with the preselected one. Switch to MI-GAN on a computer when you clean many small things in a row and do not want to wait for each; switch to LaMa on a phone when a larger area comes out smeared and you can spare the time.
If LaMa cannot be loaded, the tool fills with MI-GAN instead and shows a note.
Brush technique that pays off
One object per pass
All strokes painted before one press of the erase button are handled together: the square is drawn around everything you marked. Mark a bird in the top left corner and a bottle in the bottom right, and the square covers nearly the whole photo, so both fills turn soft. Erase them one after the other.
Let the tool add the margin
The marking is widened automatically before the fill, by 2 px on small photos and by 5 px on a 2048 px photo. Follow the outline of the object; a thick safety border only enlarges the hole and removes context the model could have used.
Shadows and reflections count as the object
A person without their shadow still looks present. Mark the shadow on the ground, the reflection in water or glass, and anything the person is holding.
Pick the brush size for the job
The slider starts at 1/25 of the long side of the photo and reaches 1/6 of it; the smallest brush is 6 px. Use a small brush along a border with something you want to keep, and a large one for the middle of the object.
Large objects: work from the edges inwards
Remove a big object in two or three passes. Take a strip next to the cleanest background first, erase, then take the next strip. Each pass gives the model fresh real pixels to continue from.
What comes out well, and what does not
| Target | Surroundings | Result |
|---|---|---|
| Person, bin, sign, car | Sky, sand, grass, water, plain wall | Usually invisible |
| Power lines, cables, fence wire | Sky or foliage | Very good with a thin brush |
| Spots, dust, scratches, skin blemishes | Any even surface | Very good |
| Date stamp or small caption | Photo corner | Good |
| Object crossing straight lines | Tiles, railings, window frames | Lines may bend or break; use small passes |
| Object in front of a face or hands | Another person | Poor; anatomy is not rebuilt |
| Object filling a third of the frame | Any | Soft, blotchy fill |
| Text across a detailed pattern | Fabric, print, artwork | Pattern is approximated, not restored |
Several passes, Undo and comparison
Every press of “Erase painted area” produces a new version of the photo, and the tool keeps the last 6 of them. “Undo last erase” steps back one version at a time. “Undo stroke” is a different control: it only removes brush strokes that have not been erased yet, up to 12 of them.
“Hold to compare” always shows the photo as you opened it, not the previous version, so you can check the whole edit at any point. The download buttons become active after the first erase.
Common jobs
Tourists and passers-by
Start with the people who are far away and small. They disappear cleanly and leave more undisturbed background for the difficult ones in front. To hide a person’s identity instead of removing them, use the face blur tool.
Wires, antennas and lamp posts
Follow the line with a narrow brush in one stroke. A thin marking keeps its square small, so the sky or the foliage is filled at full sharpness.
Dust and scratches on scanned prints
Dab each speck with a small brush. For faces that are blurred or damaged, continue with the photo restoration tool afterwards; it rebuilds faces but does not repair scratches itself.
Product and property photos
Remove a price tag, a cable or a stain before you publish the picture. If the product then needs a new backdrop, the background remover is the next step.
Saving: PNG or JPG
“Download PNG” stores the picture without loss and is the right choice when you will edit again. “Download JPG” saves at 92 % quality and gives a much smaller file for sharing. Both carry the pixel size shown next to the file name, and the name gets the ending -cleaned.
Size limits and formats
- Input: JPG, PNG and WebP. HEIC photos open only in browsers that decode HEIC themselves.
- Working size: up to 2048 px on the long side. A larger photo is scaled down when it opens, and a note tells you the size being used. The download has that size too.
- One photo at a time.
If you need more pixels than 2048 afterwards, enlarge the cleaned picture with the AI image upscaler.
What this tool is not for
- It does not invent a specific replacement. You cannot ask for a tree where the car was. The hole is filled with a continuation of what surrounds it.
- It does not rebuild hidden people. If the object covered half a face, the face is not recreated.
- It does not select objects for you. There is no click-to-select; the brush marking is the only input.
- It is not meant for watermarks on other people’s pictures. Use it on images you own or may edit.
- It does not remove the whole background. That is a different operation, done by the background remover.
Where the computation happens
Both models run on the CPU through WebAssembly by default, in a background thread, so the page stays responsive while a fill is computed. The photo and the marking never leave the browser; the only download is the model file, stored in the browser’s cache for later visits.
“Advanced” has a “Compute” list with a GPU option marked experimental. On some graphics cards the GPU path returns wrong fills, for example white patches, which is why it is not the default. If you try it and the result looks wrong, switch back to the CPU. When the GPU path fails outright, the tool repeats the fill on the CPU by itself and says so.
On a phone, keep the tab open until the fill is finished.
Troubleshooting
A ghost or outline of the object is still visible
The marking was too tight or missed the shadow. Paint over the leftover with a small brush and erase again.
The filled area is blurry
The marking was large, so it was computed at reduced resolution. Undo, then remove the object in smaller strips, or mark distant objects in separate passes.
A straight line is bent where the object was
Erase again with a narrow marking that covers only the faulty part of the line. Short gaps in a line are bridged far better than long ones.
White or coloured patches appear instead of a fill
“Compute” is set to the GPU. Open “Advanced” and choose the CPU.
The erase button is greyed out
Nothing is painted yet, or “Hold to compare” is still pressed.
The download is smaller than my original
The photo was wider than 2048 px and was scaled down when it opened.