Color to Transparency

Turn one HEX color into transparent pixels and download a PNG. Tolerance is Euclidean RGB, default 0, maximum 64. This is not background removal.

Last updated: October 6, 2026

Tool

This tool will load here.

What this tool does

Color to transparency writes a new alpha channel from one rule. You give a color as # and six hex digits, and a tolerance from 0 to 64. Tolerance 0 changes only pixels with that exact RGB. A higher tolerance changes a pixel when the Euclidean distance in 8-bit RGB is less than or equal to the tolerance. Alpha is ignored while matching. A matched pixel is written as RGBA 0,0,0,0. Every other pixel keeps the RGBA the browser decoded. The download is a PNG.

Zero matches is a successful PNG with a changed count of 0. Anti-aliased edges remain unless the tolerance reaches them. The page does not flood-fill from the corners and does not guess a background. A matching pixel in the middle of a shape changes too. Do not read the title as automatic subject removal.

Read the HEX first on the Image Color Picker if you do not already know it. After the PNG is built, the Image Transparency Checker can confirm the new alpha counts. The result only stays transparent in a format that stores alpha. The JPEG vs PNG vs WebP article covers that choice. This page always writes PNG, even when the input was JPEG.

How to use

  1. Choose a JPEG, PNG, or WebP file.
  2. Enter the HEX color. Leave tolerance at 0, or type a whole number up to 64. Enter in either field runs the action.
  3. Make transparent. Download saves a PNG. Clear drops the file, the color, and the tolerance back to 0.

The preview uses a checker behind the canvas so the new holes are visible. The file never leaves the browser.

Example

Black at tolerance 0 changes a pixel of 0,0,0 and leaves a pixel of 10,0,0 alone, including that pixel’s original alpha. A pixel of 10,10,10 against black is about 17.3 away, so tolerance 17 leaves it and tolerance 18 clears it. Tolerance 64 can reach a pixel 40 red-units away. An input with no pixel near the chosen color still downloads, with changed equal to 0. A partial-alpha pixel is tested on RGB only, then the match becomes fully clear.

A leading zero such as 08 is rejected, and a decimal is rejected. The field is text so the page can keep that rule. Invalid HEX clears any previous PNG instead of keeping a stale download. The changed count is the number of pixels the rule matched, including a pixel that was already 0,0,0,0 if its RGB matched.

Limits

  • HEX must be # and six hex digits. Three-digit forms and eight-digit forms are rejected.
  • Tolerance is a whole number from 0 to 64, with no leading zero on a larger number.
  • JPEG, PNG, and WebP in. PNG out. 8 MB, 8,000 px, 16 megapixels.
  • Distance is 8-bit RGB in this browser’s decode, not a print color.

A white page photographed under uneven light will not become a clean cutout at tolerance 0, and a large tolerance will eat into the subject. That is the rule working, not a failure of detection, because detection is not what this page does. Use a small tolerance for a flat logo color. Use the transparency checker on the download when you need the counts rather than the preview.

On this page

Related guides

Related solutions

Need another tool ?

Open the free tools — no signup.

FAQs

newsletter signup

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Innovative Solutions For Modern Needs
Copyright © 2026 Yallasolve. all rights reserved.