How to Convert an Image to Pure Black and White
To convert an image to pure black and white, upload it to the ByteTools Threshold tool, drag the threshold slider until the balance of black and white looks right, watch the live preview, and click Download PNG. Every pixel becomes either black or white with no gray in between, and the whole conversion runs in your browser with nothing uploaded.
This is different from grayscale, which keeps a full range of grays. Thresholding, also called binarization, forces a hard two-tone result that is ideal for documents, line art and bold graphics. Here is how to do it.
Step-by-step: thresholding an image
- Load your image. Drop a file into the upload area or click to browse. It appears in the live preview.
- Drag the threshold slider. The slider runs from 0 to 255. Each pixel's brightness is compared to this cutoff: brighter than it turns white, darker turns black.
- Watch the preview flip. As you move the slider, pixels flip between pure black and pure white in real time, so you can find the balance you want.
- Download. Click Download PNG to save the black-and-white image.
Understanding the threshold value
| Slider position | Effect | When to use |
|---|---|---|
| Low (near 0) | Most pixels turn white | Keep only the darkest marks |
| Middle (~128) | Balanced split | General starting point |
| High (near 255) | Most pixels turn black | Keep only the brightest highlights |
The tool measures brightness using luminance weighting rather than a flat average, which reflects how the human eye perceives color and produces more natural-looking splits. That is why a red and a green of the same numeric value can fall on different sides of the cutoff.
Why it runs in your browser
The conversion is a single fast pass over the pixels on the HTML canvas, all done locally. Your image is never uploaded, which matters when you are thresholding scanned documents, IDs or other private files. There is no server, no account, and it works offline once loaded.
Quick recipe: cleaning up a scanned document
Upload the scan and start the slider near the middle. Raise or lower it until the text is solid black and the paper is clean white, with no gray smudging. This sharpens faint or unevenly lit text into crisp, high-contrast lettering ready for printing or archiving.
Try the Image Threshold — free and 100% in your browser.
FAQ
What is the difference between thresholding and grayscale?
Grayscale keeps a full range of gray tones, while thresholding removes all grays and leaves only pure black and white. Threshold produces a much higher-contrast, graphic result.
What threshold value should I start with?
Start near the middle, around 128, then adjust. Lower the value to keep only the darkest details as black, or raise it to turn more of the image black. The live preview makes it easy to settle on the right point.
Why do colors of the same brightness behave differently?
The tool uses luminance-weighted brightness, so it accounts for how strongly the eye perceives red, green and blue. Two colors with the same raw numbers can have different perceived brightness and land on opposite sides of the cutoff.
Are my scanned documents kept private?
Yes. The black-and-white conversion happens in your browser with the canvas API, so nothing is sent to a server. Scanned contracts, forms and IDs stay entirely on your device.
Related free tools
- Grayscale Image Filter — convert to gray tones instead of pure black and white.
- Posterize Image — reduce to a few tones between full black and white.
- Invert Image Colors — swap black and white for a negative.
- Brightness & Contrast Editor — even out lighting before thresholding.
Built by ByteVancer
ByteTools is a free product of ByteVancer, a software and web development studio building web apps, SaaS and custom software. If you need a custom tool or a complete product built for your business, explore what ByteVancer can do.
Recommended reading
Image Threshold Tips: Settings and Mistakes
Pro image threshold tips: fix uneven lighting, pick the right cutoff, avoid broken text and lost detail, and troubleshoot black-and-white conversions.
Image Threshold Use Cases and Real Examples
Real image threshold use cases with examples: cleaning document scans, making stencils, prepping line art, laser-cut files and bold graphic art.
How to Convert an Image to Black and White Online
Convert any photo to grayscale online with an adjustable intensity slider. Make images black and white or partially desaturated, free and private in-browser.
Yes or No Generator: Real Use Cases and Examples
From beating decision paralysis to games and classrooms, see real use cases and examples for a random yes or no generator.