Replace a Color in an Image
Sample a source color, choose its replacement, adjust tolerance, and export a local PNG copy.
How to replace a color in an image
- Load one browser-readable JPG, PNG, or WebP image.
- Click the preview to sample the color you want to change, or use the source-color swatch.
- Choose a replacement color and adjust tolerance to include nearby shades.
- Keep Preserve shading enabled for simple colored objects with highlights and shadows.
- Download a PNG and inspect edges, transparency, text, and fine detail.
What the tolerance controls
A low tolerance changes pixels close to the sampled RGB value. A higher tolerance includes a wider color range and can affect unrelated parts of the image. Start low and increase gradually. Anti-aliased edges, lighting, compression artifacts, reflections, and gradients contain many neighboring colors rather than one exact value.
Practical limits
This is a pixel color replacement tool, not semantic AI editing. It cannot identify an object, understand material, relight a scene, restore hidden detail, or guarantee clean separation when the same color appears in multiple objects. PNG export can remove source metadata and may be larger than the original JPG or WebP.
Related image tasks
Use the Image Color Picker for measurement, the Color Inverter for a negative, the Background Remover for flat backgrounds, or the Image Compressor after reviewing the exported PNG.