Remove a background cleanly — edge auto-removal versus AI tap, and when to use each
Start with "Auto-remove edge background" for plain backgrounds and "Tap to keep with AI" for busy ones, then refine with the eraser and restore brush. The model is downloaded once on first use and photos are processed only on your device. Save as PNG, WebP or AVIF to keep transparency; JPG fills it with the background colour.
You need background removal when a product photo must sit on white, a profile picture should be a transparent PNG, or an emoji drawing needs its backdrop taken out. In this tool, background removal is the editing dialog opened by the "Remove background" button in Refine (03), and it offers four tools: Tap to keep with AI, Eraser, Restore brush, and Auto-remove edge background.
The two automatic modes work on different principles. Edge removal is colour-based and erases from the outside inwards; the AI tap uses a segmentation model running on your device (MediaPipe interactive segmenter with the MagicTouch model) to find the object at the tapped point and keep it. Either way, the result is stored as a transparency (alpha) mask that leaves the original pixels untouched, so depending on the output format it stays transparent or is composited onto a background colour.
How to use
- Add the photo and press "Remove background" in Refine (03). The editing dialog opens with the photo displayed.
- If the background is a single colour (white wall, paper, studio backdrop), press "Auto-remove edge background" once. Areas similar to the most common colour along the border are erased from the outside in.
- If the background is busy, or auto-removal also erased the subject, select "Tap to keep with AI" and tap the subject. The first time, a note about downloading the model appears briefly. Tap again on parts that were missed (an arm, hair, an object being held) and the areas are merged.
- Tidy the edges with the "Eraser" and "Restore brush". Brush size runs from 1 to 150 pixels (default 30), measured in original pixels. Use a large brush for broad areas and a small one between strands of hair or fingers.
- Check with "Show erased areas dimmed" turned on. Erased areas remain at 25% opacity with a blue outline at the boundary so you can see exactly what was removed. Use "Undo" for a mistaken stroke or "Reset" to start over.
- Press "Done" and choose the format. To keep transparency use PNG, WebP or AVIF; to composite onto white use JPG with the "JPG background colour". The "Switch to PNG" and "Switch to WebP" buttons under the result switch immediately.
How edge auto-removal works and where it stops working
This mode collects the pixels along the four edges of the photo and takes the most frequent colour as the background. Starting from the border it spreads up, down, left and right, erasing pixels whose RGB distance from that colour is within the tolerance (12% of the maximum distance), and softens the 1% band at the tolerance boundary into partial transparency to reduce jagged edges.
So it suits photos with a single-colour background where the subject does not touch the border. It struggles with gradient lighting on the background, clothing or hair close to the background colour, and subjects that touch the edge so the spread leaks inwards. In those cases switch to the AI tap or recover with the restore brush. The tolerance is a fixed value and has no slider.
Getting the most out of the AI tap
The model estimates the object the tapped point belongs to, produces a confidence mask at 512×512, scales it to the original size and applies a 1-pixel feather to soften the edge. You can tap repeatedly and each result is merged as a union, so it is efficient to tap the centre of the subject first and add missed parts one by one. Taps are evaluated against the unedited original, so even a part removed by auto-removal can be brought back by tapping it.
Because estimation happens at 512 pixels, fine detail in large photos — thin hair, fur, spectacle frames — can be blurred. Finish those with a small brush. The model and its runtime are downloaded from this site's domain on first use and cached afterwards. On devices where GPU acceleration fails, it switches to the CPU automatically and is simply slower. If "AI processing failed" appears, tap again or continue with auto-removal and the brushes.
Recommendations by situation
- Shop product photos (white background required): auto-removal → eraser on the shadow → JPG + background colour #ffffff. Unless you need a transparent PNG, JPG wins on file size.
- Profile pictures and avatars (transparent): AI tap on the person → small brush on the hair → crop 1:1 → PNG or WebP. Works well with the "Profile photo" preset (512×512).
- Slack and Discord emoji: auto-removal or AI tap → "Slack / Discord emoji" preset (PNG 128×128, 1:1). At that size rough edges are barely visible, so there is no need to over-refine.
- White background for an ID photo: auto-removal for a plain wall, otherwise AI tap → JPG + white background. See the ID photo guide for the full sequence.
- Logos and drawings already on a plain background: one press of auto-removal usually does it. Anti-aliased edges are handled by the 1% soft band.
Common mistakes and fixes
- The background was removed but the result has a white background: the format is JPG, or the original is JPG/HEIC with "Keep original" selected, so it was composited onto the background colour. Switch to PNG or WebP for transparency. The result area shows "Save as PNG or WebP to keep transparency" with switch buttons.
- Auto-removal erased the subject too: those parts are close in colour to the background. Bring them back with the restore brush, or reset and use the AI tap instead.
- A band of background colour remains along the edge: reduce the eraser size to around 10 and go round the edge once more. "Show erased areas dimmed" makes the remaining band easy to see.
- Trying to apply the same removal to several photos: background removal is per photo. "Apply the same crop ratio to all photos" covers only the crop; masks are not copied.
- Closing the dialog during the model download: it resumes the next time you open it. Once downloaded, it opens immediately.
Frequently asked questions
Is the photo sent to an AI server?
No. The model file is downloaded from this site and runs inside your browser. The photo and the mask never leave your device.
Can I replace the background with another colour or another photo?
A solid colour, yes: keep the format on JPG and pick a colour under "JPG background colour"; the removed area is filled with it. Compositing onto another photo is not available.
Can I undo the removal afterwards?
Inside the dialog use "Undo" and "Reset"; after finishing, "Revert to original" in Refine clears the mask. The original pixels are kept, so you can always go back.
Does saving as WebP reduce the quality of the transparency?
Both WebP and AVIF encode the transparency (alpha) channel at the maximum quality (100). The colour part follows the chosen quality; choose PNG if you need the whole image to be lossless.