Image Color Replacement

Pick a source color, replace matching pixels and keep the source format or choose PNG, JPEG or WebP.

On-device No sign-up Free to use

Replace colour controls

  1. 1 Add files
  2. 2 Arrange/Options
  3. 3 Download

Drop your image here

or choose one from your device

One file · Image files only

    ?

    Zero changes exact matches. Higher values also change similar colors.

    Result

    Showing an example.

    Replace every red pixel in a solid-color image with blue.

    Changed 4,800 pixels out of 4,800.
    recolored-image.png (80 × 60 pixels) has opaque blue pixels.

    Loading the tool. Your result will appear here.

    https://usefreetools.net/image-colour-replacement · 20 November 2026

    Was this helpful?

    How to use Image Color Replacement

    1. Choose one JPEG, PNG or WebP image.
    2. 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.
    3. 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.
    4. 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.

    You add
    Image: One opaque, solid-red 80 by 60 PNG Color to replace: "#ff0000" New color: "#0000ff" Color distance tolerance (0–100): "0" Output format: "auto"
    You get
    Changed 4,800 pixels out of 4,800. recolored-image.png (80 × 60 pixels) has opaque blue pixels.

    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.

    Page updated · Project managed by Tony Hines · Report a problem with Image Color Replacement