Browser-based image color replacer

Replace Color in Image with pixel-level control

Use Replace Color in Image to click a source color, choose a new color, preview every affected pixel, and apply the change only where you intend. It is built for pixel art, icons, PNG assets, and simple illustrations—not automatic object recognition.

Exact match, adjustable tolerance, three replacement scopes, protection brush, undo, and local PNG export.

Replace Color in Image online

Upload an image, click the original color, set the target color, then inspect the pink affected-pixel mask before applying. The cyan protection mask marks pixels that must remain unchanged.

Color matching
Replacement scope
Canvas action

Affected-pixel preview

Affected pixels
0
Visible coverage
0%
Working size
—
Export format
PNG

Processing runs locally. The exported PNG keeps each pixel's existing alpha value; choosing a target color does not make transparent pixels opaque.

Click the image to pick the original color.

Drop an image to recolor it

Upload an image, then click a pixel to choose the exact source color. Pick the new color only after the affected mask looks right.

Drop, choose, or paste a PNG, JPG, or WebP. Processing stays in your browser.

Upload an image, then pick the original color.

Original image palette

Choose a frequent swatch to set the original color quickly. This is especially efficient for pixel art and flat icons.

Upload an image to display its most-used colors.

Recolor and refine the asset

Color replacement works best when you pair it with the right pixel-art and palette workflow.

Replace Color in Image from a palette

Extract dominant HEX colors first when you need a reliable source swatch or a documented palette.

Palette
Extract image colors

Recolor pixel art, then resize it

After creating the new palette, enlarge the sprite with crisp nearest-neighbor edges.

Pixel art
Resize pixel art

Convert an image before recoloring

Reduce a detailed source to pixel art when a smaller, controlled palette will produce cleaner color swaps.

Converter
Make pixel art

Replace Color in Image without guesswork

The preview mask makes the color rule visible before it changes the file.

Replace Color in Image for pixel-art variants

Click a sprite color or pick it from the extracted palette, select the replacement swatch, and keep exact matching on for hard-edged pixel art. Every matching pixel updates to the same target RGB value while transparency stays intact.

Two matching pixel-art rocket sprites using different red and violet palettes

Replace every match or one connected area

All matching pixels is a global rule: separate objects with the same color will change together. Connected area only starts from the pixel you click and follows neighboring matches. A box limits either color rule to a selected rectangle, while the protection brush excludes marked pixels.

Comparison of all matching shapes recolored versus a single connected shape recolored

How to Replace Color in Image accurately

Choose the source, narrow the rule, inspect the mask, and only then commit the edit.

01

1. Pick the source pixel

Upload or paste the file, choose Pick color, and click the source color in the canvas. For pixel art, a frequent palette swatch is often faster and more exact.

  • Start from the cleanest PNG available
  • Use exact match for flat colors
Pick an original color
02

2. Choose the right replacement scope

Use All matching pixels for a global palette swap, Inside a selection for a rectangular limit, or Connected area only when separate objects share the same color. Paint the cyan protection mask over details that must stay unchanged.

03

3. Check the affected-pixel mask

Switch to Similar colors only when edge shades or compression variations are missing. Increase tolerance gradually, review the affected count and pink mask, apply the color, then undo if the result reaches too far.

Replace Color in Image FAQ

Answers based on how people search for image color replacers, PNG color changers, and pixel-art palette swaps.

How does Replace Color in Image exact match work?

Exact match compares the red, green, and blue values of each visible pixel with the source color. It is ideal for pixel art, flat icons, logos, and clean PNG assets where one palette entry should map to one new color.

What does tolerance do in an image color replacer?

Tolerance widens the acceptable RGB distance from the clicked source color. A low value includes very close shades; a high value can include highlights, shadows, anti-aliased edges, or unrelated colors. Raise it slowly while watching the pink mask.

What is the difference between all matching pixels and connected area only?

All matching pixels searches the full image or selected box, even when matching pixels are separated. Connected area only uses your clicked seed and follows neighboring pixels that meet the same color rule. Choose it when identical colors appear on separate objects.

Can I change one color inside a selected area?

Yes. Pick the source color first, choose Inside a selection, select the Select area action, and drag a yellow box. Only matching pixels inside that box appear in the affected mask and change when you apply.

Does Replace Color in Image preserve PNG transparency?

Yes. The tool changes RGB values only and keeps every pixel's existing alpha value. Fully transparent pixels are not matched, so a transparent background remains transparent in the downloaded PNG.

Is Replace Color in Image good for recoloring pixel art?

Yes. Pixel art and sprites usually have small, deliberate palettes and hard edges, so exact matching gives predictable palette swaps. Use the original palette row to select a common color without guessing its HEX value.

Can this tool automatically identify clothes, hair, or a background?

No. This is a color-conditional replacer, not an AI object editor. It changes pixels because they match a color rule, not because it understands the object. Use a selection, connected-area mode, or the protection brush to control shared colors.

How do I stop an image color replacer from changing a logo detail?

Choose Protect, paint cyan over the logo detail, and return to Pick color. Protected pixels are removed from the affected mask even if they match the source color and tolerance.

Are files uploaded when I use the online color replacer?

No. The browser reads and edits the pixels locally with canvas, and the download is created on your device. Your image is not sent to this site for processing.

Replace Color in Image now

Pick the old color, choose the new color, and verify the affected-pixel mask before applying.

Use exact match for sprites and icons; add tolerance carefully for edge shades and simple illustrations.

Color replacement follows pixel values, not semantic objects. The original file is never overwritten.