Black and white photos: grayscale, contrast and threshold
Reviewed 23 November 2026 · 6 min read · Written and maintained by Toolnexo
Turning a photo black and white sounds like removing colour, but the result depends on how each colour is converted to a grey. Done badly, a vivid picture turns into a flat grey mist. This guide explains how the conversion works, how contrast and brightness rescue it, and what the pure black and white mode is for. The numbers below come from the black and white image tool and the image filters tool on this site, which work in your browser, so your photo is never uploaded.
Why not just average the three colours?
The simplest conversion adds red, green and blue and divides by three. The problem is that the eye does not treat the three equally. We see green as much brighter than red, and blue as the darkest of the three. A pure red, a pure green and a pure blue pixel would all become the same grey of 85 under the simple average, so a red flower on green leaves would lose all separation.
Better converters weight the channels by how bright they look. The tool uses the weights 0.2126 for red, 0.7152 for green and 0.0722 for blue, which are the same weights the CSS grayscale filter is defined with.
What the weights do to real colours
- Pure red (255, 0, 0) becomes a dark grey of 54.
- Pure green (0, 255, 0) becomes a light grey of 182.
- Pure blue (0, 0, 255) becomes a very dark grey of 18.
- An orange-brown pixel (200, 100, 50) becomes a mid grey of 118 with plain grayscale, or 117 with the tool's default 10 percent contrast boost.
Why black and white photos can look flat
Colour carries a lot of the contrast between objects. When two very different colours turn into similar greys, the boundary between them disappears. The tool's black and white look therefore adds 10 percent contrast by default, and you can raise it further. Contrast pushes values away from the middle: each channel is scaled as value × contrast + 127.5 × (1 − contrast), so greys above the middle get lighter and greys below it get darker.
Be careful at the extremes. Past roughly 150 percent, highlights clip to pure white and shadows to pure black, and that detail cannot be recovered. Raise brightness first if the picture is dark, then contrast, and use the original comparison tick box to check you are not overdoing it.
Grayscale or pure black and white?
Grayscale keeps all the shades between black and white, like a traditional black and white print. Pure black and white keeps only two values, with no greys at all. In that mode each pixel is compared with a cut-off between 0 and 255: brighter pixels become white and the rest become black. The default cut-off is 128.
Pure black and white is useful for scanned documents, signatures, stamps, line art, stencils and anything headed for a thermal printer. Move the cut-off down to lighten a dark scan and up to darken a faint one. It is not suited to photographs, because shading becomes harsh blocks.
Saving the result
- PNG is lossless and the best choice for pure black and white and line art, because the flat areas compress to very small files.
- JPG is smaller for grayscale photographs. The tool saves at 92 percent quality, which is visually close to the original. JPG has no transparency, so transparent areas become white.
- The tool filters the full resolution picture when you download, so a 3000 × 2000 pixel photo stays that size and prints well at about 10 × 6.7 inches at 300 DPI.
- The saved file is a new image without the original camera metadata such as location.
When to use other tools
If you want a different look rather than just black and white, the image filters tool adds sepia, vintage, warm and cool presets with sliders for brightness, saturation, hue and warmth. To shrink the finished file for a website, run it through the image compressor. To fix exposure or clarity before converting, the photo enhancer is the better starting point.
Put it into practice
Black and White Image Maker
Turn any colour photo into black and white in your browser, then adjust contrast or switch to pure black and white with a cut-off slider.
Runs in your browserImage Filters
Apply filters to a photo in your browser: black and white, sepia, vintage and more, with sliders for brightness, contrast, saturation, hu…
Runs in your browserPhoto Enhancer
Fix photos with classical adjustments (brightness, contrast, saturation, colour temperature and sharpening) previewed live at full pixel …
Runs in your browserImage Compressor
Shrink photos to a size limit like 20 KB, 50 KB or 100 KB, or choose the quality yourself, with a before and after slider to compare.
Runs in your browserHow this guide is maintained
This page is reviewed when the related tools change. It describes what the published tools actually do: the tools run in your browser tab, so your files stay on your device. If you find something inaccurate, email [email protected] and it will be corrected.
Other guides
- How to merge PDFs without uploading them6 min · 17 November 2026
- OCR a scanned PDF: accuracy, limits and privacy7 min · 17 November 2026
- Compress a PDF without destroying readability6 min · 17 November 2026