Replace Colors in an Image screenshot

Replace Colors in an Image

Replace one color in an image with another in your browser. Set the tolerance as a percentage of RGB distance. No upload, no signup.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What this replace colors in an image does

Pixels within the tolerance of the source color become the target color. Tolerance is a percentage of the maximum possible RGB distance, so zero matches only the exact value and 100 matches everything. If no pixel is close enough the tool says so instead of handing back an unchanged image that looks like a failure to apply.

How to use it

Replace Colors in an Image: choose an image file from the file picker and press Run, after setting Color to replace (default "#ff0000"), Replacement color (default "#0000ff"), Tolerance (0-100), default 10, Output format (default "png") and Quality (JPEG and WebP), default 90 to get the result image below.

Why it runs in your browser

The work is done locally with JavaScript and the canvas. That means the tool keeps working offline after the page loads, and a private picture is never sent anywhere.

Pixels within the tolerance of the source color become the target color. Tolerance is a percentage of the maximum possible RGB distance, so zero matches only the exact value and 100 matches everything. If no pixel is close enough the tool says so instead of handing back an unchanged image that looks like a failure to apply.

Replace one color in an image with another in your browser. Set the tolerance as a percentage of RGB distance. No upload, no signup.

How to use it

Replace Colors in an Image: choose an image file from the file picker and press Run, after setting Color to replace (default "#ff0000"), Replacement color (default "#0000ff"), Tolerance (0-100), default 10, Output format (default "png") and Quality (JPEG and WebP), default 90 to get the result image below.

Why it runs in your browser

The work is done locally with JavaScript and the canvas. That means the tool keeps working offline after the page loads, and a private picture is never sent anywhere.

What to Expect

Best for

  • Converting image file to result image when the data is already on screen.

What this tool keeps

  • That means the tool keeps working offline after the page loads, and a private picture is never sent anywhere.

Frequently asked questions

How do I use the replace colors in an image?

Replace Colors in an Image: choose an image file from the file picker and press Run, after setting Color to replace (default "#ff0000"), Replacement color (default "#0000ff"), Tolerance (0-100), default 10, Output format (default "png") and Quality (JPEG and WebP), default 90 to get the result image below.

Is my input uploaded?

No. The file is read with the browser's File API and processed on this page; the bytes are never posted to a server.

Is there a size limit?

Yes: 25 MB per file. A larger file is refused with a message rather than freezing the tab.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.