BYTETOOLS

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

  1. Load your image. Drop a file into the upload area or click to browse. It appears in the live preview.
  2. 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.
  3. 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.
  4. Download. Click Download PNG to save the black-and-white image.

Understanding the threshold value

Slider positionEffectWhen to use
Low (near 0)Most pixels turn whiteKeep only the darkest marks
Middle (~128)Balanced splitGeneral starting point
High (near 255)Most pixels turn blackKeep 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

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.