iToolsPro

PNG Color Replace

Batch-replace a specified color in PNG images, with tolerance matching and click-to-pick. Process many at once

Upload & settings

Click or drag images here

Multiple PNG / JPG / WebP allowed; click an image to pick the source color

#ff0000
#00ff00
32
Tip: runs locally, nothing is uploaded. Click any pixel on an image to use it as the source color.
Results
Checkerboard shows transparent areas. Upload images, then click "Apply".
From · To · Tolerance

A specified color, replaced across the image

Replace one color in an image with another, with adjustable tolerance for similar shades and click-to-pick. Process multiple PNGs at once. All local, nothing uploaded.

100% local · nothing uploaded

Features

Click to pick
Click any pixel on an image to use it as the source color - no need to type hex values.
Tolerance matching
The tolerance slider controls the match range, so similar shades can be replaced too for cleaner edges.
Batch processing
Upload multiple images, set colors and tolerance once, and export each result.

Use cases

🎨 Brand recoloring 🖌 Theme reskin 🔤 Icon recoloring 🗂 Batch assets

PNG颜色替换指南PNG Color Replace Guide

了解颜色匹配原理、容差用法与常见问题。How color matching works, tolerance tips, and answers to common questions.

功能说明What It Does

PNG颜色替换工具把图片中与「源颜色」接近的所有像素替换为「目标颜色」。可指定颜色或点击图片取色,容差控制匹配范围,支持多张图片批量处理并逐张导出 PNG。

This tool replaces every pixel close to a "source color" with a "target color". Pick the color manually or click the image, control the match range with tolerance, process multiple images at once and export each as PNG.

全部在浏览器本地完成,数据不会上传。

Everything runs locally in your browser - nothing is uploaded.

使用技巧Usage tips

纯色区域容差调小即可精确替换;边缘有渐变时适当加大容差;透明像素不会参与替换,保留原有 alpha 通道。点击图片任意位置可直接吸取源色。

Use a small tolerance for solid areas, raise it for gradients. Transparent pixels are skipped, so the alpha channel is preserved. Click any pixel on the image to pick the source color directly.

使用步骤How to Use

  1. 上传一张或多张 PNG 图片。Upload one or more PNG images.
  2. 设置源颜色、目标颜色与容差。Set the source color, target color and tolerance.
  3. 点「应用替换」预览,满意后逐张或全部导出。Click "Apply" to preview, then export individually or all.

常见问题FAQ

Q1. 替换后透明区域会受影响吗?Q1. Does replacing affect transparent areas?

不会,透明像素会被跳过,图片的 alpha 通道完整保留。No - transparent pixels are skipped and the alpha channel is fully preserved.

Q2. 颜色相近但不想替换怎么办?Q2. What if similar colors shouldn't be replaced?

把容差调小,只匹配与源色完全或非常接近的像素。Lower the tolerance so only pixels identical or extremely close to the source color are replaced.

Q3. 支持哪些格式?Q3. Which formats are supported?

PNG / JPG / WebP 均可上传,导出统一为保留透明通道的 PNG。PNG, JPG and WebP can be uploaded; exports are always PNG with the alpha channel preserved.