Replace color in image
Change one color in an image to another, free and in your browser with no upload. Click the color to replace, choose its new color and set how close a match must be; up to eight swaps run at once.
Pick a color, pick its replacement, set how close a match counts. Recolor a logo without opening an editor.
In detail
Replace color swaps one color in an image for another: click the color you want gone, choose what takes its place, and set how close a match has to be to count. Softness fades the change across the edge of the match, which anti-aliased edges need.
Up to eight replacements run together in a single pass, each measured against the pixel as it arrived rather than against what an earlier pair wrote, so red-to-blue followed by blue-to-green cannot quietly turn the reds green. Preserve lightness keeps every pixel's own brightness and takes only the hue and saturation of the new color, so shading survives the swap.
Replace color in image at a glance
- Input
- JPG, PNG, WebP, AVIF, HEIC, GIF (first frame), BMP, TIFF, SVG and other image formats
- Output
- An image in the format you choose
- What it does
- Click to pick a color from the image
- Up to eight color swaps at once
- Tolerance and edge softness
- A preserve-lightness option
- Full-resolution export
- Who it is for
- Designers recoloring logos, icons and product shots, and anyone changing one color in a picture.
- Limits
- One image at a time.
- Gradients and shading usually need a higher tolerance or several pairs.
- Privacy
- Runs entirely in your browser: the file is never uploaded, and nothing is kept after you close the tab.
How to replace a color in an image
- Drop in one image This tool works on one image at a time. Drop several and the first is kept, with a note saying so.
- Click the color you want to replace Move the pointer over the image to read the color under it, then click to pick that color into the selected replacement. You can also type a hex value into the swatch.
- Set the replacement, tolerance and softness Tolerance is how far a pixel may sit from the picked color and still count, from 0 — that exact color only — to 100. Softness fades the change out across the edge of the match instead of stopping dead at it, which anti-aliased edges need.
- Add more replacements if you need them Up to eight pairs at once. Where two pairs match the same pixel the closer match wins, and the tool names the pairs that overlap.
- Export the recolored image Choose a format, then press Export. The replacement is rerun over the full-resolution pixels before the file is written, whatever size the preview was drawn at.
Replace color in image: common questions
How does it decide whether a pixel matches?
By straight RGB distance from the color you picked, with tolerance read as a percentage of the longest diagonal of the RGB cube. That means two colors reading as the same hue but differing in brightness will not always match together, so a shaded or gradient-filled logo usually needs a higher tolerance, several pairs, or preserve lightness turned on.
Can I replace a color across a batch of images?
No. Replace color takes one image at a time — drop a batch and only the first is kept. Picking a color, judging the tolerance and reading the match percentage all depend on you looking at that one image.
Is the matched percentage exact?
No. It is measured on the preview, which is drawn at up to 1400 pixels on its long edge, so it is close rather than exact. It is there to tell you whether the tolerance is roughly right; the export itself always runs over the image's full-resolution pixels.