Skip to content
hateitall

Black and White Threshold

Turn a photo, scan or signature into crisp two tone art with a cutoff you control.

Processed locallyIn: PNG, JPEG, WebP, GIF, BMP, AVIFOut: PNG, JPEG, WebP, ZIP

Loading tool…

How to use black and white threshold

  1. Drop a photo, scan or drawing.

  2. Move the cutoff, or switch on automatic to let Otsu's method choose it.

  3. Choose hard cutoff for clean line art, error diffusion for photo detail, or ordered dots for a retro look.

  4. Optionally swap black and white for any two colours, then export.

What this tool does

  • Manual cutoff from 1 to 254 or automatic cutoff by Otsu's method
  • Floyd Steinberg error diffusion and ordered Bayer dithering
  • Custom dark and light colours
  • Good for cleaning up scanned signatures and line art

How the result is verified

Outputs are decoded again and checked for size. With default colours every pixel is exactly black or white, which a histogram or colour picker will confirm.

Frequently asked questions

What does automatic cutoff do?

It looks at the image's brightness histogram and picks the level that best separates it into two groups (Otsu's method). It works well for scans with a clear background.

How do I get a transparent background for a signature?

Threshold it here first for clean edges, then use Remove Background or an editor to drop the white. This tool keeps whatever transparency the source already had.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Black and white conversion with luminance, average or channel methods

PNG · JPEG · WebP +→ PNGLight on device

Flat colour bands, 2 to 16 levels, with optional dithering

PNG · JPEG · WebP +→ PNGLight on device

Sobel outlines with smoothing, cutoff and three styles

PNG · JPEG · WebP +→ PNGLight on device

A small neural network downloads once and cuts out backgrounds locally, with restore and erase brushes for touch-ups.

PNG · JPEG · WebP→ PNG (transparent)Heavy on device

Dots, squares or lines in one ink, CMYK or colour

PNG · JPEG · WebP +→ PNGLight on device