Replace image color
Replace one color in an image while keeping transparency. Adjust tolerance and download the edited PNG and selection mask.
Accepted files: .png,.jpg,.jpeg,.webp. Choose one file. Up to 20 MiB in total.
Runs locally without uploads. One still PNG, JPEG or WebP up to 20 MiB and 16 million decoded pixels, with at most 16,384 pixels per side. Replaces pixels within a hard RGB distance of the selected source color. Zero tolerance matches the exact color; 100 matches all colors. Decoded alpha bytes stay unchanged. The browser may discard hidden RGB values in transparent pixels and convert the source color profile. Download the complete PNG, black-and-white selection mask and settings report. Original metadata is not retained. Outputs are limited to 100 MiB in total; processing stops after 30 seconds. Up to 1,000,000 characters. Review the settings before running.
Your result
How to use Replace image color
- Choose a still PNG, JPEG or WebP image.
- Select the source color, replacement color and tolerance.
- Run the tool, compare the original and result, and download the PNG, selection mask or report.
Useful next steps
See exactly what changed
The selection mask is white where a pixel matched and black everywhere else. Tolerance uses RGB distance. It is a hard threshold, not a feathered selection.
Keep transparency
The replacement preserves the decoded alpha channel. Fully transparent pixels are skipped unless you include them. Browser decoding can change hidden RGB values and color profiles; original metadata is not copied.