Remove image colour
Make pixels close to a target colour (the top-left pixel by default) transparent using an RGB distance threshold, so flat backgrounds disappear in one click, then export PNG or JPEG.
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.
Blank or "transparent" auto-picks the top-left pixel as the background colour.
Euclidean RGB distance from 0 to 442; a larger threshold removes more similar shades. Around 30 suits flat backgrounds.
Pick an image first (PNG / JPEG / WebP / GIF all work).
Result details
Pick an image and the chosen colour is removed immediately (the top-left pixel by default); the preview and counts update live.
What this tool does
- Cut out a flat background: turn the white backdrop of product shots, logos and screenshots transparent and drop the PNG onto any surface.
- Green screen basics: set the target colour to #00ff00 with a threshold of 60–120 to remove a simple chroma key.
- Clean up scans: yellowed paper sits a fixed distance from pure white, so a threshold of 20–40 makes the paper transparent while keeping the text.
- Different from the colour replace tool: this one deletes matched pixels (transparent), that one repaints them with another colour.
Example
Input
A 3×1 image of [255,255,255], [250,250,250] and [255,0,0] with the target left blank and threshold 30
Output
The first two pixels become alpha 0 while red stays [255, 0, 0, 255]
From the pure removeColor logic: the target defaults to the top-left pixel (255,255,255) and the near-white pixel is only ~8.66 away, so it is removed too. With threshold 0 only the exact match disappears.
Frequently asked questions
What does leaving the target blank do?
It auto-picks the top-left pixel as the colour to remove, which is the fastest route for white or single-colour backgrounds. You can also type an explicit colour such as #ff00ff.
Which threshold should I use?
20–40 is enough for flat colours, 40–80 handles JPEG noise, and chroma-key footage may need 60–120. The higher the threshold the more likely it is to eat into the subject, so watch the preview while adjusting.
What is "also zero the RGB" for?
Ticking it writes RGB 0 into matched pixels, which compresses better in PNG because more regions become identical. Leaving it unticked only changes alpha and keeps the colour data for later processing.
Will the edges be clean?
Expect some semi-transparent fringe because the test is per pixel. For cleaner edges remove the main colour with a smaller threshold first, then use the auto trim tool to clear the leftover transparent border.
Are my images uploaded?
No. Pixels are read through the canvas and processed entirely in the browser; there is no upload endpoint on the page.
Keywords:remove colortransparent background