Convert PNG to Two Colors
Reduce a PNG to exactly two colors based on pixel brightness.
Drop an image here
PNG, JPG, WebP, GIF or BMP. You can also paste an image.
No result yet
Options
How to use
- 1
Upload a PNG by clicking the upload area or dragging a file in.
- 2
Choose Color 1 for bright pixels and Color 2 for dark pixels.
- 3
Adjust the threshold to control which pixels map to each color.
- 4
Click Download to save the result.
Example
Before640 × 427

After640 × 427

Frequently asked questions
How does the threshold work?
Each pixel is converted to a brightness value from 0 to 100. Pixels at or above the threshold become Color 1. Pixels below become Color 2.
Is transparency preserved?
Alpha values are kept unchanged. Only the RGB channels are remapped.
About this tool
Convert PNG to Two Colors maps every pixel in your image to one of two colors based on a brightness threshold. Pixels above the threshold become Color 1; pixels below become Color 2. All processing runs locally using the Canvas API. Your image is never uploaded to any server.