About Replace a Color in an Image
Pick the color to change and the color you want instead, and every pixel close enough to it is swapped across the whole picture: a red car turned blue, a logo recolored to a new brand color, a green wall made grey.
"Keep shading" moves each matched pixel by the same step, so highlights and shadows stay where they were. "Hue only" turns the hue and leaves saturation and brightness alone, which suits photos of fabric and painted surfaces. "Solid color" paints a flat color, for icons and flat graphics. Tolerance decides how different a pixel may be and still count; the soft edge blends the pixels just past it.
How it works
- The image is decoded in your browser, turned upright from its camera orientation, and handed to a background worker so the page stays responsive.
- Each pixel is compared with the color to replace: by its distance in red, green and blue, or, in Hue only, by the angle between hues. Greys have no hue, so Hue only never touches them.
- Within the tolerance a pixel is replaced in full; across the soft edge it is blended, less and less, with its original color. Transparency is never changed.
- The result is saved in the same format as the original where your browser can write it, and as PNG otherwise.
Questions
How do I find the exact code of the color in my picture?
Read it with any image editor or viewer that shows the color under the pointer, and type it into "Color to replace" as #rrggbb. It need not be exact: raise the tolerance until the whole area is caught.
Why did nothing change?
No pixel was within the tolerance of the color you chose, and the tool says so instead of giving back the same picture. Raise the tolerance, or pick the color more precisely.
Which mode should I use?
Keep shading for most photos. Hue only when the object has strong highlights or deep shadows, since it keeps each pixel's own brightness. Solid color for logos, icons and flat artwork where shading does not matter.
Can I change only one area of the image?
No: every matching pixel in the picture changes. If the same color appears elsewhere, lower the tolerance or crop the image first.
Is my image uploaded?
No. The image is decoded, recolored and encoded in this browser tab, and nothing is sent over the network.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.