Calci.inCalculate Today for a Better Tomorrow

Black and White Photo Converter

Turn a photo grey, pure black and white for documents, or sepia

Did this tool help you?
The guide

Turning a photo black and white

How to turn a photo grayscale, pure black and white for documents and signatures, or sepia, and how the grey of each colour and the automatic threshold are worked out.

Last reviewed · 1,196 words

In short

  • Grayscale keeps every shade of grey; Black and white only makes each pixel pure black or white, which turns a photographed page or signature into a clean scan; Sepia gives warm brown tones.
  • Each pixel's grey is 0.299 × red + 0.587 × green + 0.114 × blue, the weights of ITU-R BT.601, because the eye finds green brightest and blue darkest.
  • The automatic threshold uses Otsu's method to find the brightness that best separates ink from paper; move the slider if faint strokes vanish.
  • Contrast and brightness sliders adjust grayscale and sepia; black and white results are saved as PNG to keep edges sharp.
  • The photo is converted in your browser and never uploaded.

Black and white does two quite different jobs. For a photograph it is a style: it removes the distraction of colour and leaves light, shade and expression. For a document it is a repair: a signature or a page photographed under a yellow bulb comes out grey, shadowed and tinted, and turning it pure black and white makes it look like a clean scan, which is what many upload forms expect. This tool does both, and this page explains the difference and the arithmetic behind each.

How to use it

Choose a photo; JPG, PNG and WebP all work. Then pick a style:

  • Grayscale turns the photo into shades of grey. Contrast stretches the greys apart or pulls them together, and Brightness lightens or darkens the whole picture.
  • Black and white only makes every pixel either pure black or pure white. The Threshold slider decides where the line falls, and starts at an automatic value worked out from the photo.
  • Sepia turns the photo grey and then tints it warm brown, like an old print. Contrast and Brightness work as for grayscale.

The result appears in the result panel as you change the settings, with its size and a Download button. Grayscale and sepia keep the original format, JPG or PNG. Black and white is always saved as PNG, because a picture of only two colours is stored far more compactly and sharply as PNG than as JPG, which would blur the edges of the strokes.

How colour becomes grey

The simplest way to turn a colour grey is to average its red, green and blue. It gives the wrong answer, because the eye does not find the three equally bright: pure green looks much brighter than pure blue at the same strength. Averaging makes blue skies too light and red text too pale.

Instead the tool uses the weights from ITU-R BT.601, the television standard that most image software still follows:

grey = 0.299 × red + 0.587 × green + 0.114 × blue

Each of red, green and blue runs from 0 to 255. Some colours worked out:

ColourRed, green, blueGrey
Pure red255, 0, 076
Pure green0, 255, 0150
Pure blue0, 0, 25529
Saffron #FF9933255, 153, 51172
India green #13880819, 136, 886

So a red stamp turns a fairly dark grey and a blue pen turns very dark, which is why blue ink signatures still show clearly in grayscale.

Contrast works around the middle grey of 128: at 150%, a grey of 168 (40 above the middle) becomes 188 (60 above), and one of 88 becomes 68. Brightness adds the same amount to every pixel. Values past 0 or 255 stop there.

Black and white for documents and signatures

Black and white only compares each pixel's grey with a threshold. Brighter than the threshold becomes white, the rest black. The result has no grey at all, so a shadow on the paper either disappears into white or, if it is darker than the threshold, turns black. The right threshold is the brightness between the ink and the paper.

The automatic value comes from Otsu's method, published by Nobuyuki Otsu in 1979. It counts how many pixels there are at each brightness, which for a page gives two humps, a large one for the paper and a smaller one for the ink, and finds the threshold that splits them into two groups as different from each other as possible. When there is a clear gap between ink and paper, any threshold in the gap would do, and the tool takes the middle of it, which leaves the most room for uneven lighting on either side.

Move the slider when the automatic value is not right:

  • Faint strokes or pencil disappear: raise the threshold, so lighter greys count as ink.
  • Shadows or paper texture turn into black specks: lower it.

For best results photograph the page in daylight, straight on, with the paper filling the frame. A strong shadow across part of the page is the hardest case for any threshold, because the paper in the shadow can be darker than the ink in the light.

Sepia

Sepia takes each pixel's red, green and blue and mixes them into new values that lean towards brown, using the widely used sepia matrix. Red, for example, becomes 0.393 × red + 0.769 × green + 0.189 × blue. A mid-grey of 100 comes out as 135, 120, 94, a warm brown. Sepia has no technical use; it simply gives a photo the look of an old print.

Making a document look scanned, step by step

A phone photo of a page usually has three problems: the paper is not white, the light is uneven, and the ink is grey rather than black. Black and white only fixes all three at once when the photo is good enough.

  1. Photograph the page well. Put it on a dark, plain surface in daylight, hold the phone straight above it, and fill the frame with the page. Avoid your own shadow.
  2. Crop it with the crop image tool so only the page is in the picture; the table round it can confuse the automatic threshold.
  3. Open it here and choose Black and white only. Look at the result zoomed in.
  4. Adjust the threshold if needed: up to bring back faint writing, down to clear grey specks.
  5. Download it. For a multi-page document, do each page and then join them into one PDF with the JPG to PDF tool.

The same steps work for a signature on white paper: the result is crisp black ink on pure white, which most exam and bank forms want.

If the automatic result has a dark band along one side of the page, that is uneven light: the paper there was darker than the ink elsewhere, and no single threshold can separate them. Photograph the page again in more even light, near a window and away from your own shadow, rather than fighting it with the slider.

Grayscale or black and white: which one?

Use grayscale for photographs of people and places. It keeps the soft shading of faces and skies, which black and white only would turn into harsh patches. Use black and white only for anything made of ink on paper: documents, signatures, handwritten notes, receipts. It removes the shading, which on a document is only noise. If a document has photographs in it, such as an ID card, use grayscale, because black and white only would turn the photo on the card into blotches.

For a photo of a person, try grayscale with the contrast raised to about 120%, which gives the deeper blacks of a classic print.

Things to know

  • Transparency is kept in PNG and WebP pictures: only the colour channels change.
  • The original is not changed. Downloading saves a new copy named with grayscale, black-white or sepia.
  • For signatures on forms, turning them black and white first, then sizing them with the signature resize tool, gives the cleanest result.
  • Large photos over 4,000 pixels on the long side are worked on at 4,000, which keeps phones from running out of memory.

Sources

Frequently asked questions

How do I make a photo black and white?

Choose the photo and keep Grayscale selected. The grey version appears on the right; use Contrast and Brightness to adjust it, then download it.

What is the difference between grayscale and black and white only?

Grayscale keeps every shade of grey, like a black-and-white photograph. Black and white only turns each pixel pure black or pure white, which makes a photographed document or signature look like a clean scan.

How is the grey worked out?

Each pixel's brightness is 0.299 × red + 0.587 × green + 0.114 × blue, the weights of the ITU-R BT.601 standard. Green counts most because the eye finds it brightest.

How does the automatic threshold work?

It uses Otsu's method, which finds the brightness that best divides the picture into a dark group and a light group, usually ink and paper. Move the slider if faint strokes disappear.

Is my photo uploaded?

No. It is converted in your browser tab and never leaves your device.