Skip to content
Private by design — every tool runs on your device · No upload · No watermark · No account
P pixelshift.
November 30, 2026 · background removal· alpha· PNG

Clean alpha edges after removing an image background

A background removal is only as good as its edges. Learn how the local Fast and Quality models differ, how to inspect alpha at high zoom, and how to export a PNG that stays clean on any background.

The moment a background disappears is satisfying, and it is also the moment most quality problems begin. A cutout that looks fine on a white checkerboard can develop a grey fringe on a dark slide, a faint halo around hair, or a ragged edge that only shows up when the image is scaled down. Alpha transparency is data, not magic, and it rewards a little inspection.

Background removal tool showing the original image and transparent result
Check the cutout against several backgrounds before you treat the transparent version as final.

What the local model gives you

Background removal here runs on a local ONNX model, so the image never leaves the browser. There are two versions. Fast is roughly 40MB and is tuned for speed on clean subjects with obvious separation. Quality is roughly 80MB and spends more computation on difficult boundaries such as hair, fur, glass and soft shadows. Both are fetched the first time you use them and cached locally afterwards, so repeat jobs are quick.

That first download is worth planning for. If you are on a metered connection, choose the model once and stick with it for the session. If you are preparing a single hero image where the edge will be enlarged, the extra weight of Quality is usually justified. For a batch of product thumbnails on plain backgrounds, Fast is often indistinguishable at final size.

Look at the edge at two zoom levels

Inspect the cutout at 100% first. This is roughly how most viewers will see it, and it reveals obvious problems: missing fingers, chunks of chair leg, or a subject that has been partially erased. Then zoom to 300% or 400% and look only at the boundary. This is where halos live.

A pale fringe typically means the model kept some of the original background in the semi-transparent pixels. A dark outline usually means the opposite: edge pixels were made too transparent and are compositing against whatever sits behind them. Neither problem is fixed by running the same model again with the same settings.

Decide how much semi-transparency to keep

Alpha is a gradient from fully transparent to fully opaque. Real edges — hair, feathers, motion blur, soft shadows — need that gradient. Rigid objects such as packaging or a phone usually do not. If you force a hard threshold on everything, hair turns into a jagged silhouette; if you keep every faint alpha value, a soft grey ghost can surround a solid object.

A practical rule: use Quality for anything with fine strands or soft boundaries, and keep its gradient. For hard-edged objects, crop away stray background before removal so the model has less ambiguous material to interpret. Cropping first is one of the most reliable improvements available, and it pairs naturally with the crop image tool when the subject is off-centre in the original frame.

Fix halos by changing the input, not by fighting the output

When a fringe appears, go back to the source. The most common causes are low contrast between subject and background, a background colour that matches the subject, and shadows that have been baked into the image. A tighter crop removes competing material. A brighter, flatter source gives the model a clearer boundary to follow.

If the subject is on a coloured wall, try a different original frame where the lighting is more even. If the shot is already the only one you have, accept a slightly soft edge and make it work in the layout rather than chasing an impossible crispness.

Keep an alpha-safe master file

Export the transparent result as PNG. PNG stores a true alpha channel without forcing the image through a lossy codec, so the edge data you inspected survives. This master file is the one you return to for every downstream change.

From that master, export the formats you actually need. WebP can carry alpha and is usually much smaller for web use. JPG cannot carry transparency at all; converting a cutout to JPG means choosing a flat background colour and baking it in. That is not a mistake if you want a white product tile, but it should be a conscious decision. The convert format tool makes those trade-offs explicit when you need both a transparent master and a compact delivery copy.

Composite against more than one background before shipping

A transparent image has no appearance of its own until it is placed on something. Test it on white, on black, and on the actual background colour of the page or slide. An edge that is invisible on white will often announce itself on dark navy. A barely visible shadow that helps a product sit on a light surface will turn into a grey smudge on a saturated one.

This check takes seconds and catches more real-world complaints than any amount of zooming. If the cutout only works on one background, the honest fix is to prepare a version with that background baked in instead of pretending the transparent file is universal.

Common mistakes worth avoiding

Running the model twice on its own output rarely helps. Each pass makes decisions based on already-decided alpha values, so artefacts tend to compound. Keep the original and make one careful pass with the right model.

Do not resize the transparent image after conversion to a lossy format if you can avoid it. Scaling interpolated edge pixels once more softens them. Resize while you still hold the PNG master, then convert. The compress image tool is useful at the last stage, when the dimensions and the background decision are already settled.

Finally, do not judge the cutout inside a tiny preview thumbnail. Zoom, test, and then step back to judge the result at final size. Both views matter, and they reveal different problems.

A practical checklist

  1. Crop close to the subject before removal.
  2. Choose Fast for simple subjects, Quality for hair, fur and glass.
  3. Inspect the edge at 100% and at 400%.
  4. Keep the alpha gradient where the edge is naturally soft.
  5. Save a PNG master, then derive WebP or JPG copies.
  6. Test on white, black and the real destination background.

Good background removal is mostly about respecting the edge. The model gives you a starting point; the checks above turn it into an asset you can reuse.