removebgpictureStart
Two white camellias on a pale grey studio backdrop, before the background is removedBeforeAfter · PNG

Fix the edges of a cutout

Clean up a messy cutout.

Got a PNG with a white halo or rough edges? Drop it in and tidy the outline.

or drop it here · paste with CtrlV

FreeFull sizeNo sign-up

Your browser does the cutting. There's no server on the other end.

No photo handy?

What this page does, in detail

Open a transparent PNG or WebP made somewhere else and repair its edge: a white or dark halo rebuilt from colour, the boundary pulled in, the ramp made crisper or softer — with a restore brush for anywhere the fix went too far.

The first cutout fits colour models to your own picture, with nothing downloaded, so it is at its best when subject and ground differ in colour or brightness. Fine hair against a busy background, glass, netting and motion blur come back rough — the brushes are the honest fix.

If the subject is a person, the Cut panel offers a network trained on people instead — 5.9 MB the first time you ask for it, kept in this browser afterwards, about 90 ms a picture (estimate, not yet timed on a named device for this site).

Open a PNG or WebP that already has a transparent background. An opaque file is cut with the guided selection instead.

What a halo is, and how it is taken out

A cutout made against a white page often keeps a one- or two-pixel ring of that page. Those pixels are part subject and part white, but the file marks them as more opaque than they are. Pulling the boundary in (halo shrink) hides the ring by removing it; rebuilding from colour repairs it, because the amount of white in each pixel says how much of it was really subject. The two are on the Edge panel and can be used together.

The alpha view opens first on this page, because that is where a halo is easiest to see: white is kept, black is gone, grey is part-way. The X-ray lens (L) magnifies it under the pointer.

  • A halo of a busy background. If the cutout was made on a photo rather than a flat colour, there is no single colour to take out. Halo shrink and the take-away brush still work.
  • Detail lost before. Strands of hair the first tool cut off are not in the file, and nothing here can bring them back.

Questions

Why does my cutout have a white outline on dark backgrounds?

It was made on a white background and its edge pixels kept part of that white, with too much opacity. 'Matte against: white' works out how much of each edge pixel is subject from how much white is in it, sets the transparency to match, and takes the white back out.

The halo is dark, not white.

Choose Black under 'Matte against' on the Edge panel. The page guesses white or black from the edge itself when the file opens, and says which it chose.

The fix ate into fine detail.

Lower the halo shrink, or paint the detail back with the Restore brush on the Refine panel: it paints the opened file's own transparency back under the brush and nowhere else.

What does the edge-tint number mean?

On the Save panel it is the average colour distance between part-way edge pixels and the solid subject next to them, measured in the saved file. A halo reads high; a clean edge reads low.

My file has no transparency.

Then there is nothing to repair, and the page says so and cuts it with the guided selection instead.

Related