Tools

Home
GrayscaleThresholdBrightness/ContrastInvert ColorsImage Compressor

Create Two Color Image

Reduce any image to exactly two colors with adjustable threshold. Pick your custom colors, preview, and download.

Your files never leave your browser
Drop an image here or click to upload
PNG, JPG, WEBP, BMP, GIF -- Max 50MB -- 100% Private
Colors
#000000
#ffffff
Threshold
Threshold128
Swap
------

Turn any photo into a clean two-tone image using just two colors you pick. Drag the threshold slider to decide which pixels go dark and which go light — black and white for the classic poster look, or try odd duotone pairs like teal and coral for something bolder. And everything runs in your browser. Nothing gets uploaded.

How to Use

Upload an image by dragging it onto the drop zone or clicking to browse your files.

Pick two colors using the color pickers in the side panel. Color 1 replaces dark pixels, Color 2 replaces light pixels.

Adjust the threshold slider to control where the split between dark and light occurs. Lower values produce more Color 2, higher values produce more Color 1.

Download your two-color image as a PNG file.

Frequently Asked Questions

How does the two-color conversion work?

The tool converts each pixel to grayscale using the luminance formula (0.299R + 0.587G + 0.114B). If the grayscale value is below the threshold, the pixel becomes Color 1; otherwise it becomes Color 2. This creates a clean two-tone image.

What does the threshold slider do?

The threshold determines the cutoff point between your two colors. A threshold of 128 (the default) splits at the midpoint. Lowering it means more pixels become Color 2 (light), while raising it means more pixels become Color 1 (dark). Adjust it to get the best visual result for your image.

Can I use any colors, not just black and white?

Absolutely. Click either color picker to choose any color you like. You can create striking duotone effects with any combination -- red and blue, gold and navy, green and pink, or any other pair.

Does this tool upload my image to a server?

No. All processing happens entirely in your browser using the Canvas API. Your image never leaves your device and nothing is sent to any server. The tool works offline once the page is loaded.

What image formats are supported?

You can upload PNG, JPG, WEBP, BMP, and GIF images. The output is always downloaded as a PNG file to preserve the exact two-color result without compression artifacts.

Share: