How to use the Remove background tool
- Choose a picture with a plain backdrop under Image file.
- Enter a number in Color tolerance (0–255), or leave the box empty to use 45.
- Select Remove background and inspect the preview.
- If backdrop remains, raise the tolerance. If the subject is eaten away, lower it. Then run the tool again.
- Select Download to save the PNG, named after the source with -transparent added.
How the tool removes a background
The four corner pixels of the picture are taken as background colors. Starting from every pixel on the outer border, a flood fill then spreads up, down, left and right. A pixel joins the fill when its color is close enough to any of the corner colors, and the fill stops wherever the color differs too much.
Every pixel the fill reaches becomes fully transparent. All other pixels keep their original color and opacity. The consequence is that only background connected to the image edge is removed, which protects areas inside the subject that happen to share the backdrop color.
What the color tolerance value means
For each pixel the tool adds up the squared differences of the red, green and blue channels against a corner color. The pixel matches when that sum is at most three times the tolerance squared. In other words, the tolerance is roughly the average difference allowed per channel. The numbers below use the default of 45 and a white corner.
A tolerance of 0 removes only exact matches. At 255 every color matches, and the whole image turns transparent.
tolerance 45 -> limit = 3 x 45 x 45 = 6075
corner color (255, 255, 255)
pixel (230, 225, 220): 625 + 900 + 1225 = 2750 -> transparent
pixel (200, 200, 200): 3025 + 3025 + 3025 = 9075 -> keptWhich images work and which do not
The method fits studio-style pictures. It is not a segmentation model and cannot separate a person from a busy room.
- Good input: products on a white or colored sweep, logos on a flat color, scanned signatures and screenshots with a uniform background.
- Gradients and soft shadows need a higher tolerance, and dark shadow cores usually remain.
- Enclosed areas stay. Backdrop seen through a cup handle or inside the letter O is not connected to the edge.
- A subject that touches the backdrop with the same color lets the fill leak into it.
- A subject that covers a corner makes its own color a background color.
- Edges are cut hard, without feathering, so a thin fringe of backdrop color can remain around the subject.
Output size and limits
The source can be up to 30 MiB. Pictures whose longer side exceeds 2048 pixels are scaled down to 2048 before processing, so a 3000 × 2000 photo comes back as 2048 × 1365. The export is always a PNG with an alpha channel, since JPEG cannot store transparency. Pixels that are already fully transparent in the source count as background when the fill reaches them.
Frequently asked questions
Does this background remover use AI?
No. It compares pixel colors with the four corners of the image and clears matching areas connected to the border. That makes it predictable for plain backdrops and unsuitable for photos with detailed scenery behind the subject.
Why did part of my subject become transparent?
The subject contains colors within the tolerance of the backdrop and touches it, so the fill flowed in. Lower the tolerance, or use a source photo with more contrast between subject and background.
Why is the background inside a closed shape still there?
The fill starts at the image border and only moves through neighboring matching pixels. An area fully enclosed by the subject is never reached, so it keeps its color. Remove such areas in an image editor afterwards.
What tolerance should I start with?
Start with the default of 45. JPEG compression adds faint noise to flat areas, so JPEG sources often need a higher value. A PNG logo on a perfectly uniform color can work with a value near 0.
Is my image uploaded to remove the background?
No. The pixels are read from a canvas and modified with JavaScript in the page. The source picture and the transparent PNG both stay on your computer.