replace-webp-colors
Replacing colors in a WebP swaps one specific color (and similar shades) for another. Useful for re-tinting brand assets, swapping colors across icon sets, and recolouring graphics without re-exporting from source. The ZTools Replace WebP Colors tool decodes the WebP, lets you eyedropper the source color, picks a replacement, sets a tolerance for anti-aliased edges, and re-encodes preserving alpha.
Use casesβ
Re-tint a brand assetβ
Logo in red WebP; partner needs blue. Replace red with blue.
Brand color migration across iconsβ
Old brand teal β new brand navy. Run all WebP icons through the recolouriser.
Generate variantsβ
One source asset, multiple color variants. Replace core color for each variant.
How it worksβ
- Drop WebP β Loaded into canvas.
- Pick source color β Eyedropper or hex value.
- Pick replacement β Color picker.
- Set tolerance β Higher tolerance catches anti-aliased edges; too high catches unrelated colors.
- Save WebP β Lossless preserves alpha exactly. Lossy mode for smaller files.
Examplesβ
Input: Red logo (#FF0000) β blue (#0000FF), tolerance 20
Output: Reds (including anti-aliased reds) replaced. Other colors preserved.
Frequently asked questionsβ
How is this different from change-png-colors?
Same operation, WebP format. WebP files are smaller; alpha handling is the same.
Privacy?
All in browser.
Tipsβ
- For brand-color migrations, save your source/target hex pair and re-use across batches.
- For complex multi-color assets, run multiple passes (one source/target pair per pass).
- For gradients, color replacement is poor β re-export from source or use hue-rotation.
Try it nowβ
The full replace-webp-colors runs in your browser at https://ztools.zaions.com/replace-webp-colors β no signup, no upload, no data leaves your device.
Last updated: 2026-05-06 Β· Author: Ahsan Mahmood Β· Edit this page on GitHub