Grayscale and black and white image converter
Convert any photo to perceptual greyscale or a pure 1-bit black and white image. Greyscale keeps the full range of grey tones, while black and white mode forces every pixel to either black or white for a crisp, high-contrast result — ideal for line art, scans, logos, stencil-style output, and risograph print preparation.
How it works
The image is read into a <canvas> and every pixel is converted to a brightness value using the perceptual luminance formula:
lum = 0.299R + 0.587G + 0.114B (ITU-R BT.601)
- Greyscale: each pixel’s red, green and blue are all set to
lum, keeping the full 0-255 range of shades. - Black and white: the luminance is compared against a threshold (default 128). If
lum ≥ thresholdthe pixel becomes white (255), otherwise it becomes black (0).
Worked example
A pixel with R=200, G=180, B=120 gives lum = 0.299×200 + 0.587×180 + 0.114×120 ≈ 179.
| Mode | Threshold | Output pixel |
|---|---|---|
| Greyscale | — | grey 179 |
| Black and white | 128 | white (179 ≥ 128) |
| Black and white | 200 | black (179 < 200) |
Understanding the threshold slider
The threshold controls how “dark” a pixel must be before it prints as black. The default of 128 is the mathematical midpoint (halfway between 0 and 255).
- Lower threshold (closer to 0): only very dark pixels become black; most of the image becomes white. Good for images with dark line art on a light background where you want to preserve fine thin lines.
- Higher threshold (closer to 255): more pixels become black. Good for capturing mid-tone detail in a photo-realistic source image, or for printing where the paper absorbs ink and dark areas need to dominate.
- Extreme thresholds (below 30 or above 220): most pixels will be one colour; useful for silhouette effects.
Greyscale vs. black and white: choosing the right mode
Greyscale is best when tonal nuance matters: portrait photography, technical diagrams, print layouts where you want continuous shading, accessibility reviews where you check colour-independence of UI designs.
Pure black and white is best when the output goes to a process that can only handle two values: laser engravers, pen plotters, risograph printers, two-colour screen printing, stencil cutting, and certain OCR pre-processing workflows that need maximum contrast.
The ITU-R BT.601 luminance formula is the standard used by video and broadcast systems. It weights green at 58.7%, red at 29.9%, and blue at only 11.4%, reflecting the eye’s greater sensitivity to mid-range green wavelengths. This makes greens appear natural and prevents blues from looking unexpectedly bright in the output.
Everything runs in your browser — your image is never uploaded. The output downloads as a lossless PNG.