Free web tool

Image threshold binarizer

Convert an image to black and white using a configurable threshold, with optional inversion.

Input & settings

How to use

Convert an image to black and white by splitting luminance at a threshold. It is useful for scans, line art, and quick checks of where an image separates into light and dark regions.

  1. Choose an image.
  2. Adjust the threshold from 0 to 255, and enable invert if needed.
  3. Run the tool, review the black/white split and white share among visible pixels, then download the PNG.

At threshold 128, luminance 128 and above becomes white

The tool does not use a simple average of R, G, and B. It calculates luminance with standard weighting that gives green more influence and blue less.

That produces a split that is usually closer to perceived brightness. Raising the threshold makes fewer pixels qualify as white.

Transparent PNGs are measured by visible pixels

Fully transparent pixels can still contain hidden RGB values. Counting those values in the white-pixel percentage can make the number disagree with what you see.

In v1.49, fully transparent pixels are excluded from the white-share denominator and reported separately. The original Alpha values are preserved.

This is not OCR or vector tracing

A two-color PNG is still an image. Text does not become searchable text, and lines do not become editable SVG paths.

Use OCR when you need text recognition, and vector tracing when you need editable paths.

Use posterize when you want to keep color

If black and white removes too much information, Image posterize reduces tonal levels while retaining RGB color.

Decide first whether you want “shape in two colors” or “flatter color regions.” That usually makes the tool choice obvious.