Replace color

Replace a Color in an Image

Swap one color for another across an image — pick it in the picture, choose a replacement, and tune the tolerance.

Drop an image to pick colors

Drag & drop, paste, or pick a file

PNG · JPG · WebP — colors read on your device

Click to targetAdjustable tolerance100% free PNG · JPG · WebP

Replace a Color in an Image

Replacing a color swaps every matching pixel for a new one while leaving the rest of the image alone. It's the quick way to change a background fill, recolor a flat logo, switch a product variant, or clean up a stray color. You set the target by clicking the color directly in the image — the most accurate way to grab the exact shade — or by choosing it manually.

The tolerance slider controls how forgiving the match is. A low tolerance changes only pixels that are nearly identical to the target; a higher tolerance also catches close shades, which matters for photos and gradients where a single color spans many subtle values. The tool feathers the edge of the match so the swap blends in instead of leaving a hard ring.

The change previews live, so you can balance tolerance against accuracy by eye before exporting. Output is saved at full resolution as PNG, JPG, or WebP. For solid-fill graphics the result is clean; on detailed photographs, replacing a color is approximate by nature, so use a moderate tolerance and check the edges.

How to replace a color in an image

  1. Add your image — drag & drop, paste, or choose a file.
  2. Set the target — click the color in the image, or pick it manually.
  3. Choose the new color — and raise tolerance to include similar shades.
  4. Download — save the edited image as PNG, JPG, or WebP.

Tip: click the image to nail the target shade

Picking the target by clicking the actual pixel is far more reliable than guessing a hex code — a color that looks like one flat tone is often several near-identical shades, and clicking grabs the real one. Then nudge tolerance up until the whole region is covered.

More color tools

Frequently asked questions

How do I replace one color with another in an image?

Click the color you want to change in the image (or pick it manually), choose the replacement color, set a tolerance, and the matching pixels update live. Then download the result.

What does tolerance do?

It sets how close a pixel must be to the target to be replaced. Low tolerance changes only near-identical pixels; higher tolerance also catches similar shades.

Why are some edges not fully replaced?

On photos, a color spans many subtle shades and anti-aliased edges blend into neighbours. Raise the tolerance to catch more, and the feathered edge keeps the swap from looking harsh.

What formats can I export?

PNG, JPG, or WebP at the original resolution. PNG keeps transparency.

Where is my image processed?

It happens in your browser, so the result is created on your own device. How any data associated with the tool is handled is described in our privacy policy.

More image tools