Skip to content
UniKit

Remove solid background

Make a near-solid background transparent: tune the colour-distance tolerance and edges keep partial alpha to avoid jaggies — built for white backdrops and green screens.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Images are processed locally in your browser with Canvas and never uploaded.

Pick an image first (PNG / JPEG / WebP / GIF all work).

Result

No result yet

32

Result details

These are the real numbers from this run — copy them straight out.

Pick an image and set the options; sizes, pixel count and export size show up here.

What this tool does

  • Turn a white-background product shot into a transparent PNG you can drop onto any page background.
  • Key out a green screen: set the colour to the screen colour and raise the tolerance until the spill is gone.
  • Remove an icon's white background: keep the tolerance at 0 to strip only pure white and protect white highlights inside the icon.

Example

Input

A 2×2 image (three pure white pixels and one pure red), colour #ffffff, tolerance 0

Output

The three white pixels get alpha 0, red stays at 255, and the RGB channels are untouched

Straight from removeColor: alpha = original alpha × (distance / tolerance), so colours inside the tolerance fade out gradually; matched and fully transparent counts coincide here.

Frequently asked questions

What tolerance should I use?

For a solid backdrop (white, green screen) start at 20–40. JPEG compression spreads the background colour, so you may need 60–80, but higher values start eating into the subject edge.

Why are the edges semi-transparent?

By design: alpha falls off linearly with distance / tolerance, so closer pixels are more transparent. A hard cut would leave jaggies on diagonals, whereas the gradient blends into any background.

There is still a white fringe — what now?

Raise the tolerance a little, or clean the edge with the mosaic tool first. The fringe is the source image's own anti-aliased edge, so only a larger tolerance can cover it.

Does it modify my original file?

No. The output is a fresh pixel buffer, the source is never mutated, and there is no upload endpoint.

Keywords:remove solid backgroundcolour to transparentwhite background removalgreen screenmatting

Related tools