EIT easy-image-tools / Two colors PNG

Two colors PNG

Recolors the image into two chosen colors by luminance threshold.

Nothing found — try another word.

01

Two colors PNG

Nothing found — try another word.

Color pair
Threshold

Nothing found — try another word.

Preview
Source
Drop a PNG here or click / paste (Ctrl+V) — processed locally
Result
no result yet

Two colors reduces a picture to exactly two shades you pick: every pixel's brightness is measured with the standard BT.601 luminance weights and compared against the threshold — brighter pixels take the From color, darker ones take the To color. The cut is hard, with no blending along the edge, which is what gives the crisp look of a poster, a logo silhouette or a duotone. It runs in your browser, and the alpha channel is preserved.

  • Runs entirely in your browser: no upload, no server, no signup.
  • From is the bright color, To the dark one; threshold 50 splits the middle.
  • A hard two-value cut — diagonal edges come out as stair steps.
  • The alpha channel is copied through unchanged.
  • Swapping the two colors turns the result into a negative.
  • Free with no daily limit, no watermark and no account, also for commercial use.

How to use it

  1. Drop the image into the source area, or pick a file from your device.
  2. Set the Color pair: From is the color for the bright areas, To the color for the dark ones.
  3. Move the Threshold to decide how much of the picture counts as bright; 50 splits it in the middle.
  4. Download the result from the Download button.

Questions

Which of my two colors goes where?

From is the light color and To the dark one - that is the order the tool reads them in. With the defaults it simply reproduces black and white; swap the two and the picture turns into a photographic negative.

Will the edges be smooth?

No, and that is the character of the tool. A pixel is either one color or the other with nothing in between, so diagonal edges come out as stair steps. Posterizing instead keeps whatever anti-aliasing was already in the source.

Does it keep transparency?

The alpha channel is copied through unchanged, so a transparent background stays transparent even though the color values behind it are recolored.

Can I get more than two colors?

Not from this page. For a longer ramp, build one in the tint tool and posterize afterwards, or use the custom palette tool to map the picture onto a list of exact colors instead.

Related tools