How to use Image Color Replacement
- Choose one JPEG, PNG or WebP image.
- Enter Color to replace and New color, or pick the source color from the reduced preview. A reduced sample may differ from the original pixels.
- Use tolerance 0 for exact RGB matches or raise it gradually for nearby shades. Matching applies across the whole image, including unrelated regions with similar colors.
- Choose the output format and select Replace color. Inspect soft edges and the full download; JPEG fills transparency white.
Example: Image Color Replacement
Replace every red pixel in a solid-color image with blue.
Options
- Source and replacement
- Choose the two colors explicitly. The operation replaces qualifying decoded pixels rather than recognizing an object.
- Tolerance
- The tool uses straight-line RGB distance, scaled to a 0–100 control. At 0 all three channels must match; higher values include more nearby colors. It does not measure perceptual color difference or identify an object.
- Source color
- Pick from the reduced original preview, or enter a color. The tolerance can also include unrelated colors nearby in RGB space.
Supported inputs and limits
- One JPEG, PNG or WebP, up to 64 MiB and 20 megapixels.
- Matching uses RGB distance and preserves the alpha of changed pixels; transparent pixels are skipped.
- Reduced eyedropper samples can differ from source pixels.
- Use arrow keys and Enter or click the preview, then adjust tolerance.
- Automatic output keeps the source format;
More details
JPEG fills remaining transparency white and uses quality 0.9.
Source metadata is not copied.
This does not isolate an object or understand lighting.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
What the tolerance means
The page compares the red, green and blue values of each pixel with your chosen source color. At zero, all three channels must match exactly. As tolerance grows, more nearby RGB combinations qualify; that is useful for softened edges but may also reach unintended areas.
Questions about Image Color Replacement
Why do some edges keep their old color?
Soft edges often contain blended shades rather than an exact match. Raise tolerance gradually, then check whether other similar colors also changed.
Will it change only one object?
No. Every pixel whose RGB color falls within the tolerance can change, wherever it appears in the image.
Does replacement alter transparency?
Replacement keeps the alpha of changed pixels and skips fully transparent pixels. PNG and WebP can retain that alpha; JPEG output fills transparency with white.