Black and White Threshold

Turn a phone photo of a page or a signature into clean black ink on white paper. Auto finds the cut-off for you, and the image never leaves this browser tab.

How it works

Every pixel becomes pure black or pure white. Its brightness is worked out with the Rec. 709 weights, and anything at or above the cut-off turns white.

Auto finds the cut-off with Otsu's method: it tries every level from 0 to 255 and keeps the one that splits the pixels into the two most clearly separate groups. On a page, those groups are ink and paper.

The preview is a small copy, so you can try each look at once. The full-size image is made in a background worker when you download.

How to use it

  1. 1 Choose a photo or scan, drop it on the file box, or paste it with Ctrl+V.
  2. 2 Start with Auto. If faint strokes vanish, pick Keep faint lines; if the paper looks dirty, pick Clean background.
  3. 3 Press Show original to compare, then press Download.

Good to know

  • Light the page evenly and avoid your own shadow. One cut-off has to work for the whole page.
  • Crop to the page first with Image Crop, so the table or desk around it does not pull the cut-off.
  • For a signature to paste into a document, start from a PNG to get pure black and white pixels back.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Turning a phone photo of a signed page into clean black and white

A phone photo of a printed page is never really black and white. The paper is a light grey, warmer in one corner, the ink is a dark grey, and the camera adds noise. Printed, faxed or pasted into a form, that grey picture looks dirty. A threshold fixes it by making a hard choice for every pixel: black or white, nothing in between.

The choice is made on brightness. Each pixel's brightness is 21% of its red, plus 72% of its green, plus 7% of its blue, on a scale from 0 to 255. Then one number, the cut-off, decides. With a cut-off of 128, a pixel of brightness 127 becomes black and a pixel of 128 becomes white. A blue ballpoint signature with a brightness of about 70 turns black, and paper at about 225 turns white.

Picking the cut-off by hand is the hard part, so Auto picks it with Otsu's method, from 1979 and still the standard first choice. It builds a histogram of how many pixels have each brightness. On a page there are two humps: a small one for the ink and a large one for the paper. Otsu tries every possible cut-off and keeps the one where the two groups are most clearly apart. For a page with ink around 60 and paper around 235, the cut-off lands between them, so the ink stays black and the paper goes white.

The two other presets are for when Auto gets it slightly wrong. Keep faint lines uses a high cut-off of 190, so pencil, light ink and thin strokes stay black; the cost is that grey shadows on the paper may turn black too. Clean background uses a low cut-off of 110, which turns grey paper and shadows white; the cost is that very light strokes may disappear. Fine-tune lets you set any value from 1 to 255, and its slider starts at the level Auto found.

The limits matter for documents. One cut-off is used for the whole image, so uneven light, such as a shadow across half the page, cannot be fully fixed; retake the photo in even light instead. Coloured stamps and highlighter turn black or white depending on their brightness. A JPEG photo is saved as JPEG, and JPEG compression adds faint grey specks along every stroke. For pure black and white pixels, convert the photo to PNG with Image Convert first, then threshold the PNG. The file is still an ordinary image, not a 1-bit fax file, and the largest image it takes is 24 megapixels.

Frequently asked questions

Why does part of my page come out black?

A shadow or a dim corner can be darker than the cut-off, so it turns black like ink. One cut-off is used for the whole image. Retake the photo in even light, or pick Clean background to lower the cut-off.

Does this make the background transparent?

No. Paper becomes white, not transparent. Any transparency that was already in a PNG is kept as it was.

Is my document uploaded?

No. The page is read and changed inside this browser tab and saved straight to your device. That matters for signatures and ID documents.

Can it read the text?

No. The result is still a picture of the text. Reading words out of a picture (OCR) is a different tool.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.