Replace a color.
Keep the rest.
Match image colors and replace them privately in your browser.
Color matching · Local processing · PNG downloadChoose an image
JPEG, PNG, WebP, SVG, TIFF and other decodable images. Nothing is uploaded.
No image selected.
Original
Choose an image to begin.
Click or tap to sample. Focus the image and use arrow keys for individual pixels; Enter samples the current X and Y. Coordinates start at 0 in the top-left. Checkerboard is display only.
Result
Your replaced colors will appear here.
How to replace a color
- Choose an image, then enter a source color or sample a pixel from the original.
- Choose a target color, adjust tolerance and select solid color or RGB shading.
- Replace color, compare both previews and download the resulting PNG.
Files stay on your device.
Your image is decoded and processed in your browser. This tool does not upload, log or store your image. Cancel & clear stops processing and releases the image and download. Leaving the page also releases them.
Good to know
This matches colors across the entire image. It does not select objects: a similar color in the background will also change. Unmatched decoded pixels keep their values; alpha is unchanged, and fully transparent pixels are skipped.
The result is a static, re-encoded 8-bit sRGB PNG at the oriented image dimensions. Animation, additional pages, original metadata and HDR information are not retained. Color conversion and canvas alpha rounding can change stored source RGB values, including partly transparent pixels.
Frequently asked questions
What does tolerance measure?
For each visible pixel, the tool measures Euclidean distance between its red, green and blue channels and the source color, divided by the maximum RGB distance (√3 × 255). A pixel matches when its distance is at most the tolerance. At 0%, only exact decoded RGB matches change; at 100%, all visible pixels match. Alpha is not part of the distance. There is no object recognition, perceptual color matching or softened selection edge.
How does the shading mode work?
Solid mode sets every matching pixel to the target RGB. Keep RGB shading adds the target-minus-source difference to each matched channel, retaining channel offsets where possible. Channels are clipped to 0–255, so extreme replacements can lose detail or alter hue. This is a simple color shift, not a promise of photorealistic recoloring.
Why does the result say no pixels changed?
Your source may not match any visible pixels at the chosen tolerance, or the selected settings may leave matched pixels unchanged. Sample a visible source pixel and adjust tolerance. Matched counts and changed counts are separate. A no-change download is still re-encoded and can differ from the input file in bytes and metadata.
Which formats and image sizes work?
The tool supports TIFF, AVIF, SVG and images your browser can open. Supported files depend on your browser and the actual image data, not the filename extension. Animated images and multipage TIFFs use one decoded frame or page. SVG becomes a raster image; external resources and active content are not loaded, and missing fonts or resources can affect appearance. Large images depend on available browser memory and canvas support. A damaged, unsupported or unprocessable image produces an error.
Can I make another replacement?
Changing settings clears the previous result. Every run starts from the original oriented decoded image, so you can compare settings without accumulating edits. Reset settings restores defaults while keeping that image. To build on an existing result, download its PNG and choose it as the new input.
Related image tools: Color picker · Crop image · Resize image