utills.
Italiano
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.

Trascina un'immagine per scegliere i colori

Trascina, incolla o scegli un file

PNG · JPG · WebP — colori elaborati sul tuo dispositivo

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

Domande frequenti

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.

Altri strumenti per immagini

Find your next tool

37 tools

Compress image Shrink file size while keeping quality. Resize image Change width and height to any size. Crop image Trim images to the exact frame you want. Convert image Switch between JPG, PNG, WebP and more. Remove background Erase the background in one click. Image to PDF Combine images into one PDF document. Rotate & Flip Turn, straighten, and mirror photos. Image to text Pull editable text out of any image. HEIC to JPG Open iPhone HEIC photos as JPG. Watermark Stamp text or logos over your images. Collage Arrange multiple photos into a grid. Favicon Generator Build favicons in every required size. Color Picker Grab hex colors and build palettes. Blur & Pixelate Obscure faces, plates, and private bits. Enhance Auto-fix brightness, contrast, and color. Passport Photo Prepare photos for ID and passport applications. Signature Clean up and extract handwritten signatures. Photo Effects Apply filters and vintage looks. Social Image Size covers for common social platforms. Add text to image Caption images and make memes fast. GIF Maker Turn frames or clips into animated GIFs. Border & Frame Add clean borders and photo frames. Mockup Drop screenshots into device frames. SVG Converter Trace raster images into scalable SVG. EXIF Viewer Inspect camera and GPS metadata. Poster & Print Lay out posters and print-ready sheets. Document Scanner Deskew and clean photographed documents. Image to Base64 Encode images into a data-URI string. Placeholder Make dummy placeholder images on demand. Image generator Make gradients, patterns, and avatars. Compare Images See two images side by side with a slider. QR Code Create and download QR codes. Hide Text in Image Embed a secret message inside a picture. Length converter Meters, feet, inches, miles and more. Weight converter Switch between kilograms, pounds and more. Temperature converter Celsius, Fahrenheit, Kelvin and more. Data storage converter Bits, bytes, megabytes and gigabytes.
Tab to move · Enter to open · Esc to close