Social media growth services from EthicalSMM

Black and White Image (Threshold)

Turn a photo, scan or signature into pure black and white with no greys, choosing the cut-off between dark and light.

Lower quality gives a smaller file.

Pixels darker than this turn black, lighter ones white. Raise it to keep faint lines.

Your file is ready

Download result
Original image
Original
Processed image Your result will appear here Base64 text is ready to download
Result

Was this tool helpful?

Thanks for the feedback!

This tool turns any image into pure black and white, with no grey at all. It is meant for signatures, handwritten notes, stamps, line drawings and document scans, where you want crisp ink on clean white paper. It works in your browser and the file is never uploaded.

How it decides black or white

For every pixel the tool works out a brightness value from 0 to 255 using the Rec. 709 weights, the standard ones for screen colour:

brightness = 0.2126 × red + 0.7152 × green + 0.0722 × blue

If that number is equal to or above the Threshold you set, the pixel becomes white (255, 255, 255). If it is below, the pixel becomes black (0, 0, 0). Green counts most and blue least, roughly matching how bright the eye sees each colour. That is why blue ink almost always turns black and slightly yellow paper usually turns white.

The slider runs from 1 to 254 and starts at 128, the middle of the range. Transparency in a PNG is left as it was. Press Process image after each change to see the Original and Result side by side, then Download result.

Worked example: a signature on cream paper

Say you photographed a signature in blue ballpoint on cream paper. There is a soft shadow from your hand at one edge and a faint pencil guideline you drew first.

Part of the photoColour (R, G, B)BrightnessAt 128At 180
Blue ink30, 60, 16060.84BlackBlack
Cream paper240, 230, 200229.96WhiteWhite
Grey shadow150, 150, 150150WhiteBlack
Faint pencil line170, 170, 170170WhiteBlack

At the default 128 you get clean ink strokes on white, and both the shadow and the pencil line disappear. At 180 the pencil line survives, but so does the shadow, as a black smudge. For this signature 128 is the better choice. For a faint pencil sketch you would raise the threshold and take the photo in even light, so there is no shadow to pick up.

Choosing the threshold

  • If strokes look broken or too thin, raise the threshold so more of the lighter ink counts as black.
  • If the background shows black speckles, or grey patches have turned black, lower it.
  • Uneven lighting is the usual problem. One cut-off is applied to the whole image, so a photo that is bright on one side and shadowed on the other may never look clean everywhere. Retake it near a window with no shadow, or remove the dark corner first with the Image Cropper.
  • Red counts as dark in this formula. Pure red scores 54.21, so red stamps and red pen turn black unless the threshold is set below that.
  • Pure green scores 182.38, so green ink or highlighter turns white at the default setting.

File format and a note on JPG

The result keeps the original pixel size. If you started from a JPEG, the download is a JPG saved at 92% quality. JPG compression adds faint grey pixels along the edges of black strokes, so the file is no longer strictly two colours. If you need truly pure black and white, for example for a rubber stamp design or a cutting machine, start from a PNG so the download is a PNG too. Converting your photo first with the JPG to PNG Converter does that.

Good uses

The most common job is cleaning up a signature photo before attaching it to an online application or a scanned form. Other good uses are handwritten notes you want to share as a clear, readable page, a rubber stamp or logo you want to redraw, and line drawings for colouring sheets or stencils. The tool does not crop, straighten or resize, so do those steps separately if a form asks for a particular size. If you would rather draw a fresh signature than clean up a photo of one, the Signature Maker lets you draw it directly.

Frequently asked questions

How do I make a signature image pure black and white?
Photograph the signature on plain paper in even light, load it here, keep the threshold at 128 and press Process image. Raise the threshold if strokes look broken, or lower it if the paper shows black speckles.
What is the difference between black and white and grayscale?
Grayscale keeps every shade of grey from black to white, while this tool keeps only pure black and pure white. Grayscale suits photos, and two-tone output suits text, signatures and line art.
Why did my red stamp turn black?
The tool weighs red at only 0.2126, so pure red scores about 54 out of 255, well under the default threshold of 128. Set the threshold below 54 if you want red marks to turn white instead.
What threshold should I use for a scanned document?
Start at 128. If light pencil or faded print disappears, raise it towards 160 to 180, and if the paper background turns blotchy, lower it.
Why does my result still have some grey pixels?
The source was a JPEG, so the result was saved as a JPG, and JPG compression softens the edges of the strokes. Convert the image to PNG first and process it again for strictly two-colour output.
Is my document uploaded anywhere?
No. The conversion runs in your browser on your own device, and the file is never sent to a server.

Related guides

Related tools

People also used

Embed this tool on your site

Paste it into any blog or website. Free, with a credit link.