Skip to content
Jellykit

Black and White Threshold

Turn an image into pure black and white at a cutoff you set or one found automatically, with optional dithering for shading.

  • Runs on your device
  • Works in the background
Loading tool

About Black and White Threshold

Make a crisp two-colour version of a scan, a signature, a logo or a photo for a stencil, a laser engraver or a thermal printer. Every pixel becomes either pure black or pure white depending on its brightness.

Set the cutoff yourself, or let the tool choose one with Otsu's method, which finds the level that best separates dark from light in that picture. Dithering keeps the impression of gray tones with patterns of dots: error diffusion (Floyd–Steinberg) looks like newsprint, ordered (Bayer) gives a regular crosshatch. Results are saved as PNG.

How it works

  1. Each pixel's brightness is computed from its colour with the Rec. 601 weights (0.299 red, 0.587 green, 0.114 blue).
  2. With a fixed cutoff, brightness at or above it becomes white and below it black. Automatic mode builds a histogram of the visible pixels and picks the cutoff by Otsu's method.
  3. Error diffusion passes each pixel's rounding error on to its unvisited neighbours; ordered dithering compares against an 8 × 8 Bayer pattern around the cutoff.
  4. The result is saved as PNG with transparency kept, so the edges stay exact.

Questions

Which dithering should I choose?

None for text, signatures and logos, where you want clean edges. Error diffusion for photos, where it keeps the most detail. Ordered for a deliberate retro pattern or for printers that smear scattered single dots.

What does automatic mode do?

It uses Otsu's method: it tries every cutoff and keeps the one that makes the dark group and the light group each as uniform as possible. It works best when the picture has clear dark and light parts, such as ink on paper.

Is the output a true 1-bit file?

Every pixel is exactly black or white, but the file is a standard PNG with 8 bits per channel, because that is what browsers write. It opens everywhere and compresses well.

Is there a size limit?

Each file can be up to 200 MB and up to 40 megapixels (about 7,700 × 5,200), or less on browsers whose canvas is smaller, such as Safari on iPhone at about 16.7 megapixels. Larger pictures are refused with a message before any work starts.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.