Skip to content
TabShedKitsMy desk

AI or Color-Based Background Removal: Which Method to Choose

Updated 5 min readBy

Decide between the AI and color-based methods in the Background Remover, fix rough edges, and pick a new background for the finished PNG.

Background RemoverRemove the background from a photo
Open Background Remover
On this page
  1. The two methods
  2. Decision guide
  3. Step by step with the AI method
  4. Step by step with the color method
  5. Fixing rough edges
  6. Getting a better source photo
  7. What to do with the PNG
  8. Limits to know
  9. A worked example: a product on a kitchen table
  10. FAQ

You cut out a product photo, the edges look chewed, and part of the shirt vanished along with the wall behind it. Background removal fails in a few predictable ways, and most of them come down to using the wrong method for the picture. The Background Remover offers two methods. This guide explains when each one works, how to fix the usual problems, and what to do with the transparent PNG afterwards.

The two methods

The Method menu has two choices:

  • AI finds the main subject of any kind, whether a person, a product or an animal. It is the default.
  • Color-based removes pixels that are close to the background color. It is instant and needs no model, but it only suits plain backgrounds.

The AI model is a small open-source network that runs inside your browser. The first time you use it, the page downloads the runtime and model once (about 17 MB in all according to the code), and then it works offline. The tool looks for the subject on a smaller copy of the photo and then snaps the result to the real edges of the full-size picture, which is why the outline stays reasonably sharp. Nothing is uploaded.

Decision guide

Your photoMethodWhy
Person, pet or product on a normal room or outdoor backgroundAIThe background has many colors, so a color rule cannot describe it
Logo or object on a flat white or single-color sheetColor-basedOne color to remove; fast and precise
Subject has the same color as the backgroundEither, then expect touch-upsNeither method can separate identical colors
Glass, smoke, wedding veilAI, with low expectationsPartly transparent things have no single edge

Step by step with the AI method

  1. Drop, choose or paste (Ctrl+V) an image. JPG, PNG, WebP, GIF and BMP are accepted, up to 50 MB.
  2. The removal starts by itself. A progress bar shows the one-time model download, and later runs take a few seconds.
  3. Drag the comparison slider between the original and the result and look closely at hair, fingers, corners and thin parts.
  4. Choose a Background: Transparent, Color (pick one of the swatches or your own) or Image (upload a picture).
  5. Press Download PNG. The output is always PNG so that transparency survives.

Changing the edge smoothing or the background does not run the AI again, so you can try several backgrounds quickly.

Step by step with the color method

  1. Switch Method to Color-based.
  2. Leave Auto-detect background color on if the background is the color around the edges. Turn it off to choose the color yourself.
  3. Move Tolerance (1 to 100). Too low leaves a halo of background; too high eats into the subject. Raise it a little at a time while watching the slider preview.
  4. If the subject has the same color inside as the background (a white mug on white paper), turn on Only the outer background so that only the area connected to the edge is removed.

Fixing rough edges

  • Jagged or hard edges: make sure Edge smoothing is on. It snaps the cut-out to the real edge and feathers it slightly.
  • A colored fringe around the subject on a new background: this is leftover color from the old background. Try the new background color closer to the old one, or choose a darker or lighter background and compare.
  • A missing piece of the subject: it probably has the same color and tone as the wall behind it. Retake the photo with more contrast between subject and background if you can.
  • The AI found nothing: the tool then tells you it removed the background color instead. Switch to the color method or raise Tolerance.

Getting a better source photo

You do not need a studio. Even light on the subject, sharp focus and some difference between subject and background do more than any setting. Photograph a dark object against a light wall instead of the same tone. Keep the subject away from the walls so shadows do not merge with it. Use a high-resolution picture; the model does its analysis on a reduced copy, so very small sources lose detail in thin parts.

What to do with the PNG

A transparent PNG can go on a slide, a listing or a design. It is often large, so shrink it with the Image Compressor before you upload it. If the cut-out has empty margins, the Trim Image tool removes the transparent border. To put the subject on a precise canvas such as a square product tile, use the Image Crop tool afterwards.

Limits to know

  • Hair, fur and glass are the hardest cases. Treat the result as a strong first pass.
  • The output is a PNG, not a layered file, so you cannot keep editing the mask.
  • Several equally important subjects can confuse the AI; remove one subject at a time if possible.

A worked example: a product on a kitchen table

Say you photographed a ceramic mug on a wooden table for an online listing. The table has grain and shadows, so the color method has nothing consistent to remove, and the AI method is the right start. After the cut-out, the comparison slider shows a good outline except around the handle, where a sliver of table is left. Turning Edge smoothing off and on again changes little, so you accept the cut-out and place it on a Color background in a light neutral tone. The faint shadow under the mug is gone, which makes the product look as if it floats, so you add a soft shadow later in whichever editor you use for the listing. This is typical: the tool gives you a clean subject, and the finishing touches belong to your layout.

FAQ

Is my photo uploaded?

No. The model runs in your browser. The only download is the model itself, the first time.

Why is the first run slow?

The runtime and model are fetched once. Later runs reuse them and take a few seconds.

Can I replace the background with a picture?

Yes. Choose Background then Image and select a file.

Which format should I use for a profile picture?

Download the PNG, then crop it to a square with the Image Crop tool. Choose a solid background color if the platform does not support transparency.