Image Colour Replacement

Replace pixels near a chosen colour with a new RGB colour, keeping their original transparency.

Files stay on your device No sign-up Free to use
How this works

The tool runs in this browser. Your file or text is not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

Privacy details

Replace colour controls

Drop your image here

or choose one from your device

One file · Image files only

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

    How to use Image Colour Replacement

    1. Choose one JPEG, PNG or WebP image.
    2. Enter the colour to replace and the new colour as six-digit hex values.
    3. Set tolerance to zero for exact RGB matches or increase it for nearby shades.
    4. Select Replace colour and download the PNG.

    Example: Image Colour Replacement

    A local worked example using the inputs and settings below for image colour replacement.

    You add
    Image: ["sample.png (348 bytes)"] Colour to replace (#RRGGBB): "#ff0000" New colour (#RRGGBB): "#0000ff" Colour distance tolerance (0–100): "10"
    You get
    Changed 0 pixels out of 4,800. recoloured-image.png (80 × 60 pixels)

    Options

    Source and replacement
    Choose the two colors explicitly. The operation replaces qualifying decoded pixels rather than recognizing an object.
    Tolerance
    Tolerance controls color distance from the source RGB value. A larger value can include neighboring colors and unintended regions.

    Supported inputs and limits

    One JPEG, PNG or WebP file, up to 12 MiB and 20 megapixels. Colours use six-digit #RRGGBB values. Tolerance 0–100 measures straight-line RGB distance; it does not understand objects or perceived colour. A high tolerance may affect unrelated areas with similar colours. Pixels with zero alpha are left alone; other pixels keep their alpha. The output is newly encoded PNG without source metadata.

    Where your input is processed

    This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

    What the tolerance means

    The page compares the red, green and blue values of each pixel with your chosen source colour. 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 Colour Replacement

    Why do some edges keep their old colour?

    Soft edges often contain blended shades rather than an exact match. Raise tolerance gradually, then check whether other similar colours also changed.

    Will it change only one object?

    No. Every pixel whose RGB colour falls within the tolerance can change, wherever it appears in the image.

    Does replacement alter transparency?

    No. A changed pixel keeps its original alpha value. Fully transparent pixels are skipped.

    Project manager: Tony Hines · Content updated 4 October 2026 · Report a problem