Image Tools
Image Color Replacer
Swap one color for another in a PNG, JPG, or WebP in your browser. Click to pick a source color, set a tolerance, replace with a target color or transparency.
Image color replacer
Source and target colors
Pick the color you want to find in the image, then the color you want it replaced with.
Source color (color to find)
rgb(255, 255, 255)
Target color (color to use as replacement)
rgb(59, 130, 246)
Matching
Tolerance controls how close a pixel has to be to the source color to count as a match. 0 means only the exact color; higher values catch nearby shades, anti-aliased edges, and JPEG compression noise.
Replace mode
Pick what to do with matched pixels: paint them with the target color, or make them fully transparent (the classic background-removal use case).
Output
Choose the export format and quality.
Load an image and enter valid source and target colors to begin.
How to use
- Drop an image onto the upload area or click to pick a PNG, JPG, WebP, BMP, or GIF (up to 25 MB).
- Click any pixel inside the input preview to set the Source color, or type a hex value directly. Then set the Target color the same way.
- Adjust the Tolerance slider. 0 only matches the exact source color; values around 10 to 25 catch anti-aliased edges; higher values pull in a whole color family. Leave Feather edges on for clean outlines.
- Pick a Replace mode: Replace with target color recolors matched pixels; Make transparent removes them. Use PNG or WebP output to preserve transparency.
- Choose the output format and quality, then click Replace color. Inspect the result and click Download result to save. Tweak any setting and click Re-render with current settings to try again. Your image is not uploaded.
About this tool
Image Color Replacer swaps one color for another inside a raster image. Drop a PNG, JPG, WebP, BMP, or GIF and either type a hex value for the source color or click directly on the preview to sample the pixel you want to target. Pick a target color the same way. A perceptually weighted RGB distance (BT.601 luma weights) decides which nearby shades count as the same color, controlled by a 0 to 100 tolerance slider: 0 only matches the exact source value, small values catch anti-aliased edges and JPEG compression noise, large values pull in a whole color family. Two replace modes cover the two big jobs people search for. Replace with target color paints every matched pixel with the chosen color and is the right tool for recoloring a logo, swapping a brand accent across a screenshot, tinting an illustration, changing a flat background color, or fixing a single color shift in a render. Make transparent sets the alpha of every matched pixel to zero, which is the classic browser background-removal use case for clean flat backgrounds like a white studio shot, a single-color screen-capture canvas, or a printed sheet scanned at uniform exposure. A Feather edges option blends partial matches at the tolerance boundary so anti-aliased outlines stay smooth instead of turning into jagged steps. A Preserve existing alpha toggle decides whether replaced pixels keep their original transparency or are forced to fully opaque. The output canvas paints a soft checkerboard underneath so transparent areas are easy to see in the preview. Export to PNG (lossless and supports transparency), WebP (modern lossy with transparency), JPEG (smaller files but flattens transparency), or Keep original to match the input format. Everything happens locally on a canvas; the image you drop is loaded into a local object URL, getImageData reads the pixel buffer in your tab, the replacement loop runs in pure JavaScript, and the encoded blob is delivered to your browser. Nothing is uploaded.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
Image Color Picker
Pick exact HEX, RGB, and HSL colors from any image with a magnified loupe.
Open tool
ImageImage Color Palette Extractor
Pull a dominant color palette out of any image with HEX, RGB, HSL, and code exports.
Open tool
ImageImage Filters
Adjustable grayscale, sepia, blur, brightness, contrast, saturation, hue, and invert filters with one-click presets.
Open tool
ImageImage Transparent Trimmer
Auto crop the transparent border around a PNG, WebP, or GIF with optional padding.
Open tool
ImageImage Format Converter
Convert PNG, JPG, and WebP locally with quality and transparency controls.
Open tool
ConverterColor Format Converter
Convert any CSS color to HEX, RGB, HSL, HWB, CMYK, and named values at once.
Open tool