Background Remover
Remove plain backgrounds from product photos and logos (colour-based, no AI) → transparent PNG.
How it works
Makes the background of an image transparent by colour: it estimates the background colour from the image border and removes it with an adjustable tolerance, or removes one colour everywhere (chroma key / green screen). Works well for product photos, logos and scans on plain backgrounds; it does NOT understand people or complex scenes, because it uses no AI model.
- This is NOT an AI background remover. It decides per pixel by colour distance only, so it works for a subject on a plain, evenly coloured background (product shots, logos, scans, green screen) and fails on busy scenes, hair, or subjects with the same colour as the background.
- Automatic mode shrinks the image to 200×200 px and takes the per-channel median of a 3-pixel border ring as the background colour. The share of border pixels within the tolerance ("border uniformity") predicts how well the method will work.
- Edge-connected modes add a 1-pixel frame in the background colour and flood-fill from it with ImageMagick (-fuzz, -floodfill), so only background regions touching the edge are removed and same-coloured areas inside the subject stay. Chroma-key mode removes every pixel close to the colour, wherever it is.
- The resulting mask is cleaned with a morphological open (removes specks) and close (fills pin holes) using a disk of the chosen radius, optionally blurred to feather the edge, and used as the alpha channel of a PNG.
- Existing transparency is flattened onto white first. Colour tolerance is a root-mean-square distance over R, G and B relative to the full 0–255 range.
Colour-based removal is approximate. Check the edges in the preview; for portraits or complex scenes use an AI tool or manual masking.
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
Related tools
- Image Compressor – Shrink JPG, PNG, WebP, AVIF or GIF images: convert, resize, strip metadata and compare sizes.
- Batch Image Resizer & Cropper – Resize or crop up to 30 images at once: exact size, fit, percentage or 1:1, 4:5, 16:9, 9:16.
- Batch Watermark Studio – Add a text or logo watermark to up to 30 images at once: position, tiling, opacity and angle.
How to use the Background Remover
Make a plain background transparent for product photos, logos and scans, with tolerance and edge settings explained and an honest look at where colour-based removal fails.
What it is for
You have a product photo on a white or grey sweep, a logo on a coloured box, or a green-screen shot, and you need a transparent PNG for a shop, a slide or a design. This tool removes the background by colour: it estimates the background colour from the image border and removes everything close to it, or removes one colour everywhere (chroma key).
There are three methods. Automatic detects the colour from the border and removes background connected to the edges. Colour, connected to the edge does the same with a colour you choose. Chroma key removes the chosen colour wherever it appears, including inside the subject.
Be clear about the limits: there's no AI model here. It doesn't understand people, hair or busy scenes. For portraits, use an AI tool or manual masking.
Worked example
A 1200 × 900 JPG of a blue mug on an off-white background, with a soft grey shadow underneath and a white highlight stripe on the mug. Automatic mode with the defaults (tolerance 12, clean-up 1, feather 0.5):
Removed 81.7% of the image as background #f5f5f3 (tolerance 12%, border uniformity 100%: good fit for colour-based removal); transparent PNG 1200×900 px, 1.02 MB.
The detected colour #f5f5f3 is the real off-white, not pure white. The preview shows a clean mug with the shadow gone. The white stripe on the mug stayed, even though it's close to the background colour, because it doesn't touch the edge of the image and edge-connected removal only eats inward from the border.
With tolerance lowered to 4, only 79.5% was removed: the grey shadow stayed as a pale ellipse under the mug. Sometimes that's what you want, for a grounded look.
For contrast, a mountain landscape photo gave border uniformity 28%, "poor fit", with a warning recommending an AI tool. The method knew it would fail before you even looked.
How to read the result
- Metrics: background colour, border uniformity, suitability and removed share. Border uniformity is the share of border pixels close to the detected colour. Near 100% means a plain background; low values mean a busy one, and a warning appears.
- Details table: method, tolerance, sampled border pixels, kept and removed percentage, clean-up, feather and output size.
- Preview on a checkerboard, so transparency is visible, and the PNG download.
The removed percentage is a quick sanity check. If almost everything disappeared, the tolerance is too high or the subject shares the background colour.
Tips and common mistakes
- Raise tolerance (15–25) for shadows, gradients and JPEG noise. Lower it if parts of the subject's edge vanish.
- Use chroma key for green screen, or for a logo with holes (the inside of an "O" or "A") where the background colour also shows inside the letters.
- Use connected to the edge when the subject contains the background colour, like white text on a white-background product.
- Clean-up removes specks and fills pin holes. Increase it for noisy JPGs; set it to 0 for fine line art.
- Feather softens edges. 0.5–1 looks natural for photos; use 0 for crisp logos and icons.
- Images with existing transparency are flattened onto white first, so re-processing a PNG treats its transparent areas as white.
FAQ
Can it remove the background from a portrait?
Not well. Hair, skin and clothing vary too much in colour for a per-pixel colour rule. Use an AI background remover or mask by hand.
Why is a white part of my product gone too?
Either you used chroma key, which removes the colour everywhere, or the white area touches the image border. Switch to an edge-connected method, or lower the tolerance.
Why is the PNG so much bigger than my JPG?
PNG is lossless and has to store the alpha channel. For web use, convert the result to WebP with transparency using the Image Compressor.
Which formats can I upload?
JPG, PNG, WebP, AVIF, GIF, TIFF and HEIC, up to 50 MB. The output is always a transparent PNG.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://backgroundremover.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://backgroundremover.usefulweb.site/mcp· tool namebackground_remover
Example request
curl -s -X POST https://backgroundremover.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"file":{"filename":"product.png","contentType":"image/png","contentBase64":"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"},"mode":"auto","fuzz":10,"cleanup":1,"feather":0}'