PNG to Black and White Converter

Computes each pixel's perceptual luminance and replaces it with either pure black (0,0,0) or pure white (255,255,255) based on an adjustable brightness threshold, producing a real 1-bit-style black-and-white look rather than a continuous-tone grayscale image. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-26

Overview

Introduction

'Black and white' technically means only two colors — pure black and pure white — not the many gray shades most people picture when they hear the phrase.

This tool produces that true, high-contrast threshold effect directly in your browser.

What Is PNG to Black and White Converter?

A pixel-level threshold converter that replaces every pixel with pure black or pure white based on its computed brightness, the same underlying operation as the more general PNG to Two Colors converter with its two output colors pinned to black and white.

The result is a stark, high-contrast, stencil-like image rather than a smooth continuous-tone one.

How PNG to Black and White Converter Works

For every pixel, perceptual luminance is computed using the standard weighted formula (green weighted most heavily, matching human brightness perception), then compared against the threshold value.

Pixels at or above the threshold become pure white; everything below becomes pure black — there's no interpolation or dithering, so the split is hard-edged.

When To Use PNG to Black and White Converter

Use it whenever you need a genuine two-tone black-and-white image — for a stencil, a high-contrast print, or a stylized graphic effect — rather than a smooth grayscale photo.

It's also useful for quickly visualizing which parts of an image are objectively brighter or darker than a given cutoff.

Features

Advantages

  • Runs entirely client-side; the uploaded image never leaves your browser.
  • Produces a genuinely flat, two-value result, ideal for stencils, laser engraving templates, or high-contrast print effects.
  • Adjustable threshold lets you tune exactly how much of the image falls into each color.

Limitations

  • All tonal and color detail beyond the black/white split is lost — this is a deliberately destructive, one-way effect.
  • A single global threshold can produce uneven results on images with strong local contrast variation, since it doesn't adapt per-region.

Examples

Portrait at default threshold

Input

A well-lit portrait photo, threshold 128

Output

A stark black-and-white silhouette-style image

The midpoint threshold works well for typically-exposed photos.

Dark photo needing adjustment

Input

An underexposed photo, threshold lowered to 80

Output

More of the image renders as white than it would at the default threshold

Lowering the threshold compensates for an overall darker source image.

Best Practices & Notes

Best Practices

  • Adjust the threshold based on your source image's overall brightness rather than assuming the default 128 always works well.
  • Use high-contrast, well-lit source photos for the most visually clean black-and-white result.

Developer Notes

convertPngToBlackAndWhite is a thin wrapper around png-to-two-colors-converter's convertPngToTwoColors, calling it with pure black and pure white pinned as the two output colors rather than re-deriving the same luminance-threshold math.

PNG to Black and White Converter Use Cases

  • Creating a stencil or laser-engraving-ready template from a photo
  • Producing a high-contrast black-and-white print effect
  • Quickly visualizing a brightness threshold across an image

Common Mistakes

  • Expecting smooth gray tones — this tool intentionally produces only pure black and pure white, unlike a grayscale conversion.
  • Using the default threshold on a very dark or very bright source image without adjusting it, resulting in an almost entirely one-color output.

Tips

  • If the result is mostly black or mostly white, try adjusting the threshold up or down rather than assuming the tool isn't working.
  • Combine with a border or background tool afterward if you need the stark black-and-white result composited onto a colored background.

References

Frequently Asked Questions