iToolsPro

PNG颜色替换

批量替换 PNG 图片中的指定颜色,支持容差匹配相近颜色与点击取色,多图一次处理

上传与设置

点击或拖拽图片到此处

支持多选 PNG / JPG / WebP,点击图片可吸取源色

#ff0000
#00ff00
32
提示:处理在本地完成,数据不会上传。点击图片任意位置可把该像素颜色设为源色。
替换结果
棋盘格表示透明区域。上传图片后点击「应用替换」。
From · To · Tolerance

指定颜色,整图批量替换

把图片里的某个颜色整体替换成另一个颜色,容差可调匹配相近色,点击取色,多张 PNG 一次处理,本地零上传。

100% 本地处理 · 数据不上传

核心特性

点击取色
点击图片任意像素即可作为源颜色,无需手动输入色值。
容差匹配
容差滑块控制匹配范围,可连相近颜色一起替换,边缘更干净。
批量处理
一次上传多张,统一设置颜色与容差,批量替换并逐张导出。

适用场景

🎨 品牌换色 🖌 主题改色 🔤 图标改色 🗂 批量素材

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.